CN102932499A - Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks - Google Patents

Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks Download PDF

Info

Publication number
CN102932499A
CN102932499A CN 201210431654 CN201210431654A CN102932499A CN 102932499 A CN102932499 A CN 102932499A CN 201210431654 CN201210431654 CN 201210431654 CN 201210431654 A CN201210431654 A CN 201210431654A CN 102932499 A CN102932499 A CN 102932499A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
vsi
pe
pw
mac
mac address
Prior art date
Application number
CN 201210431654
Other languages
Chinese (zh)
Other versions
CN102932499B (en )
Inventor
付志华
Original Assignee
杭州华三通信技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Abstract

The invention discloses a method and a device for learning MAC addresses in VPLS networks. The method includes that a first preinstallation environment (PE) is any local virtual switch interface (VSI), and a first VSI only distributes a first VSI label which informs a binding relationship between the first VSI and the first VSI label to a second PE in a unicast mode; and the first PE learns a first MAC address from a first access controller (AC) associated with the first VSI and sends a first MAC notification message carrying the first MAC address and used for indicating a first forward error correction (FEC) message of first (packet writing) PW to the second PE in a unicast mode, so that the second PE can add an MAC forwarding entry corresponding to the first MAC address in an MAC address forwarding table of a second VSI, an output interface corresponding to the first MAC address in the MAC forwarding entry is the first PW indicated by the first FEC, and the first PW is a PW between the first PW and the first VSI. According to the method and the device for learning MAC addresses in VPLS networks, label resources are saved greatly.

Description

VPLS网络中的MAC地址学习方法及设备 MAC address learning method and apparatus VPLS network

技术领域 FIELD

[0001] 本申请涉及数据通信技术领域,特别涉及一种VPLS网络中的MAC地址学习方法及设备。 [0001] The present application relates to data communication technology field, and particularly relates to the MAC address learning method and a device for the VPLS network.

背景技术[0002] 为了实现高可靠性和冗余部署,当今大多数企业网络及其数据中心跨越了位于不同地理位置的多个物理站点(Site),在这些站点部署类似的业务,并在这些站点之间进行二层互联。 [0002] In order to achieve high reliability and redundancy deployment, most of today's enterprise networks and data centers across multiple physical sites (Site) located in different geographical locations, the deployment of a similar business in these sites, and these Layer 2 interconnection between sites. 为了实现站点间的资源动态调配和管理,虚拟机在数据中心站点之间要能够自由迁移,由于虚拟机迁移过程对用户透明,不能改变IP地址,所以必须在分布于异地的站点之间实现二层网络互联。 In order to achieve dynamic allocation of resources between sites and manage virtual machine to be able to move freely between data center sites, due to the virtual machine migration process is transparent to users, can not change the IP address, it must be achieved between the two sites located in different places layer networking. VPLS是一种主要的实现二层网络互联的技术。 VPLS is a major implement Layer networking technology.

[0003] VPLS (Virtual Private LAN Service,虚拟专用局域网服务)在传统MPLS(Multi-protocol Label Switching,多协议标签交换)L2VPN (Layer 2VirtualPrivateNetwork, 二层虚拟专用网络)方案的基础上发展而成,它可以实现多点到多点的VPN组网。 [0003] VPLS (Virtual Private LAN Service, virtual private LAN service) in a conventional MPLS (Multi-protocol Label Switching, MPLS) L2VPN (Layer 2VirtualPrivateNetwork, Layer Virtual Private Network) evolved on the basis of programs, it you can achieve multi-multipoint VPN networking. VPLS为运营商提供了一种更加完备的解决方案。 VPLS provides a more complete solution for operators. VPLS结合了以太网技术和MPLS技术的优势,是对传统LAN全部功能的仿真,其主要目的是通过运营商提供的IP/MPLS网络连接地域上隔离的多个由以太网构成的LAN(Local Area Network,局域网),使它们像一个LAN那样工作。 VPLS and Ethernet technology combines the advantages of MPLS technology, is an emulation of the full functionality of traditional LAN, its main purpose is LAN (Local Area isolation provided by the operator on the IP / MPLS network connecting the plurality of regions constituted by an Ethernet Network, Local Area Network), a LAN to make them work like that.

[0004] 图I是现有技术的VPLS的典型组网图,首先对图I中涉及的技术术语进行解释: [0004] FIG. I is a typical prior art networking FIG VPLS, the first term of art involved FIG explained I:

[0005] MPLS :使用定长标签来封装分组报文,基于标签进行转发; [0005] MPLS: using the fixed length packet to encapsulate the packet tag, label-based forwarding;

[0006] CECCustomer Edge,用户网络边缘设备):有接口直接与SP(Service Provider,服务提供商)相连,CE可以是路由器或交换机,也可以是一台主机,也不需要必须支持MPLS ; [0006] CECCustomer Edge, user network edge device): There is an interface directly connected to the SP (Service Provider, ISP), the CE may be a router or switch, or may be a host, you do not need to support the MPLS;

[0007] PE (Provider Edge,服务提供商网络边缘设备):与CE相连,主要负责VPN业务的接入,它完成报文从私网到公网隧道,并从公网隧道到私网的映射与转发; [0007] PE (Provider Edge, service provider network edge device): connected with the CE, is responsible for access VPN service, it completes the message from the public network to the private network tunnel, and the tunnel from the public network to the private network mapping and forwarding;

[0008] VSI (Virtual Switch Instance,虚拟交换实例):VPLS 实例在一个PE 上的一个以太网桥功能实体,根据MAC地址和VLAN TAG (标签)进行二层报文转发,VSI是一台虚拟的边界设备Virtual Edge Device (VE); [0008] VSI (Virtual Switch Instance, a virtual switch instance): VPLS instance of a functional entity Ethernet bridge on a PE performs Layer 2 packets according to the MAC address and VLAN TAG (tag), the VSI is a virtual The edge device Virtual Edge device (VE);

[0009] Pff (Pseudo Wire,伪线):两个PE上的VSI之间的一条双向虚拟连接,由一对方向相反的单向VC (Virtual Circuit,虚电路)LSP (Label Switched Path,标签交换路径)组成,也称为仿真电路,只有两个方向的VC LSP都up,PW才是up的; [0009] Pff (Pseudo Wire, PW): a bidirectional virtual connection between the two VSI PE, by a pair of one-way direction opposite VC (Virtual Circuit, VC) LSP (Label Switched Path, label switching path) composition, also known as circuit simulation, only VC LSP in both directions up, PW is up in;

[0010] Tunnel (隧道):用于承载PW,一条隧道上可以承载多条PW,隧道是本端PE与对端PE之间的一条直连通道,完成PE之间的数据透明传输,可以是MPLS或GRE (GenericRouting Encapsulation,通用路由封装)隧道等; [0010] Tunnel (tunnel): used to carry the PW, the tunnel can be hosted on a plurality of the PW, the tunnel is present between one end of the PE and the PE terminal straight channel for data transmission between the transparent PE, may be MPLS or GRE (GenericRouting encapsulation, generic routing encapsulation) tunnels;

[0011] AC (Attachment Circuit,接入电路):用户与服务提供商之间的连接,即连接CE与PE的链路,对应的接口只能是以太网接口。 [0011] AC (Attachment Circuit, the access circuit): the connection between the user and the service provider, i.e., the connection link CE to the PE, the corresponding interface can be an Ethernet interface.

[0012] 如图I所示,用户网络可能包括分布在不同地理位置的多个站点(site)。 [0012] FIG I in the user network may comprise a plurality of sites distributed across different geographical locations (site). 每个站点包括CE及其下挂的大量的PC (Private Computer,个人电脑)和服务器等,CE通过PE接入骨干网。 Each site includes a large number of PC and CE under the hanging (Private Computer, PCs) and servers, CE PE is connected through a backbone network. 在骨干网上利用VPLS技术将这些站点连接起来,为用户提供一个VPN,这个VPN 称为一个VPLS实例。 VPLS backbone network using the technology to connect these sites together, provide users with a VPN, the VPN is called a VPLS instance. 在PE上,通过VSI来为特定的VPN分配资源。 On PE, to allocate resources for a particular VPN by VSI. 一个PE可以同时设置多个VSI,以同时支持多个VPLS实例。 PE may be provided a plurality of simultaneously VSI, to simultaneously support multiple VPLS instances. [0013] 如图2所示,VPLS通过数据平面的源MAC地址学习来获得可达性信息。 [0013] As shown in FIG 2, VPLS reachability information obtained by the source MAC address learning data plane. PE为每一个VSI维护一张独立的MAC (Media Access Control,媒体访问控制)地址表。 PE for each VSI maintains a separate MAC (Media Access Control, MAC) address table. 当一个PE 从与其连接的CE (也即两者之间的AC)上收到报文时,需要将报文中的源MAC地址学习到与该CE直连的以太网接口(也即VSI的对应端口)上。 When the PE on a CE (i.e. between the two AC) connected thereto when the packet is received, the packet needs to be learned source MAC addresses of the CE are directly connected with the Ethernet interface (i.e., a VSI corresponding to the port). 另外,当一个PE从入方向的VC LSP 上学习到一个原来未知的源MAC地址后,会将该源MAC地址学习到收到该报文的PW上,也就是将该源MAC地址与出方向的VC LSP形成映射关系。 Further, when a PE learned from the inbound VC LSP to an original unknown source MAC address, the source MAC address learning will be received on the packet to the PW, i.e. the source MAC address to the outbound the VC LSP form mappings. 在图2中,实线箭头表示以太网报文:ARP (Address Resolution Protocol,地址解析协议)广播报文的转发路径,虚线表示ARP响应报文的转发路径。 In FIG. 2, solid arrows represent the Ethernet packet: forwarding path ARP (Address Resolution Protocol, ARP) broadcast packets, the broken line represents an ARP response packet forwarding path. 当PE2从PWl上收到ARP广播报文后,会在MAC地址转发表中添加出端口为PWl的MAC转发项。 When PE2 receives ARP broadcast messages from the PWl, will be added in the MAC address forwarding table entries for port forwarding MAC PWl of. [0014] VPLS实例中的数据转发是通过查找VSI对应的MAC地址转发表来完成的。 Data [0014] VPLS forwarding instance by looking up the MAC address forwarding table corresponding to the VSI to complete. 报文在PW上发送时,需要打上内层的PW标签和外层的隧道标签。 The packet is sent at PW, a PW label needs to be marked with the inner and outer tunnel label. 隧道标签主要用于通过隧道中间设备的标签交换,将报文送到对端PE,PW标签用于当报文达到对端PE后,对端PE能根据PW标签找到对应的VSI。 Tunnel label by the label switching tunnel is mainly used for the intermediate apparatus, the packet to the peer PE, PW label used when the packet reaches the end of PE, PE peer can find the corresponding VSI based on the PW label. [0015] 在现有技术中,PE发现VPLS实例的对端PE以及建立与对端PE之间的PW的过程如下:[0016] 首先,本端PE针对本地配置的特定VSI发现哪些远端PE上存在与该特定VSI属于同一个VPLS实例的VSI,以下将发现的其上存在与该特定VSI属于同一个VPLS实例的VSI的PE称为对端PE。 [0015] In the prior art, it found that the peer PE PE with the VPLS instance of the process and the establishment between the peer PE PW as follows: [0016] First, the distal end of which the local PE PE found for a particular configuration of the local VSI VSI exists on the particular VPLS instance belong to the same VSI, there belonging to the same VSI with the particular VPLS instance on which PE VSI will be referred to as found in the remote PE. 可以通过手工配置来指定其上存在与该特定VSI属于同一个VPLS 实例的VSI的对端PE的地址,也可以通过自动发现的方式确定其上存在与该特定VSI属于同一个VPLS实例的VSI的对端PE。 You can be specified on the address VSI same VPLS instance peer PE presence belonging to the specific VSI configured manually and to be determined that there VSI belonging to the same VPLS instance to the specific VSI thereon by means of automatic discovery of on the remote PE. 前一种方式是由设备的网络管理员手工配置指定,后一种方式通常通过一些自动发现协议来发现,目前主要利用BGP(Border Gateway Protocol, 边界网关协议)信令协议来实现VPLS实例的对端PE的自动发现。 The former approach is specified by the network administrator to manually configure the device, the latter approach generally be found by some automatic discovery protocol, mainly using BGP (Border Gateway Protocol, Border Gateway Protocol) signaling protocol to achieve the VPLS instance automatically discover the peer PE. [0017] 然后,本端PE为每一个对端PE (也即对端VSI)分配一个标签,不同对端PE分配的标签不同,之后,本端PE通过LDP将分配的标签作为连接本地VSI和对端VSI的PW的入方向VC LSP的PW标签向对端PE进行通告,从而实现PW的建立。 [0017] Then, each of the peer PE (i.e. peer VSI) assigned with a label, different peer PE label assigned local PE is, after the local PE by tag LDP will be assigned as a connection local VSI and PW the inbound end of the VSI VC LSP PW label advertised to peer PE, to achieve the establishment of the PW. 其中,PW标签用于当携带有该PW标签的报文达到对端PE后,对端PE能根据该PW标签找到对应的VSI,从而转发给相应的AC。 Wherein, when the PW label for packets carrying the PW label reaches the end of PE, PE peer can find the corresponding VSI based on the PW label to be forwarded to the corresponding AC. [0018] 这样,由于本端PE上的一个VSI可能有多个对端VSI,即,可能存在多个对端PE, 其上也配置有与本端PE上的该VSI属于同一个VPLS实例的对端VSI,为每一个对端VSI (或对端PE)均分配一个PW标签,就需要为一个VSI分配多个标签,存在标签浪费的问题。 [0018] Thus, since a VSI on the PE may have a plurality of local peer VSI, i.e., there may be multiple peer PE, on which is also disposed on the VSI and local PE belonging to the same VPLS instance end of the VSI, each of the VSI peer (or peer PE) is assigned a PW label, will need to allocate a plurality of label VSI, you label is present wasted. 发明内容[0019] 本申请提供了一种VPLS网络中的MAC地址学习方法及设备,以解决现有技术中存在的浪费标签的问题。 SUMMARY OF THE INVENTION [0019] The present application provides the MAC address learning method and a device for the VPLS network, in order to solve the problems of the prior art waste of labels present. [0020] 本申请的技术方案如下:[0021] 一方面,提供了一种VPLS网络中的MAC地址学习方法,VPLS网络包括多个PE,每一个PE通过AC连接至CE,该方法包括:[0022] 第一PE为本地配置的一第一虚拟交换实例VSI分配一个唯一的第一VSI标签,以单播方式将第一VSI与第一VSI标签的绑定关系通告给第二PE,其中,第一VSI与第二PE 上的第二VSI属于同一个VPLS实例,第一VSI下的所有伪线PW共用第一VSI标签;[0023] 第一PE从与第一VSI关联的第一AC上学习到第一MAC地址之后,以单播方式向第二PE发送携带有第一MAC地址和用于指示第一PW的第一FEC信息的第一MAC通告消息, 以使得第二PE在第二VSI的MAC地址转发表中增加第一MAC地址对应的MAC转发表项,且该MAC转发表项中第一MAC地址对应的出接口为第一FEC所指示的第一PW,其中,所述第一PW为所述第一VSI与所述第二VSI之间的PW。 [0020] aspect of the present application is as follows: [0021] In one aspect, there is provided a method for MAC address learning VPLS network, the VPLS network comprising a plurality of PE, each PE is connected through the AC to CE, the method comprising: [ 0022] examples of switched VSI first PE is assigned a configuration of a first virtual local VSI first unique label, the first unicast manner VSI VSI with the first label to the second binding advertisement PE, wherein the first and second VSI VSI on the second VPLS instance belong to the same PE, PW PW all share the first tag at a first VSI VSI; on [0023] the first PE from the first AC VSI associated with a first after the first learned MAC address, sent in a unicast manner to the second PE carries a first MAC address and a MAC for a first advertisement message including the first FEC information indicative of a first PW, so that the second in the second PE VSI MAC address forwarding table corresponding to the MAC address of a first increase MAC forwarding entry, and the MAC forwarding entry corresponding to the MAC address of the first interface of the first FEC indicated by a first PW, wherein said first a VSI PW PW between said first and said second of VSI. [0024] 另一方面,还提供了一种VPLS网络中的第一PE,包括:[0025] 分配模块,用于为本地配置的一第一虚拟交换实例VSI分配一个唯一的第一VSI 标签,第一VSI下的所有伪线PW共用第一VSI标签;[0026] 发送模块,用于在分配模块为第一VSI分配了第一VSI标签之后,以单播方式将第一VSI与第一VSI标签的绑定关系通告给第二PE,其中,第一VSI与第二PE上的第二VSI 属于同一个VPLS实例;以及,在第一PE从与第一VSI关联的第一AC上学习到第一MAC地址之后,以单播方式向第二PE发送携带有第一MAC地址和用于指示第一PW的第一FEC信息的第一MAC通告消息,以使得第二PE在第二VSI的MAC地址转发表中增加第一MAC地址对应的MAC转发表项,且该MAC转发表项中第一MAC地址对应的出接口为第一FEC所指示的第一PW,其中,第一PW为第一VSI与第二VSI之间的PW。 [0024] On the other hand, one kind of PE is also provided a first VPLS network, comprising: [0025] The allocation module for exchanging a first example of a VSI is assigned a unique virtual local configuration VSI first label, All PW pseudo-wire in a first common VSI VSI a first label; after [0026] transmission means for dispensing a first module VSI VSI first label assigned to the unicast and the first first VSI VSI advertisement label bound to the second PE, wherein the first and second VSI VSI on the second PE VPLS instance belong to the same; and the first PE from the first study of the first AC VSI associated to after the first MAC address, transmitted in a unicast manner to the second PE carries a first MAC address and a first MAC for the first FEC information indicating a first advertisement message PW such that a second PE of the second VSI MAC address forwarding table corresponding to the MAC address of a first increase MAC forwarding entry, and the MAC forwarding entry corresponding to the MAC address of the first interface to a first of a first PW FEC indicated, wherein, for the first first PW PW between a second VSI VSI. [0027] 本申请的技术方案中,第一PE为本地的任意一个VSI,称为第一VSI仅分配一个VSI标签,称为第一VSI标签,第一VSI对应的所有PW均共用第一VSI标签,大大节省了标签资源。 [0027] The technical solution of the present application, any of the first PE is a local VSI, referred to as first allocated only a VSI VSI label, referred to as a first label VSI, the first corresponding to the VSI are all common to the first PW VSI tag, saving the tag resources. 另外,第一PE在从与第一VSI关联的第一AC上学习到了第一MAC地址后,向与第一VSI属于同一个VPLS实例的第二VSI所在的第二PE发送第一MAC通告消息,第一MAC通告消息中携带有第一MAC地址、以及用于指示第一PW的第一FEC信息,第一PW为第一VSI 与第二PE上的第二VSI之间的PW,第二PE接收到第一MAC通告消息后,就可以将第一MAC 地址学习到第一PW上,从而通过在属于同一个VPLS实例的VSI之间传递MAC通告消息,可以使PE上的VSI学习到PW侧的MAC地址。 Further, after learning the first PE from the first AC VSI associated with the first MAC address to the first, the first and second transmitting VSI belonging to the second PE VSI same VPLS instance where a first advertisement message MAC , a first MAC advertisement message carries the MAC address first, and for the first FEC information indicates a first PW, the first PW between the first second VSI VSI with the second PE PW, the second after receiving the first MAC PE advertisement message, a first MAC address may be learned by the first PW, so that by passing between MAC VSI announcement message belonging to the same VPLS instance, VSI can learn the PE PW MAC address side. 这样,PE就不需要通过从PW侧接收到的MPLS 报文学习源MAC并将此MAC与MPLS报文中的内层私网标签对应的PW关联。 Thus, PE can not required by the associated PW PW received from the side of the MPLS packet to learn the source MAC and the MAC of the MPLS packet tag corresponding to the inner private network. 所以,本申请技术方案中为一个VSI仅分配一个VSI标签可以实现,并且能起到大大节省标签资源的作用。 Therefore, the present application a technical solution is only assigned a VSI VSI tag may be implemented, and can play a role in resource saving tag. 附图说明[0028] 图I是现有技术的VPLS的典型组网图;[0029] 图2是现有技术的VPLS源地址学习的示意图;[0030] 图3是本申请实施例的VPLS网络中的MAC地址学习方法的流程图;[0031] 图4是本申请实施例的VPLS网络中VSI标签通告的示意图;[0032] 图5是图4的VPLS网络中MAC通告消息的发送示意图;[0033] 图6是本申请实施例的MAC通告消息的报文格式示意图;[0034] 图7是本申请实施例的MAC撤销消息的报文格式示意图;[0035] 图8是本申请实施例的图6和图7中FEC TLV字段的一种格式示意图;[0036] 图9是本申请实施例的图6和图7中FEC TLV字段的另一种格式示意图;[0037] 图10是本申请实施例的图6和图7中Mac Address List TLV字段的格式示意图;[0038] 图11是本申请实施例的VPLS网络中的第一PE的格式示意图。 BRIEF DESCRIPTION [0028] Figure I is a typical networking of VPLS prior art; [0029] FIG. 2 is a schematic view of the prior art VPLS source address learning; [0030] FIG. 3 is an embodiment of the present VPLS network application MAC address learning is a flowchart of a method; [0031] FIG. 4 is a schematic diagram of a label advertisement VSI VPLS network in an embodiment of the present application; [0032] FIG. 5 is a schematic view of the transmission of FIG. 4 VPLS network MAC announce message; [ 0033] FIG. 6 is a message format diagram MAC advertisement message according to an embodiment of the present application; [0034] FIG. 7 is a message format diagram MAC revocation message according to an embodiment of the present application; [0035] FIG. 8 is an embodiment of the present application 6 a schematic view of one kind of format of FIG. 7 and FIG FEC TLV field; [0036] FIG. 9 is a view showing the format of FIG. 6 another embodiment of the present application and 7 FEC TLV field; [0037] FIG. 10 is the present application format of FIG. 6 and Mac Address List TLV field schematic embodiment of FIG. 7; [0038] FIG. 11 is a schematic diagram of the format of the first PE VPLS network embodiment of the present application. 具体实施方式[0039] 为了解决现有技术中存在的浪费标签的问题,本申请的以下实施例提供了一种VPLS网络中的MAC地址学习方法以及可以应用该方法的PE。 DETAILED DESCRIPTION [0039] In order to solve the problems of the prior art waste of labels present in the following embodiment of the present disclosure provides a method for MAC address learning in the VPLS network and PE may apply the method. 在本申请的以下实施例中,PE 为本地配置的任意一个VSI仅分配一个VSI标签,同一个VSI下的所有PW,即该VSI与自己的所有邻居VSI之间的PW共用为该VSI分配的VSI标签,该VSI及其邻居VSI属于同一个VPLS实例;然后,PE将该VSI与为该VSI分配的VSI标签之间的绑定关系通告给该VSI的邻居VSI所在的所有对端PE。 In the following embodiments of the present application, PE configured for a local VSI any label assigned to only one VSI, PW all under one VSI, i.e., the VSI PW with their shared between all the assigned neighbor VSI the VSI VSI label, the VSI and a neighbor belonging to the same VPLS instance VSI; then, the binding relationship between the PE and VSI VSI VSI label allocated for the neighbor advertisement to the VSI VSI where all of the remote PE. 一个VSI对应的VSI标签用于在PE从PW上接收到携带有该VSI标签的入报文时,可以查找到与该VSI标签对应的VSI是哪一个,从而可以根据该VSI 的MAC转发表对该入报文进行查表转发,具体的,转发给相应的AC。 VSI corresponding to the VSI a label for PW received from the PE to the VSI carrying tag when the packets, which may find a tag corresponding to the VSI VSI, can be based on the MAC forwarding table is the VSI the look-up table to forward the packet, in particular, is forwarded to the corresponding AC. 从而,一个VSI只需分配一个标签,大大节省了标签资源。 Thus, a VSI simply assign a tag, saving the tag resources. [0040] 如图I和2所示,VPLS网络中包括多个PE,每一个PE通过AC连接至CE,VPLS网络中的MAC地址学习方法可以由VPLS网络中的任意一个PE执行,如图3所示,该方法包括以下内容:[0041] 需要说明的是,下文中的第一PE可以是任意一个PE,并不特指某一个PE,第二PE 可以是本地配置有与第一VSI属于同一个VPLS实例的VSI的任意一个PE,第一VSI可以是第一PE上配置的任意一个VSI,并不特指某一个VSI,只是为了描述方便而做出的命名。 [0040] FIG. I and, in a VPLS network shown in FIG 2 comprises a plurality of PE, each PE is connected to the AC through the CE, MAC address learning method of a VPLS network may be performed by any PE VPLS network, FIG. 3 , the method comprising the following: [0041] Incidentally, hereinafter, the first PE may be any of a PE, and does not indicate a certain PE, the second PE may be configured with a part of the first local VSI VSI any of a same VPLS instance PE, the first may be any of a VSI VSI configured on the first PE, it does not indicate a VSI, you name just been made for convenience of description. [0042] 一、标签分配[0043] 步骤S301,第一PE为本地配置的任意一个VSI,称为第一VSI分配一个唯一的VSI 标签,称为第一VSI标签,然后,以单播方式将第一VSI与第一VSI标签的绑定关系通告给第二PE,其中,第一VSI与第二PE上的第二VSI属于同一个VPLS实例,第一VSI下的所有PW共用第一VSI标签。 [0042] First, the label allocation [0043] step S301, the first PE is a VSI any local configuration, as a first VSI VSI assigned a unique label, referred to as a first tab VSI, then, in a unicast manner the first advertisement VSI VSI first tag and the binding relationship to a second PE, wherein the first and second VSI VSI on the second PE belong to the same VPLS instance, common to all the first PW VSI VSI first tag . [0044] 例如,在通告第一VSI与第一VSI标签的绑定关系时,可以通过PW信令协议,例如,LDP的Mapping (映射)消息进行通告。 [0044] For example, when the first advertisement VSI VSI binding relationship with the first label, by PW signaling protocol, e.g., the LDP in the Mapping (mapping) message announcement. 由于一个VSI仅分配了一个VSI标签,因此,在ILM表中,一个VSI只有一个ILM表项。 Because only a VSI VSI is assigned a label, therefore, in the ILM table, a VSI ILM is only one entry. [0045] 在实际实施时,将第一VSI与第一VSI标签的绑定关系通告给第二PE的方式可以有以下两种方式:[0046] 方式一:向第二PE发送PW信令协议消息,其中,该PW信令协议消息中携带有第一VSI标签以及第一FEC信息之间的绑定关系,第一FEC信息为第一PE上预先配置的第一VSI与第二VSI之间的PW,称为第一PW的PW ID ;[0047] 方式二:向第二PE发送PW信令协议消息,其中,该PW信令协议消息中携带有第一VSI标签以及第一FEC信息之间的绑定关系,第一FEC信息为第一PE上预先配置的第一VSI所属的VPLS实例的VPLS ID、第一VSI和第二VSI在该VPLS实例中的标识。 [0045] In practical embodiments, the first tag VSI VSI with the first advertisement to the second PE binding manner can have the following two ways: [0046] Method 1: To transmit second PE PW signaling protocol message, wherein the PW signaling protocol message carries a binding relationship between the first tag and the first VSI FEC information, the first FEC information VSI between a first pre-configured on the first PE and a second VSI the PW, PW is called a first PW ID; [0047] second way: sending PW signaling protocol message to the second PE, wherein the PW signaling protocol message carries a first label and a first FEC information VSI of binding relationship between, the first FEC VPLS ID information on a first VPLS VSI first PE belongs preconfigured example, the first and second VSI VSI identifies the VPLS instance. [0048] 这样,第二PE在接收到上述的PW信令协议消息之后,首先根据该PW信令协议消息中携带的第一FEC信息判断本地是否存在与第一VSI属于同一个VPLS实例的VSI,若存在与第一VSI属于同一个VPLS实例的VSI,即第二VSI,则在本地的PW表中增加第二VSI 的PW表项,该PW表项对应于第一FEC所指示的第一PW,且该PW表项中包括有第一VSI标签。 [0048] Thus, in the second PE upon receiving the above-described PW signaling protocol message, carried in the first protocol message to the first PW FEC signaling information to determine whether there is a local VSI belonging to the same with the first VPLS instance VSI , if present, the second VSI i.e., the second increase in the VSI PW entries in the local table and a first PW VSI VSI belonging to the same VPLS instance, the first PW table entry corresponding to the indicated first FEC PW, PW and the entry comprises a first label VSI. [0049] 在实际实施过程中,该第二VSI的PW表项中可以包括:第二VSI的索引、第一VSI 标签和第一PW的索引。 [0049] In an actual implementation, the second entry in the VSI PW may include: a second index VSI, a first label and a first PW VSI index. [0050] 其中,根据该PW信令协议消息中携带的第一FEC信息判断本地是否存在与第一VSI属于同一个VPLS实例的VSI的具体判断方法可以参见下文描述的判断方法,这里不再赘述。 [0050] wherein, in accordance with the signaling protocol message carries PW first FEC information determines whether there is local to the first specific method of determining a VSI VSI belonging to the same VPLS instance can be found in the determination method described below, is not repeated here . [0051] 另外,在第一PE为第一VSI分配了一个唯一的第一VSI标签之后,还可以在本地的ILM (Incoming Label Map,入标签映射)表中增加一包含有第一VSI与第一VSI标签之间的绑定关系的ILM表项。 After [0051] Further, PE is a first in first VSI VSI a unique tag assigned to the first, may also be added to a table comprising a first and second locally VSI ILM (Incoming Label Map, the label mapping) ILM entries binding relationship between a VSI label. [0052] 以图4所示的VPLS网络为例,假设上述的第一PE为图4中的PE1,PEl上配置了一个第一VSI,例如记为VSI_1,通过手工配置方式或自动邻居发现机制发现了VSI_1的邻居VSI所在的对端PE有:PE2、PE3和PE4,即PE2、PE3和PE4上也配置了与VSI_1属于同一个VPLS实例的VSI,上述方法中的第二PE可以为PE2、PE3和PE4中的任意一个。 [0052] In the VPLS network shown in FIG. 4 as an example, assuming the above-described first PE is PEl in FIG. 4, arranged on a first PEl the VSI, for example, referred to as VSI_1, discovery mechanism configured manually or by automatic neighbor found neighbor peer PE VSI_1 VSI are located: PE2, PE3 and PE4, i.e., PE2, PE3 and PE4 are also arranged on the VSI and VSI_1 belonging to the same VPLS instance, the above method may be a second PE PE2, any one of PE3 and PE4. 从而, PEl内部维护了VSI_1的邻居关系。 Thus, the internal PEl maintain the neighbor relationship VSI_1 of. 随后,PEl分别与PE2、PE3和PE4通过PW信令协议发起建立PW的过程。 Subsequently, PEl process of establishing respectively PW and PE2, PE3 and PE4 initiated by PW signaling protocol. 此时,PEl为第一VSI =VSIj分配一个固定的标签:第一VSI标签,例如记为标签A。 At this time, the first PEl VSI = VSIj assign a fixed tab: a first VSI label, referred to as a label, for example, A. 随后,PEl会将标签A与VSI_1的绑定关系封装到PW信令协议消息,例如,LDP 的Mapping消息中分别通告给PE2、PE3和PE4,即分别给PE2、PE3和PE4各自发送一个携带有VSI_1与标签A的绑定关系的PW信令协议消息。 Subsequently, the binding relationship between the package A and the tag will PEl VSI_1 PW to the signaling protocol message, e.g., the Mapping message are advertised to the LDP in PE2, PE3 and PE4, i.e. to PE2, PE3 and PE4 are each carrying a transmit PW signaling protocol message VSI_1 binding relationship with the label a. [0053] 同时,PEl会产生一个如表I所示的ILM表项,下发到本地的ILM表中。 [0053] Meanwhile, a generated PEl ILM entries as shown in Table I, ILM issued to the local table. [0054] [0054]

Figure CN102932499AD00091

[0055]表 I[0056] 为了携带VSI_1与标签A的绑定关系,PW信令协议消息中除了包含标签A以外, 还需要包含有用于指示VSI_1与其邻居VSI之间的PW的FEC (ForwardingEquivalence Class,转发等价类)信息,即第一FEC信息,该FEC信息可以有两种形式:[0057] (I) VSI_1与其邻居VSI之间的Pff的Pff ID ;[0058] 由于在使用LDP作为自动邻居发现机制发现对端PE时,需要在PE上手工配置一个VSI与其每一个邻居VSI之间的PW的PW ID,此时,在发送PW信令协议消息给任意一个对端PE,例如为PE2时,可以将VSI_1与PE2上的VSI_2之间的PW的PW ID与标签A之间的绑定关系作为VSI_1与标签A的绑定关系,其中,VSI_1与PE2上的VSI_2属于同一个VPLS实例。 [0055] TABLE I [0056] In order to carry VSI_1 binding relationship with the label A, in addition to the signaling protocol message PW contained tag A, it also needs to contain FEC (ForwardingEquivalence Class between PW for its neighbors a VSI indicates VSI_1 , FEC) information, i.e., the first FEC information, the FEC information may come in two forms: [0057] (I) Pff ID Pff VSI_1 between its neighbors VSI; [0058] Since the LDP is used as an automatic when the neighbor discovery mechanism to find the end PE, PW need to manually configure a VSI between each of its neighbor on the VSI ID PW PE, in this case, the signaling protocol message sending PW peer to any one of PE, for example, PE2 , the binding relationship between the PW PW ID of the tag a and VSI_2 VSI_1 between PE2 may be used as the binding relationship VSI_1 tag a, wherein, on VSI_1 with VSI_2 PE2 belong to the same VPLS instance. [0059] (2) VSI_1 所属的VPLS 实例的VPLS ID、VSI_1 和VSI_1 的邻居VSI 在该VPLS 实例中的标识。 [0059] VPLS ID VPLS instance (2) VSI_1 belongs, VSI_1 and VSI_1 VSI identifies neighbors of the VPLS instance. 机制发现对端PE时,通过VPLS ID来唯一标识一个VPLS实例,此时,在发送PW信令协议消息给任意一个对端PE2时,可以将VSI_1所属的VPLS实例的VPLS ID、VSI_1和PE2上的VSI_2在该VPLS实例中的标识、以及标签A之间的绑定关系作为VSI_1与标签A 的绑定关系,其中,VSI_1与PE2上的VSI_2属于同一个VPLS实例。 When the end of the discovery mechanism PE, via a VPLS ID to uniquely identify the VPLS instance, this time, in a VPLS instance PW signaling protocol message sent to a peer end PE2 any, may be VSI_1 VPLS ID belongs, and the PE2 VSI_1 VSI_2 identification of the VPLS instance, and the binding between the label a and label as a VSI_1 binding relationship, wherein, on VSI_1 VSI_2 PE2 and belong to the same VPLS instance. [0061] 在实际实施过程中,一个VSI在其所属的VPLS实例中的标识可以使用该VSI所在的PE的地址,也可以使用其他的数字或符号来唯一表示,本申请对此不做限定。 [0061] In an actual implementation, a VSI identifies the VPLS instance to which it belongs may be used in the VSI PE address is located, the other may be used to uniquely represent numbers or symbols, which is not defined in the present application. [0062] PE2收到该PW信令协议消息之后,根据其中的FEC信息检查自身是否配置有与VSI_1属于同一个VPLS实例的VSI,具体的判断方式为:当该PW信令协议消息中携带的FEC 信息的形式为形式(I)时,检查本地是否配置有PW ID与该PW信令协议消息中携带的PW ID 相同的VSI,若是,则确定本地配置有与VSI_1属于同一个VPLS实例的VSIjP VSI_2 ;当该PW信令协议消息中携带的FEC信息的形式为形式(2)时,检查本地是否配置有所属的VPLS 实例的VPLS ID与该PW信令协议消息中携带的VPLS ID相同的VSI,且该VSI在其所属的VPLS实例中的标识是该PW信令协议消息中携带的VSI_1的标识,若是,则确定本地配置有与VSI_1属于同一个VPLS实例的相应VSIJP VSI_2。 After [0062] PE2 receives the PW signaling protocol message, wherein the FEC according to their information checking whether VSI_1 configured with a VPLS instance belong to the same VSI, the specific mode is determined as follows: when the PW signaling protocol message carries the when information in the form of FEC form (the I), arranged to check whether the same local PW ID VSI PW ID and the PW signaling protocol messages carried in, if it is determined locally disposed with VSI_1 belonging to the same VPLS instance VSIjP VSI_2; form when FEC information when the PW signaling protocol message is carried in the form of (2), to check whether the local configuration with a same VPLS ID VSI VPLS instance belongs to the VPLS ID PW signaling protocol message carries the and the VSI in the VPLS instance to which it belongs is the identifier of the signaling protocol messages VSI_1 PW identifier carried in, if it is determined locally configured with VSI_1 VSIJP VSI_2 belonging to the respective same VPLS instance. 检查通过后,PE2会生成如表2所示的PW表项,并下发到PW表中。 After checking by, PE2 generates PW entries as shown in Table 2, and issued to the PW table. [0063] [0063]

Figure CN102932499AD00101

[0064]表 2[0065] 在表2中,LinkID即为VSI_1与VSI_2之间的Pff的索引。 [0064] Table 2 [0065] In Table 2, the index is the Pff between LinkID VSI_1 and VSI_2. [0066] PE2和PE4接收到PW信令协议消息之后执行的操作与PE2类似,这里不再赘述。 [0066] PE2 PE2 and operations performed after receiving the signaling protocol message PW PE4 similar, is not repeated here. [0067] 同样,第一PE也会接收到第二PE发来的PW信令协议消息,例如,第一PE为图4 中的PE2、PE3或PE4,此时,第一PE会执行以下步骤:[0068] 步骤I :第一PE接收到第二PE发送的PW信令协议消息,其中,该PW信令协议消息中携带有第二PE为第二VSI分配的第二VSI标签以及用于指示第一PW的第二FEC信息, 其中,第二FEC信息为第二PE上预先配置的第一PW的PW ID,或者为第二PE上预先配置的第二VSI所属的VPLS实例的VPLS ID、以及第二VSI和第一VSI在该VPLS实例中的标识;[0069] 步骤2 :若根据该PW信令协议消息中携带的第二FEC信息判断出本地存在与第二VSI属于同一个VPLS实例的第一VSI,则第一PE在本地的PW表中增加第一VSI的PW表项, 该PW表项对应于第二FEC信息所指示的第一PW,且该PW表项中包括有第二VSI标签。 [0067] Similarly, the first PE PE also receive a second PW sent by the signaling protocol message, e.g., for the first PE in FIG. 4 PE2, PE3 PE4 or, at this time, the first PE will perform the following steps VSI second PE receives a first PW label signaling protocol message sent by the second PE, wherein the PW signaling protocol message carries the second PE is assigned and a second VSI:: [0068] step I second indicating a first PW FEC information, wherein, VPLS ID VPLS instance VSI second FEC second information on the first PW PW ID of the second PE pre-configured or pre-configured for the second PE belongs , and a first and a second VSI VSI identifies the VPLS instance; [0069] step 2: If it is determined in accordance with the second FEC PW signaling protocol message information carried in the presence of a second local VSI belonging to a same VPLS the first of the VSI, the first increase in the local PE PW PW table entry of the first table of the VSI, the table entry corresponding to the first PW PW FEC information indicated by the second, and the entry comprises PW The second VSI label. [0070] 在实际实施过程中,该第一VSI的PW表项中可以包括:第一VSI的索引、第一PW 的索引和第二VSI标签。 [0070] In an actual implementation, the first entry in the VSI PW may include: a first index VSI, a first and a second index VSI PW label. [0071] 其中,根据第二FEC信息判断本地是否存在与第二VSI属于同一个VPLS实例的第一 VSI的方式包括以下之一:[0072] 当第二FEC信息为第二PE上预先配置的第一PW的PW ID时,第一PE判断本地是否配置有PW ID与该PW信令协议消息中携带的PW ID相同的VSI,若是,则判断出本地存在与第二VSI属于同一个VPLS实例的第一VSI ;[0073] 当第二FEC信息为第二PE上预先配置的第二VSI所属的VPLS实例的VPLS ID、以及第二VSI和第一VSI在该VPLS实例中的标识时,第一PE判断本地是否配置有所属的VPLS实例的VPLS ID与该PW信令协议消息中携带的VPLS ID相同的VSI,并且该VSI在其所属的VPLS实例中的标识是该PW信令协议消息中携带的第一VSI的标识,若是,则判断出本地存在与第二VSI属于同一个VPLS实例的第一VSI。 [0071] wherein the second FEC information to determine whether there is a local VSI according to a second embodiment of the first VSI belonging to the same VPLS instance comprises one of the following: [0072] When the second FEC information on the second PE preconfigured when the PW ID of a first PW, a first PE determines whether configured with the same local PW ID and the VSI PW PW ID carried in the signaling protocol message, if yes, determines that the local presence of a second VPLS instance belong to the same VSI first VSI; [0073] when the second VPLS ID VPLS instance VSI FEC information to a second pre-configured on the second PE belongs, and a first and a second VSI VSI identifies the VPLS instance, the first a local PE determines whether the configuration has the same VPLS VSI ID VPLS instance belongs to the VPLS PW ID carried in the signaling protocol message, and identifies the VSI VPLS instance to which it belongs is the signaling protocol message PW VSI first carrying identifier, if yes, determines that the local presence of the first and second VSI VSI belonging to the same VPLS instance. [0074] 由上,由于为第一VSI仅分配了一个VSI标签,即第一VSI,第一VSI下的所有PW 共用第一VSI标签,第一PE的报文转发过程如下步骤21-22 :[0075] 步骤21 :从第一AC上接收到用户报文之后,在与第一AC关联的第一VSI的MAC转发表中查找与该用户报文中携带的目的MAC对应的转发表项,若查找到的转发表项中的出接口为PW,则在PW表中查找与第一VSI和该PW对应的PW表项,将该用户报文封装上该PW 表项中的私网标签以及公网隧道对应的公网标签后,将封装得到的MPLS报文转发出去。 [0074] From the above, since only the first VSI VSI assigned a tag, i.e. a first VSI, all share the first PW at the first label VSI VSI, a first PE packet forwarding process steps 21-22: [0075] step 21: after receiving the AC from the first to the user packet, the MAC associated with the first AC VSI first lookup destination MAC address carried by the packet forwarding user forwarding table entries, If the found table entry of the forwarding interface PW, PW table entry is searched with the VSI and the first PW PW in the corresponding table, the user on the PW entries packet package label and private network after the public network tunnel label corresponding to the public network, the package will get forwarded MPLS packets. [0076] 步骤22,从PW上接收到MPLS报文后,对该MPLS报文进行解封装,得到外层的公网标签和内层的私网标签,例如该私网标签为第一VSI标签。 [0076] Step 22, after receiving from the PW MPLS packet, the MPLS packet decapsulates obtain a public label and inner outer tab private network, the private network, for example, a first label tag VSI . 第一PE在本地的ILM表中查找到与第一VSI标签对应的ILM表项,获取到该ILM表项中的第一VSI,然后在第一VSI的MAC转发表中查找与该MPLS报文中的目的MAC对应的转发表项,将解封装后的报文往对应的AC侧转发出去。 First PE in the local lookup table to ILM ILM entries VSI corresponding to the first label, a first VSI to obtain the ILM table entry, then find the MPLS packet in the MAC forwarding table in the first VSI corresponding to the destination MAC forwarding entry, the packet will be forwarded decapsulated corresponding to the AC side. [0077] 从上述的转发过程可以看出,由于为一个VSI仅分配了一个VSI标签,PE从PW上收到一个MPLS报文之后,无法根据该报文内层的私网标签(即VSI标签)区分出是哪一个PW,也就无法将该报文中的源MAC地址学习到对应的PW上。 [0077] As can be seen from the above forwarding process, since only a VSI VSI assigned a label, PE after receiving a MPLS packet, not (i.e., according to the private tag label VSI packet from the inner PW ) which distinguish a PW, it can not learn the source MAC address in the packet to the corresponding PW. 因此本申请的技术方案中,需要对现有的MAC地址学习机制进行改进。 Accordingly aspect of the present application, it is necessary to improve the existing MAC address learning mechanism. [0078] 二、MAC地址学习[0079] 由于任意一个VSI只分配一个VSI标签。 [0078] two, MAC address learning [0079] VSI assigned a label because only a VSI arbitrarily. 这样从一个VSI的不同PW上收到的报文的内层的私网标签都是一样的,根据私网标签无法区分是哪条PW,也就无法将源MAC学习到对应的PW上。 Such inner layer of the packet received from a different VSI PW label private network are the same, according to the private tag can not tell which of the PW, it can not learn the source MAC to the corresponding PW. 因此,可以通过以下机制实现MAC地址的学习,包括MAC地址通告和撤销两部分内容。 Thus, the MAC address learning may be achieved through the following mechanisms, including MAC address notification and the revocation of two parts. [0080] I、MAC地址通告[0081 ] 步骤S302,第一PE从与第一VSI关联的第一AC上学习到第一MAC地址之后,以单播方式向第二PE发送携带有第一MAC地址和用于指示第一PW的第一FEC信息的第一MAC 通告消息。 After [0080] I, MAC address advertised [0081] Step S302, the learning of the first PE from the first AC VSI associated with the first MAC address to the first, carrying a first transmit MAC unicast manner to the second PE PW indicates a first address and a first MAC of the first FEC information advertisement message. 这样,第二PE在第二VSI的MAC地址转发表中增加第一MAC地址对应的MAC转发表项,且该MAC转发表项中第一MAC地址对应的出接口为第一FEC所指示的第一PW,其中,第一PW为第一VSI与第二VSI之间的PW。 Thus, the second PE increase the first MAC address MAC forwarding entry corresponding to the MAC address forwarding table in the second VSI, and the MAC forwarding table of the first FEC indicated by the first entry corresponding to the MAC address of the interface a PW, wherein, for the first PW PW between the first and second VSI VSI. 第一FEC信息为第一PE上预先配置的第一PW的PW ID、或者为第一PE上预先配置的第一VSI所属的VPLS实例的VPLS ID、第一VSI 和第二VSI在该VPLS实例中的标识。 The first FEC information for the first PW PW ID of the first PE preconfigured, or a first VPLS VSI ID VPLS instance belongs to a preconfigured first PE, the first and second VSI VSI, in the VPLS the logo. [0082] 在实际实施过程中,第一MAC地址对应的MAC转发表项中可以包括:第一MAC地址以及第一PW的索引。 [0082] In an actual implementation, a first MAC address corresponding to the MAC forwarding entry may include: a first MAC address and the index of the first PW. [0083] 从而,实现了将第一MAC地址学习到第一PW上。 [0083] Accordingly, to achieve the first learning the MAC address to the first PW. [0084] 同样,第一PE也会接收到第二PE发来的第二MAC通告消息,此时,第一PE接收到第二PE发送的第二MAC通告消息,第二MAC通告消息中携带有第二FEC信息和第二PE从与第二VSI关联的第二AC上学习到的第二MAC地址;若根据第二MAC通告消息中携带的第二 FEC信息判断出本地存在与第二VSI属于同一个VPLS实例的第一VSI,则第一PE在第一VSI的MAC地址转发表中增加第二MAC地址对应的MAC转发表项,且该MAC转发表项中第二MAC地址对应的出接口为第二FEC信息所指示的第一PW。 [0084] Similarly, the first PE PE also receives a second advertisement sent by the second MAC message, this time, the first PE receives a second MAC advertisement message sent by the second PE, the second advertisement message carries the MAC second FEC information and the second PE learned from the second MAC address associated with the second second VSI the AC; if it is determined that the second MAC according to a second FEC information announcement message carried in the presence of a second local VSI belonging to the first VPLS instance the same VSI, then the first PE VSI in the MAC address forwarding table in a first increasing the second MAC address forwarding entry corresponding to the MAC, and the MAC forwarding table entry corresponding to the second MAC address a second interface to the first PW FEC information indicates. [0085] 在实际实施过程中,第二MAC地址对应的MAC转发表项中可以包括:第二MAC地址以及第一PW的索引。 [0085] In an actual implementation, the second MAC address corresponding to the MAC forwarding entry may include: a first index and second MAC address of the PW. [0086] 从而,实现了将第二MAC地址学习到了第一PW上。 [0086] Accordingly, to achieve the second MAC address to the learning of the first PW. [0087] 其中,根据第二MAC通告消息中携带的第二FEC信息判断出本地存在与第二VSI 属于同一个VPLS实例的第一VSI与上述描述的判断方法类似,这里不再赘述。 [0087] wherein it is determined that the presence of the first local VSI determination methods described above belong to the same VSI second VPLS instance similar is not mentioned here in accordance with a second advertisement message a second MAC FEC information carried. [0088] 2、MAC地址撤销[0089] 步骤S303,第一PE在第一VSI的MAC地址转发表中有MAC地址被删除之后,以单播方式向第二PE发送携带有被删除的MAC地址和第一FEC信息的第一MAC撤销消息,以使得第二PE删除第二VSI的MAC地址转发表中与被删除的MAC地址对应的MAC转发表项。 After [0088] 2, MAC address revoke [0089] Step S303, the first PE in the MAC address forwarding table in a first VSI MAC address is deleted, sent carries the MAC address is deleted in a unicast manner to the second PE a first and a first FEC MAC message revocation information, so that the second PE second VSI remove the MAC address forwarding table with the MAC address corresponding to the deleted MAC forwarding entry. [0090] 同样,在第二PE上的第二VSI的MAC地址转发表中有MAC地址被删除后,第二PE 也会第一PE发送第二MAC撤销消息,第一PE也会接收到第二PE发送的第二MAC撤销消息, 第二MAC撤销消息中携带有被删除的MAC地址和第二FEC信息;若根据第二MAC撤销消息中携带的第二FEC信息判断出本地存在与第二VSI属于同一个VPLS实例的第一VSI,则第一PE更新自身上的第一VSI的MAC地址转发表,以将第二MAC撤销消息中携带的被删除的MAC地址对应的MAC转发表项删除。 [0090] Similarly, the MAC address on the second PE of the second VSI in the MAC address forwarding table is deleted, the second PE PE first transmits a second MAC will revoke message, the first PE also receives the first two second MAC withdraw message sent by the PE, a second MAC revocation message carries the MAC address is deleted and a second FEC information; withdraw message if the second MAC according to the second FEC information carried in the presence of a second local judged the first belongs to the same VSI VSI VPLS instance, the first PE update itself on the VSI first MAC address forwarding table, the MAC address is deleted cancel message to the second MAC carried in the MAC forwarding entry corresponding to the deleted . [0091] 在实际实施过程中,可以使用LDP的Address消息来实现MAC通告消息,使用LDP 的Address Withdraw消息来实现MAC撤销消息。 [0091] In an actual implementation, the LDP may be used to implement MAC Address message a notification message using the LDP MAC Address to achieve the Withdraw message withdraw message. 具体的实现可以通过扩展标准的LDP的Address消息和Address Withdraw消息来携带MAC地址和用于指示对应PW的FEC信息, 其中,对应PW即为发送该消息的PE上的VSI (例如为VSI_i)与接收该消息的PE上的邻居VSI(例如为VSIJ )之间的PW,该VSIJ与VSI_i属于同一个VPLS实例。 VSI on PE specific implementation may be carried by the extended LDP by the Withdraw message Address Address message and the MAC address for the PW FEC information indicating, wherein the PW that is sending the message (for example, VSI_i) and PW between the VSI neighbors (for example VSIJ) receives the message on the PE, which belong to the same VSIJ with VSI_i VPLS instance. 用LDP的Address 消息来实现的MAC通告消息的格式如图6所示,用LDP的Address Withdraw消息来实现的MAC撤销消息如图7所示。 Address message with LDP to implement the MAC format of advertisement message shown in FIG. 6, the Withdraw message Address LDP to implement a MAC withdraw message as shown in FIG. [0092] 在图6和图7所示的报文中,FEC TLV表示用于指示对应PW的FEC信息,Mac Address List TLV表示学习到的MAC地址或被删除的MAC地址。 [0092] In the message shown in FIG. 6 and FIG. 7, FEC TLV denotes a FEC information indicating the PW, Mac Address List TLV represents MAC addresses learned MAC address or deleted. 由于用于指示对应PW的FEC信息的形式有两种:对应Pff的Pff ID,或VSI_i所属的VPLS实例的VPLS ID、VSI_i和VSI_j在该VPLS实例中的标识,因此,FEC TLV的格式相应的也有两种,一是RFC4447定义的0x80类型格式,用于携带对应PW的PW ID,如图8所示,其中,PW ID字段用于表示对应PW的PW ID ;另一种是0x81类型格式,用于携带VSI_i所属的VPLS实例的VPLS ID、VSI_i 和VSI_j在该VPLS实例中的标识这三个信息,如图9所示,AGI Value :表示VSI_i所属的VPLS实例(例如为VPLS实例i)的标识,即VPLS ID ;SAII Value :表示VSI_i在该VPLS实例i中的标识,例如为VSI_i所在的PE的地址;TAII Value :VSI_j在该VPLS实例i中的标识,例如为VSI_j所在的远端PE的地址。 Since the form is used to indicate the PW FEC information, there are two: the VPLS Pff Pff ID corresponding to, or belongs VSI_i VPLS ID, VSI_i VSI_j and identifies the instance of the VPLS instance, and therefore, the respective FEC TLV format there are two, one defined by RFC4447 0x80 format type, for carrying the PW PW ID, shown in Figure 8, where, PW ID field for indicating the PW PW ID; the other is 0x81 format type, VPLS ID belongs for carrying VPLS VSI_i example, VSI_i VSI_j and identifies the VPLS instance the three information, as shown, AGI Value 9: indicates the VPLS instance VSI_i belongs (for example, VPLS instance i), identification, i.e. VPLS ID; SAII Value: indicates VSI_i VPLS instance i in the identification, for example where the address of the PE VSI_i; TAII Value: VSI_j i identifies the VPLS instance, for example where the distal end of PE is VSI_j the address of. [0093] Mac Address List TLV字段的格式如图10所不,其中,Mac Addresses :表不具体的MAC地址。 MAC address table is not particularly: [0093] 10 not, wherein, Mac Addresses format field Mac Address List TLV as shown in FIG. [0094] 仍然以图4所示的VPLS网络为例,PEl上配置有VSI_1,PE2、PE3和PE4上均存在与VSI_1属于同一个VPLS实例的对应VSI,例如分别记为:VSI_2、VSI_3和VSI_4。 [0094] In still VPLS network shown in FIG. 4, for example, disposed on VSI_1, PE2, PE3 and PE4 are present and belonging to the corresponding VSI VSI_1 same VPLS instance on PEl, for example, are referred to as: VSI_2, VSI_3 and VSI_4 . 如图5所示,PEl从ACl上接收到用户报文后,若该报文中的源MAC =MACl是未知MAC,则先将该MACl学习到与该ACl关联的VSI_1的MAC转发表中,此时,MACl地址是学习到ACl上,SP MACl对应的出接口为连接至该ACl的接口。 5, after receiving from the PEl ACl to the user packets, if the packet source MAC = MAC MACl is unknown, then the first MACl learn the MAC associated with the ACl VSI_1 forwarding table, At this time, MACl address is learned on ACl, SP MACl corresponding to the output interface is connected to the interface ACl. 然后,PEl将MACl携带在MAC通告消息中通过控制通道发送给PE2,例如,该MAC通告消息可以是LDP的Address消息。 Then, the PEl carrying MACl sent to PE2 via the control channel MAC advertisement message, e.g., the advertisement message may be a MAC Address of LDP messages. 同时,还需要在该MAC通告消息中携带用于指示PWl2的FEC信息,其中,Pff12即为VSI_1与PE2上的VSI_2之间的PW,该FEC信息有两种形式:PW12的Pff ID,或者VSI_1所属的VPLS实例的VPLS ID、 VSI_1和VSI_2在该VPLS实例中的标识。 Meanwhile, the MAC also need for FEC announcement message carries information indicating PWl2, wherein, Pff12 is the PW between the VSI_1 VSI_2 and PE2, and the FEC information in two forms: PW12 of Pff ID, or VSI_1 VPLS ID VPLS instance belongs, VSI_1 VSI_2 and identifies the VPLS instance. [0095] 同样,PEl也会向PE3发送MAC通告消息,该MAC通告消息中携带的FEC信息用于指示VSI_1与PE3上的VSI_3之间的PW :PW13,该FEC信息为:PW13的PW ID,或者VSI_1所属的VPLS实例的VPLS ID、VSI_1和VSI_3在该VPLS实例中的标识。 [0095] Similarly, PEl also sends advertisement message to the MAC PE3, the MAC advertisement message carries information indicating the FEC and PW VSI_1 VSI_3 between the PE3: PW13, the FEC information: PW13 the PW ID, or VSI_1 VPLS ID VPLS instance belongs, VSI_1 VSI_3 and identifies the VPLS instance. PEl也会向PE4发送MAC通告消息,该MAC通告消息中携带的FEC信息用于指示VSI_1与PE4上的VSI_4之间的Pff :PW14,该FEC信息为:PW14的Pff ID,或者VSI_1所属的VPLS实例的VPLS ID、VSI_1和VSI_4在该VPLS实例中的标识。 PEl is also sent to the MAC PE4 advertisement message, the advertisement message carries the MAC FEC information for indicating VSI_1 Pff between the VSI_4 on PE4: PW14, the FEC information: Pff ID PW14 or VSI_1 belongs VPLS VPLS instance ID, VSI_1 VSI_4 and identifies the VPLS instance. [0096] PE2收到该MAC通告消息后,将其中的MACl学习到该PW12上,具体的,在本地的VSI_2的MAC地址转发表中增加MACl对应的MAC转发表项,且该表项中MACl对应的出接口为FEC信息所指示的PW12。 After [0096] PE2 MAC receiving the advertisement message, wherein the PW12 MACl learned, particularly, to increase MACl MAC forwarding entry corresponding to the MAC address VSI_2 local forwarding table, and the entry MACl PW12 corresponding to the outgoing interface indicated by the FEC information. 同样,PE3收到该MAC通告消息后,将其中的MACl学习到该PW13上,具体的,在本地的VSI_3的MAC地址转发表中增加MACl对应的MAC转发表项,且该表项中MACl对应的出接口为FEC信息所指示的PW13。 After Similarly, the PE3 receives the MAC message advertisement, which will be to learn the MACl PW13, particularly, to increase MACl MAC forwarding entry corresponding to the MAC address VSI_3 local forwarding table, and the table entry corresponding to MACl PW13 FEC to the outgoing interface indicated by the information. PE4收到该MAC通告消息后,将其中的MACl学习到该PW14上,具体的,在本地的VSI_4的MAC地址转发表中增加MACl对应的MAC转发表项,且该表项中MACl对应的出接口为FEC信息所指示的PW14。 After receiving the MAC PE4 advertisement message, which will be to learn the MACl PW14, particularly, the corresponding increase in MACl MAC forwarding entry in the local VSI_4 MAC address forwarding table, and the table entry corresponding to the MACl interface PW14 FEC information indicates. [0097] 相应的,当PEl上VSI_1的MAC地址转发表中有MAC地址被删除后,也需要通过MAC撤销消息通告给PE2、PE3和PE4,MAC撤销消息例如为LDP的Mac Withdraw消息。 [0097] Accordingly, when the MAC address forwarding table PEl VSI_1 the MAC address is deleted after the need to withdraw the MAC message advertised to PE2, PE3 and PE4, for example, a revoke message MAC message Mac Withdraw the LDP. 同样,MAC撤销消息中需要携带有被删除的MAC地址以及用于指示对应PW的FEC信息,即,发给PE2时,该FEC信息用于指示PWl2,发给PE3时,FEC信息用于指示PWl3,发给PE4时,FEC 信息用于指示PW14。 Similarly, the MAC needs to revoke message carries the MAC address to be deleted and the FEC information indicates the PW, i.e., PE2 when issued, the FEC information is used to indicate PWL2, when issued PE3, FEC information for indicating PWl3 when issued PE4, FEC information indicating PW14. PE2接收到该MAC撤销消息后,将本地的VSI_2的MAC地址转发表中与被删除的MAC相匹配的转发表项删除;PE3接收到该MAC撤销消息后,将本地的VSI_3的MAC地址转发表中与被删除的MAC相匹配的转发表项删除;PE4接收到该MAC撤销消息后, 将本地的VSI_4的MAC地址转发表中与被删除的MAC相匹配的转发表项删除。 PE2 receives the MAC after the revocation message, the local MAC address VSI_2 forwarding table and the deleted MAC matches the forwarding entry deleted; the PE3 receiving the MAC after the revocation message, the local MAC address VSI_3 forwarding with the deleted MAC matches the forwarding entry deleted; PE4 MAC after receiving the cancel message, the local MAC address forwarding table with VSI_4 deleted MAC forwarding entry matches deleted. [0098] 由上述方法可以看出,本申请的实施例中第一PE为本地的任意一个VSI,称为第一 VSI仅分配一个VSI标签,称为第一VSI标签,第一VSI对应的所有PW均共用第一VSI 标签,大大节省了标签资源。 [0098] As can be seen by the above method, the first embodiment PE is a local VSI any embodiment of the present application, it referred to as a first allocated only a VSI VSI label, referred to as a first label VSI, first of all corresponding to the VSI VSI PW both share the first tag, saving the tag resources. 另外,第一PE在从与第一VSI关联的第一AC上学习到了第一MAC地址后,向与第一VSI属于同一个VPLS实例的第二VSI所在的第二PE发送第一MAC通告消息,第一MAC通告消息中携带有第一MAC地址、以及用于指不第一PW的第一FEC信息, 第一PW为第一VSI与第二PE上的第二VSI之间的PW,第二PE接收到第一MAC通告消息后,就可以将第一MAC地址学习到第一PW上,从而通过在属于同一个VPLS实例的VSI之间传递MAC通告消息,可以使PE上的VSI学习到PW侧的MAC地址。 Further, after learning the first PE from the first AC VSI associated with the first MAC address to the first, the first and second transmitting VSI belonging to the second PE VSI same VPLS instance where a first advertisement message MAC , a first MAC advertisement message carries the MAC address first, and the first FEC information is not used to refer to the first PW, PW is the first between a first second VSI VSI with the second PE PW, the first after two PE receives a first MAC advertisement message, a first MAC address may be learned by the PW on the first, so that by passing between MAC VSI announcement message belonging to the same VPLS instance, can learn VSI on PE MAC address of the PW-side. 这样,PE就不需要通过从PW侧接收到的MPLS报文学习源MAC并将此MAC与MPLS报文中的内层私网标签对应的PW关联。 Thus, PE can not required by the associated PW PW received from the side of the MPLS packet to learn the source MAC and the MAC of the MPLS packet tag corresponding to the inner private network. 所以,本申请技术方案中为一个VSI仅分配一个VSI标签可以实现,并且能起到大大节省标签资源的作用。 Therefore, the present application a technical solution is only assigned a VSI VSI tag may be implemented, and can play a role in resource saving tag. [0099] 同样,在第一VSI的MAC地址转发表中有MAC地址被删除后,第一PE也可以通过MAC撤销消息来将被删除的MAC地址通告给第二PE,第二PE接收到该MAC地址撤销消息将对应的MAC地址表项删除。 [0099] Similarly, the MAC address is deleted, the first PE may be the MAC address withdraw message advertisement to be deleted by the first MAC VSI in the MAC address forwarding table to the second PE, the second PE receiving the MAC address withdraw message corresponding to the MAC address entry is deleted. [0100] 在本申请的技术方案中,PE上PW侧的MAC地址学习不再通过数据流来触发,而是通过MAC通告消息和MAC撤销消息来触发学习。 [0100] In the aspect of the present disclosure, the PW on the PE side MAC address learning is no longer triggered by the data flow, but to trigger learning withdraw message announce message through the MAC and MAC. [0101] 三、MAC通告消息的发送方式的优化[0102] 第一PE可以在从第一AC上每次学习到一个MAC地址后,就向第二PE发送MAC通告消息。 [0101] III, MAC optimized advertisement message sending mode [0102] may first PE, it transmits the MAC message to the second advertisement from the first PE in the AC to each learned MAC address. 但是,这样会增加网络的负担。 However, this will increase the burden on the network. 因此,可以采用下列两种方式对MAC通告消息的发送方式进行优化处理:[0103] 方式一、定时通告与MAC地址打包:可以按照固定的时间周期通告学习到的MAC地址,而不是每次一学习到就通告。 Accordingly, the transmission mode of the MAC announcement message optimization processing using the following two ways: [0103] one embodiment, the timing and the MAC address advertised packing: can learn a fixed period of time announcement MAC address, rather than each time a learn to notice. 这样,向第二PE发送的一个MAC通告消息中可以携带多个MAC地址。 Thus, a MAC message transmitted to the second announcement PE may carry multiple MAC addresses. [0104] 方式二、按需通告:第一PE从第一AC收到用户报文后,查找第一AC关联的第一VSI的MAC地址转发表,如果MAC地址转发表中没有与该用户报文中携带的目的MAC相匹配的MAC转发表项,此时就会向第二PE发送用于请求该MAC地址的信息的请求消息,第二PE 收到该请求消息后,将本地的所有VSI的MAC地址转发表中与该MAC对应的转发表项的内容反馈给第一PE。 [0104] Mode 2 demand advertisement: first PE receives AC from a first user packet, it searches the first AC VSI associated with the first MAC address forwarding table, if the MAC address forwarding table is not reported to the user MAC packet contains the destination MAC address matches the forwarding entry, then it will request message to the second PE of the MAC address information is transmitted for requesting a second PE receiving the request message, all local VSI forwarding entry content in the MAC address forwarding table corresponding to the MAC back to the first PE. [0105] 同样,第一PE也可以在接收到来自第二PE的请求消息后,才将本地的所有VSI的MAC地址转发表中与该请求消息中携带的MAC地址对应的转发表项的内容反馈给第二PE。 [0105] Also, the first PE may be performed after receiving the request message from the second PE, only the local MAC address forwarding table all VSI carried in the request message with the MAC address forwarding table corresponding to the content item feedback to the second PE. 从而大大减少不必要的MAC地址通告。 Thus greatly reducing unnecessary MAC address of the advertisement. [0106] 针对本申请的上述方法,本申请还提供了一种VPLS网络中的第一PE,第一PE为VPLS网络中的任意一个PE。 [0106] For the above-described method of the present application, the present application further provides PE one kind of a first VPLS network, any of the first PE is a PE VPLS network. 如图11所示,第一PE包括:分配模块10和发送模块20,其中:[0107] 分配模块10,用于为第一PE上配置的任意一个VSI,称为第一VSI分配一个唯一的VSI标签,称为第一VSI标签,第一VSI下的所有PW共用第一VSI标签;[0108] 发送模块20,用于在分配模块10为第一VSI分配了第一VSI标签之后,以单播方式将第一VSI与第一VSI标签的绑定关系通告给第二PE,其中,第一VSI与第二PE上的第二 VSI属于同一个VPLS实例;以及,在第一PE从与第一VSI关联的第一AC上学习到第一MAC地址之后,以单播方式向第二PE发送携带有第一MAC地址和用于指示第一PW的第一FEC信息的第一MAC通告消息,以使得第二PE在第二VSI的MAC地址转发表中增加第一MAC 地址对应的MAC转发表项,且该MAC转发表项中第一MAC地址对应的出接口为第一FEC所指示的第一PW,其中,第一PW为第一VSI与第二VSI之间的PW。 As shown, the first PE 11 comprises: an allocation module 10 and a sending module 20, wherein: [0107] allocating module 10, for any one VSI configured on the first PE, called VSI assigned a first unique VSI label, referred to as a first label VSI, all share the first PW at a first label VSI VSI; [0108] sending module 20, configured to allocate the first after the first VSI VSI label distribution module 10, a single the first broadcast mode VSI VSI first label binding advertisement to the second PE, wherein the first and second VSI VSI on the second PE VPLS instance belong to the same; and the first PE from the first after the first learned MAC address, the second PE to send a unicast manner on a first associated AC VSI carries a first MAC address and a first indication for the first PW FEC first MAC information announcement message, PE so that the second increase in a first MAC address corresponding to the MAC forwarding entry in the second of the VSI in the MAC address forwarding table, and the MAC forwarding entry corresponding to the MAC address of a first interface of a first FEC indicated a PW, wherein, for the first PW PW between the first and second VSI VSI. [0109] 其中,发送模块20还用于在第一VSI的MAC地址转发表中有MAC地址被删除之后, 以单播方式向第二PE发送携带有被删除的MAC地址和第一FEC信息的第一MAC撤销消息, 以使得第二PE删除第二VSI的MAC地址转发表中与被删除的MAC地址对应的MAC转发表项;其中,第一FEC信息为第一PE上预先配置的第一PW的PW ID、或者为第一PE上预先配置的第一VSI所属的VPLS实例的VPLS ID、第一VSI和第二VSI在该VPLS实例中的标识。 After [0109] wherein the sending module 20 is further configured forwarding VSI in the MAC address in the first MAC address to be deleted, sent in a unicast manner to the second PE deleted carries the MAC address information and the first FEC first MAC revocation message, such that the second deletion of the second PE VSI MAC address forwarding table with the MAC address corresponding to the deleted MAC forwarding entry; wherein the first FEC information to a first pre-configured on the first PE the VPLS ID PW PW ID, or a first VPLS VSI preconfigured PE belongs to a first example, the first and second VSI VSI identifies the VPLS instance. [0110] 为了实现第一VSI与第一VSI标签的绑定关系的通告,发送模块20具体用于:在分配模块10为第一VSI分配了第一VSI标签之后,通过PW信令协议消息将第一VSI与第一 VSI标签的绑定关系通告给第二PE,其中,该PW信令协议消息中携带有第一VSI标签以及第一FEC信息之间的绑定关系,以使得第二PE增加第二VSI的PW表项,该PW表项对应于第一FEC所指示的第一PW,且该PW表项中包括有第一VSI标签。 [0110] In order to achieve the first advertisement VSI VSI label binding relationship with the first sending module 20 is configured to: assign a first VSI VSI the first label is, after allocating module 10, through the signaling protocol message PW the first binding advertisement and VSI VSI first label to the second PE, wherein the PW signaling protocol message carries a binding relationship between the first tag and the first FEC information VSI, such that a second PE a second PW entries VSI increases, which corresponds to the first PW entries indicated by the first FEC PW, PW and the entry comprises a first label VSI. [0111]另外,第一 PE中还可以包括:接收模块、判断模块和转发数据库管理模块,其中:[0112] 接收模块,用于接收第二PE发送的PW信令协议消息,其中,该PW信令协议消息中携带有第二PE为第二VSI分配的第二VSI标签以及用于指示第一PW的第二FEC信息之间的绑定关系,其中,第二FEC信息为第二PE上预先配置的第一PW的PW ID,或者为第二PE 上预先配置的第二VSI所属的VPLS实例的VPLSID、以及第二VSI和第一VSI在该VPLS实例中的标识;[0113] 判断模块,用于在接收模块接收到第二PE发送的该PW信令协议消息之后,根据该PW信令协议消息中携带的第二FEC信息判断第一PE上是否存在与第二VSI属于同一个VPLS实例的第一VSI ;[0114] 转发数据库管理模块,用于在判断模块判断出第一PE上存在与第二VSI属于同一个VPLS实例的第一VSI时,增加第一VSI的PW表项,该PW表项对应于第二FEC信息所指示的 [0111] Further, the first PE may further comprise: a receiving module, a judging module, and a forwarding database management module, wherein: [0112] a receiving module, configured to receive a second transmitted PE PW signaling protocol message, wherein the PW signaling protocol message carries the second PE is assigned a second VSI VSI and a second label for indicating the binding relationship between the first PW second FEC information, wherein the second information on the second FEC PE VPLSID VPLS instance preconfigured first PW PW ID, or a pre-configured on the second PE second VSI belongs, and a first and a second VSI VSI identifies the VPLS instance; [0113] determining module after receiving module for receiving the PW signaling protocol message sent by the second PE, the PW in accordance with the signaling protocol message carries a second FEC information determines whether there is a first PE and a second VPLS belong to the same VSI the first of the VSI; [0114] forwarding database management module for determining module determines that the presence of the first PE belonging to the first and second VSI VSI same VPLS instance, the first PW entries increase the VSI, the PW table entry corresponding to information indicated by the second FEC 第一PW,且该PW表项中包括有第二VSI标签;[0115] 其中,判断模块根据第二FEC信息判断第一PE上是否存在与第二VSI属于同一个VPLS实例的第一VSI的方式包括以下之一:[0116] 当第二FEC信息为第二PE上预先配置的第一PW的PW ID时,第一PE判断本地是否配置有PW ID与该PW信令协议消息中携带的PW ID相同的VSI,若是,则判断出第一PE 上存在与第二VSI属于同一个VPLS实例的第一VSI ;[0117] 当第二FEC信息为第二PE上预先配置的第二VSI所属的VPLS实例的VPLSID、以及第二VSI和第一VSI在该VPLS实例中的标识时,第一PE判断本地是否配置有所属的VPLS 实例的VPLS ID与该PW信令协议消息中携带的VPLS ID相同的VSI,并且该VSI在其所属的VPLS实例中的标识是该PW信令协议消息中携带的第一VSI的标识,若是,则判断出第一PE上存在与第二VSI属于同一个VPLS实例的第一VSI。 A first PW, PW and the second entry comprises a tag VSI; [0115] wherein determining whether there is a module according to a first and a second VSI VSI belonging to the same VPLS instance on the first PE in the second FEC information determination It comprises one of the following ways: [0116] FEC information when the second of the first PW PW ID preconfigured on the second PE, a first PE is determined whether the local PW ID is arranged to carry the signaling protocol message PW same VSI PW ID, if yes, determines that there is a first PE belonging to the first and second VSI VSI same VPLS instance; [0117] when the second information on the second FEC PE belongs VSI second preconfigured the VPLS instance VPLSID, and a first and a second VSI VSI when the identification of the VPLS instance, a first local PE determines whether the VPLS instance belonging to the VPLS ID PW signaling protocol message carries the ID VPLS the same VSI, the VSI and identifies the VPLS instance to which it belongs is the first identification of the VSI PW signaling protocol message carried in, if it is determined that there is a first PE and a second VSI belonging to the same VPLS the first of the VSI. [0118] 其中,接收模块还用于接收第二PE发送的第二MAC通告消息,第二MAC通告消息中携带有第二FEC信息和第二PE从与第二VSI关联的第二AC上学习到的第二MAC地址; 以及,接收第二PE在第二VSI的MAC地址转发表中有MAC地址被删除后发送的第二MAC撤销消息,第二MAC撤销消息中携带有被删除的MAC地址和第二FEC信息;[0119] 转发数据库管理模块还用于在判断模块根据接收模块接收到的第二MAC通告消息中携带的第二FEC信息判断出第一PE上存在与第二VSI属于同一个VPLS实例的第一VSI 之后,在第一VSI的MAC地址转发表中增加第二MAC地址对应的MAC转发表项,且该MAC转发表项中第二MAC地址对应的出接口为第二FEC信息所指示的第一PW ;以及,在判断模块根据接收模块接收到的第二MAC撤销消息中携带的第二FEC信息判断出第一PE上存在与第二VSI属于同一个VPLS实例的第一VSI之后,更新第一 [0118] wherein, the receiving module is further configured to receive a second PE advertisement message sent by the second MAC, a second MAC advertisement message carries a second and a second FEC information from the second PE VSI learning associated with the second AC to the second MAC address; and receiving a second PE forwarding the second VSI in the MAC address in the second MAC MAC address is deleted after the transmission cancel message, the second MAC revocation message carries the MAC address is deleted and a second FEC information; a second FEC information [0119] forwarding database management module is further configured to determining the second MAC module according to the received announce message receiving module determines that there is carried on the first and second PE belong to the same VSI after the VPLS instance VSI first, second MAC address corresponding to the increase in MAC forwarding entry in the first VSI in the MAC address forwarding table, and the second FEC MAC forwarding entry corresponding to the MAC address of the second interface PW indicated by the first information; and a second MAC based on the received receiving module determining module revocation message carries a second FEC information and determines that there is a second VPLS instance belong to the same VSI on a first first PE after VSI, first update VSI的MAC地址转发表,以将第二 MAC撤销消息中携带的被删除的MAC地址对应的MAC转发表项删除。 VSI MAC address forwarding table, MAC addresses are deleted in order to withdraw the second MAC carried in the message corresponding to the MAC forwarding entry deleted. [0120] 综上,本申请以上实施例可以达到以下技术效果:[0121 ] 本申请的实施例中,第一PE为本地的任意一个VSI,称为第一VSI仅分配一个VSI 标签,称为第一VSI标签,第一VSI对应的所有PW均共用第一VSI标签,大大节省了标签资源。 [0120] In summary, the foregoing embodiment of the present application can achieve the following technical effects: [0121] embodiment of the present application, any of the first PE is a local VSI, referred to as first allocated only a VSI VSI label, referred to VSI first label, a first PW all share the first average corresponding to the VSI VSI label, the label resources saving. 另外,第一PE在从与第一VSI关联的第一AC上学习到了第一MAC地址后,向与第一VSI属于同一个VPLS实例的第二VSI所在的第二PE发送第一MAC通告消息,第一MAC通告消息中携带有第一MAC地址、以及用于指示第一PW的第一FEC信息,第一PW为第一VSI 与第二PE上的第二VSI之间的PW,第二PE接收到第一MAC通告消息后,就可以将第一MAC 地址学习到第一PW上,从而通过在属于同一个VPLS实例的VSI之间传递MAC通告消息,可以使PE上的VSI学习到PW侧的MAC地址。 Further, after learning the first PE from the first AC VSI associated with the first MAC address to the first, the first and second transmitting VSI belonging to the second PE VSI same VPLS instance where a first advertisement message MAC , a first MAC advertisement message carries the MAC address first, and for the first FEC information indicates a first PW, the first PW between the first second VSI VSI with the second PE PW, the second after receiving the first MAC PE advertisement message, a first MAC address may be learned by the first PW, so that by passing between MAC VSI announcement message belonging to the same VPLS instance, VSI can learn the PE PW MAC address side. 这样,PE就不需要通过从PW侧接收到的MPLS 报文学习源MAC并将此MAC与MPLS报文中的内层私网标签对应的PW关联。 Thus, PE can not required by the associated PW PW received from the side of the MPLS packet to learn the source MAC and the MAC of the MPLS packet tag corresponding to the inner private network. 所以,本申请技术方案中为一个VSI仅分配一个VSI标签可以实现,并且能起到大大节省标签资源的作用。 Therefore, the present application a technical solution is only assigned a VSI VSI tag may be implemented, and can play a role in resource saving tag. [0122] 以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。 [0122] The foregoing is only preferred embodiments of the present application only, not intended to limit the present application, within the spirit and principle of the present application, made any modifications, equivalent replacements and improvements should be included within the scope of protection of the present application.

Claims (10)

  1. 1. 一种虚拟专用局域网服务VPLS网络中的媒体访问控制MAC地址学习方法,所述VPLS网络包括多个提供商网络边缘设备PE,每一个PE通过接入电路AC连接至用户边界网络设备CE,其特征在于,所述方法包括:第一PE为本地配置的一第一虚拟交换实例VSI分配一个唯一的第一VSI标签,以单播方式将第一VSI与第一VSI标签的绑定关系通告给第二PE,其中,第一VSI与第二PE上的第二VSI属于同一个VPLS实例,第一VSI下的所有伪线PW共用第一VSI标签;所述第一PE从与第一VSI关联的第一AC上学习到第一MAC地址之后,以单播方式向第二PE发送携带有所述第一MAC地址和用于指示第一PW的第一转发等价类FEC信息的第一MAC通告消息,以使得所述第二PE在第二VSI的MAC地址转发表中增加第一MAC地址对应的MAC转发表项,且该MAC转发表项中第一MAC地址对应的出接口为第一FEC所指示的第一PW,其中,所 A virtual MAC address learning method of a Media Access Private LAN Service VPLS network control, the VPLS network comprises a plurality of provider edge device PE, each PE network boundary device connected to the user via CE attachment circuit AC, wherein said method comprises: a first virtual local PE is a first configuration example of the switching VSI VSI first assigned a unique label, the first unicast manner VSI binding relationship between the first tag VSI announcement a second PE, wherein the first and second VSI VSI on the second VPLS instance belong to the same PE, PW pseudo-wire common to all the first VSI VSI a first label; the first PE from the first VSI after the first learned MAC address in a unicast manner to the second transmission carries the first PE and a first MAC address forwarding equivalence class FEC information indicates a first PW, the first associated with the first AC MAC advertisement message, so that the second PE second VSI in the MAC address forwarding table corresponding to the MAC address of a first increase MAC forwarding entry, and the MAC forwarding entry corresponding to the MAC address of the interface of the first section a first PW FEC indicated, wherein the 述第一PW为所述第一VSI与所述第二VSI之间的PW。 Said first PW PW between said first and said second VSI VSI.
  2. 2.根据权利要求I所述的方法,其特征在于,还包括:所述第一PE在所述第一VSI的MAC地址转发表中有MAC地址被删除之后,以单播方式向所述第二PE发送携带有被删除的MAC地址和所述第一FEC信息的第一MAC撤销消息,以使得所述第二PE删除所述第二VSI的MAC地址转发表中与所述被删除的MAC地址对应的MAC转发表项;其中,第一FEC信息为第一PE上预先配置的所述第一PW的PW ID、或者为第一PE上预先配置的所述第一VSI所属的VPLS实例的VPLS ID、所述第一VSI和所述第二VSI在该VPLS实例中的标识。 2. The method according to claim I, characterized in that, further comprising: in the first of the first PE has the VSI in the MAC address forwarding table after the MAC address is deleted, a unicast manner to the first PE carries two transmission MAC address is deleted and said first MAC information of the first FEC revocation message, such that the second PE VSI deleting the second MAC address forwarding table with the MAC deleted corresponding MAC address forwarding entry; wherein the first FEC information is pre-configured on the first PE PW ID of a first PW, on a first or pre-configured to the first PE VSI VPLS instance belongs VPLS ID, VSI said first and said second VPLS VSI identification in this instance.
  3. 3.根据权利要求I所述的方法,其特征在于,所述以单播方式将第一 VSI与第一VSI标签的绑定关系通告给第二PE包括:所述第一PE向第二PE发送PW信令协议消息,其中,该PW信令协议消息中携带有第一VSI标签以及第一FEC信息之间的绑定关系,以使得第二PE增加第二VSI的PW表项,该PW 表项对应于第一FEC所指示的第一PW,且该PW表项中包括有第一VSI标签。 3. The method of claim I, wherein said first unicast manner VSI VSI label binding with the first advertisement to the second PE comprising: the first PE in the second PE PW signaling protocol message transmission, wherein the PW signaling protocol message carries a binding relationship between the first tag and the first FEC information VSI, so that the second increase in PE PW entries VSI of a second, the PW a first table entry corresponding to the first PW indicated by the FEC, and the PW table entry comprises a first label VSI.
  4. 4.根据权利要求I所述的方法,其特征在于,还包括:所述第一PE接收到第二PE发送的PW信令协议消息,其中,该PW信令协议消息中携带有所述第二PE为第二VSI分配的第二VSI标签以及用于指示第一PW的第二FEC信息之间的绑定关系,其中,第二FEC信息为第二PE上预先配置的第一PW的PW ID,或者为第二PE 上预先配置的第二VSI所属的VPLS实例的VPLS ID、以及第二VSI和第一VSI在该VPLS实例中的标识;若根据该PW信令协议消息中携带的第二FEC信息判断出本地存在与第二VSI属于同一个VPLS实例的第一VSI,则所述第一PE增加第一VSI的PW表项,该PW表项对应于第二FEC信息所指示的第一PW,且该PW表项中包括有第二VSI标签;其中,根据第二FEC信息判断本地是否存在与第二VSI属于同一个VPLS实例的第一VSI的方式包括以下之一:当第二FEC信息为第二PE上预先配置的第一PW的PW ID时,所述第一PE判 4. The method according to claim I, characterized in that, further comprising: receiving the first PE PW signaling protocol message sent by the second PE, wherein the PW signaling protocol message carries the first VSI second binding relationship between two PE label assigned to the second VSI and a second FEC information indicates a first PW, wherein the second FEC information on a first PW second PE preconfigured PW VPLS ID VPLS instance ID, VSI, or a second pre-configured on the second PE belongs, and a first and a second VSI VSI in the VPLS instance identifier; if carried in the signaling protocol message to the first PW two FEC information is judged that the local presence of the first and second VSI VPLS instance belong to the same VSI, then the first PE increase the VSI PW entries first, the PW entries corresponding to the first information indicated by the second FEC a PW, PW and the second entry comprises a tag VSI; wherein the second FEC information to determine whether there is a local VSI according to a first embodiment of a second VPLS instance belong to the same VSI comprises one of: when the second when the PW ID FEC information on a first PW preconfigured second PE, the PE first determination 断本地是否配置有PW ID与该PW信令协议消息中携带的PW ID相同的VSI,若是,则判断出本地存在与第二VSI属于同一个VPLS实例的第一VSI ;当第二FEC信息为第二PE上预先配置的第二VSI所属的VPLS实例的VPLS ID、以及第二VSI和第一VSI在该VPLS实例中的标识时,所述第一PE判断本地是否配置有所属的VPLS实例的VPLS ID与该PW信令协议消息中携带的VPLS ID相同的VSI,并且该VSI在其所属的VPLS实例中的标识是该PW信令协议消息中携带的第一VSI的标识,若是,则判断出本地存在与第二VSI属于同一个VPLS实例的第一VSI。 Off are configured with local PW ID and the PW signaling protocol message carries the same VSI PW ID, if yes, determines that the local presence of a first and a second VSI belonging to the same VSI VPLS instance; FEC information when the second PE second VPLS VSI ID second preconfigured VPLS instance belongs, and a first and a second VSI VSI identifies the VPLS instance, the first local PE determines whether the VPLS instance arranged belongs same VPLS ID VSI VPLS ID and the PW signaling protocol message carried in the VSI and identifies the VPLS instance to which it belongs is the first identification of the VSI PW signaling protocol message carried in, if it is determined the presence of a second local VSI belonging to the same VSI first VPLS instance.
  5. 5.根据权利要求4所述的方法,其特征在于,还包括:所述第一PE接收到第二PE发送的第二MAC通告消息,所述第二MAC通告消息中携带有第二FEC信息和所述第二PE从与第二VSI关联的第二AC上学习到的第二MAC地址;若根据第二MAC通告消息中携带的第二FEC信息判断出本地存在与第二VSI属于同一个VPLS 实例的第一VSI,则所述第一PE在第一VSI的MAC地址转发表中增加第二MAC地址对应的MAC转发表项,且该MAC转发表项中第二MAC地址对应的出接口为第二FEC信息所指示的第-Pff ;所述第一PE接收到所述第二PE在所述第二VSI的MAC地址转发表中有MAC地址被删除后发送的第二MAC撤销消息,所述第二MAC撤销消息中携带有被删除的MAC地址和所述第二FEC信息;若根据第二MAC撤销消息中携带的第二FEC信息判断出本地存在与第二VSI 属于同一个VPLS实例的第一VSI,则所述第一PE更新自身上的第一VSI的 The method according to claim 4, characterized in that, further comprising: receiving a second PE of the first MAC advertisement message sent by the second PE, the second MAC notification message carries a second FEC information and learning from the second PE of the second AC VSI associated with the second address to a second MAC; if it is determined that the second MAC according to a second FEC information announcement message carried in the presence of a second local belong to the same VSI the first example of the VPLS VSI, then the first PE VSI in the MAC address forwarding table in a first increasing the second MAC address forwarding entry corresponding to the MAC, and the MAC forwarding table entry corresponding to the second MAC address Interface -Pff second FEC information for the first indicated; the first PE PE receiving the second MAC and a second MAC address is deleted after transmission of the message in the second withdrawal of the VSI in the MAC address forwarding table, the second MAC revocation message carries the MAC address is deleted and the second FEC information; withdraw message if the second MAC according to the second FEC information carried in the presence of a second local judged that belong to the same VPLS instance VSI first VSI, then the first PE update itself on the first VSI MAC地址转发表,以将所述第二MAC撤销消息中携带的被删除的MAC地址对应的MAC转发表项删除。 MAC address forwarding table, MAC addresses are deleted so as to withdraw the second MAC carried in the message corresponding to the MAC forwarding entry deleted.
  6. 6. 一种虚拟专用局域网服务VPLS网络中的第一提供商网络边缘设备PE,其特征在于, 包括:分配模块,用于为第一PE上配置的一第一虚拟交换实例VSI分配一个唯一的第一VSI 标签,第一VSI下的所有伪线PW共用第一VSI标签;发送模块,用于在所述分配模块为第一VSI分配了第一VSI标签之后,以单播方式将第一 VSI与第一VSI标签的绑定关系通告给第二PE,其中,第一VSI与第二PE上的第二VSI 属于同一个VPLS实例;以及,在第一PE从与第一VSI关联的第一AC上学习到第一MAC地址之后,以单播方式向第二PE发送携带有所述第一MAC地址和用于指示第一PW的第一转发等价类FEC信息的第一MAC通告消息,以使得所述第二PE在第二VSI的MAC地址转发表中增加第一MAC地址对应的MAC转发表项,且该MAC转发表项中第一MAC地址对应的出接口为第一FEC所指示的第一PW,其中,所述第一PW为所述第一VSI A Virtual Private LAN Service VPLS network of a first network provider edge PE device, characterized by comprising: a distribution module for a first virtual exchange arranged on the first PE is assigned a unique instance of VSI VSI first label, all pseudo-wire PW at the first common VSI VSI a first label; after transmitting means for dispensing the first module VSI VSI first tag assigned to a first unicast VSI and a first binding advertisement VSI label to the second PE, wherein the second VSI VSI on the first PE and the second VPLS instance belong to the same; and the first PE from the first associated with the first VSI after the first learned MAC address, the second PE to send a unicast manner on AC carries the first MAC address and a first PW for indicating a first advertisement MAC forwarding a first message of the equivalence class FEC information, such that the second PE second VSI in the MAC address forwarding table corresponding to the MAC address of a first increase MAC forwarding entry, and the MAC forwarding entry corresponding to the MAC address of the first interface as indicated by a first FEC a first PW, wherein said first said first VSI PW 所述第二VSI之间的PW。 PW between the second VSI.
  7. 7.根据权利要求6所述的第一 PE,其特征在于,所述发送模块还用于在所述第一VSI的MAC地址转发表中有MAC地址被删除之后,以单播方式向所述第二PE发送携带有被删除的MAC地址和所述第一FEC信息的第一MAC撤销消息,以使得所述第二PE删除所述第二VSI的MAC地址转发表中与所述被删除的MAC地址对应的MAC转发表项;其中,所述第一FEC信息为第一PE上预先配置的所述第一PW的PW ID、或者为第一PE 上预先配置的所述第一VSI所属的VPLS实例的VPLS ID、所述第一VSI和所述第二VSI在该VPLS实例中的标识。 7. The first PE according to claim 6, wherein the sending module is further configured to, after the MAC address is deleted in said first VSI in the MAC address forwarding table, in a unicast manner to the transmitting a second PE deleted carries the MAC address of a first MAC and said first FEC revocation message information, so that the second PE deleting the MAC address forwarding table is deleted in the second VSI with the MAC address of the MAC forwarding entry; wherein the first FEC information is pre-configured on the first PE PW ID of a first PW, or the pre-configured on the first PE belongs to a first VSI VPLS VPLS instance ID, VSI said first and said second VPLS VSI identification in this instance.
  8. 8.根据权利要求6所述的第一 PE,其特征在于,所述发送模块具体用于:在所述分配模块为第一VSI分配了第一VSI标签之后,通过PW信令协议消息将第一VSI与第一VSI标签的绑定关系通告给第二PE,其中,该PW信令协议消息中携带有第一VSI标签以及第一FEC信息之间的绑定关系,以使得第二PE增加第二VSI的PW表项,该PW表项对应于第一FEC所指示的第一PW,且该PW表项中包括有第一VSI标签。 The first PE according to claim 6, wherein the transmitting module is configured to: after the first dispensing module VSI VSI first tag assigned, by the first signaling protocol message PW VSI VSI with a first binding advertisement label to a second PE, wherein the PW signaling protocol message carries a binding relationship between the first tag and the first FEC information VSI, so that the second increase in PE the second VSI PW table entry, the table entry corresponding to the first PW PW indicated first the FEC, and the PW table entry comprises a first label VSI.
  9. 9.根据权利要求7所述的第一 PE,其特征在于,还包括:接收模块,用于接收第二PE发送的PW信令协议消息,其中,该PW信令协议消息中携带有所述第二PE为第二VSI分配的第二VSI标签以及用于指示第一PW的第二FEC信息之间的绑定关系,其中,第二FEC信息为第二PE上预先配置的第一PW的PW ID,或者为第二PE 上预先配置的第二VSI所属的VPLS实例的VPLS ID、以及第二VSI和第一VSI在该VPLS实例中的标识;判断模块,用于在所述接收模块接收到第二PE发送的该PW信令协议消息之后,根据该PW信令协议消息中携带的第二FEC信息判断所述第一PE上是否存在与第二VSI属于同一个VPLS实例的第一VSI ;转发数据库管理模块,用于在所述判断模块判断出所述第一PE上存在与第二VSI属于同一个VPLS实例的第一VSI时,增加第一VSI的PW表项,该PW表项对应于第二FEC信息所指示的第一PW,且该PW表项中 According to the first PE according to claim 7, characterized in that, further comprising: a receiving module for receiving PW signaling protocol message sent by the second PE, wherein the PW signaling protocol message carries the a second second PE VSI VSI second label allocated and a second binding relationship between the FEC information indicates a first PW, wherein the second FEC information on a first PW second PE preconfigured PW ID, or a pre-configured on the second PE to the second VPLS VPLS instance VSI ID belongs, and a first and a second VSI VSI identifies the VPLS instance; determining module, the receiving module for receiving PW to the second signaling protocol message sent by the PE after the judgment according to the second FEC information carried in the signaling protocol message PW presence or absence of the first PE belonging to the first and second VSI VSI same VPLS instance ; forwarding database management module, the judging module determines that the present time on the first PE belonging to the first and second VSI VSI same VPLS instance, the first PW entries VSI increases, which PW entries corresponding to the second FEC information indicates a first PW, PW and the entry 括有第二VSI标签;其中,所述判断模块根据第二FEC信息判断所述第一PE上是否存在与第二VSI属于同一个VPLS实例的第一VSI的方式包括以下之一:当第二FEC信息为第二PE上预先配置的第一PW的PW ID时,所述第一PE判断本地是否配置有PW ID与该PW信令协议消息中携带的PW ID相同的VSI,若是,则判断出所述第一PE上存在与第二VSI属于同一个VPLS实例的第一VSI ;当第二FEC信息为第二PE上预先配置的第二VSI所属的VPLS实例的VPLS ID、以及第二VSI和第一VSI在该VPLS实例中的标识时,所述第一PE判断本地是否配置有所属的VPLS实例的VPLS ID与该PW信令协议消息中携带的VPLS ID相同的VSI,并且该VSI在其所属的VPLS实例中的标识是该PW信令协议消息中携带的第一VSI的标识,若是,则判断出所述第一PE上存在与第二VSI属于同一个VPLS实例的第一VSI。 VSI comprises a second label; wherein said determining whether the module is present on the first PE according to the first judgment and the second FEC information VSI VSI belonging to the same manner as the second VPLS instance comprises one of: when the second when the FEC information of a first PW PW ID preconfigured on the second PE, the PE first determines whether configured with the same local PW ID and the VSI PW ID to the PW signaling protocol message carried in, if it is determined the presence of the first PE belonging to the first and second VSI VSI same VPLS instance; VPLS VPLS when the second ID information to the second FEC VSI second PE preconfigured instance belongs, and a second VSI VSI and the first identifier in the VPLS instance, the first determination same VPLS PE local VSI ID belongs is configured with a VPLS instance ID and the PW VPLS signaling protocol message carried in, and in the VSI VPLS instance to which it belongs is the first identification of the VSI PW identifier carried in the signaling protocol message, if yes, it is determined that the presence of the first and second VSI VSI belonging to the same VPLS instance on the first PE.
  10. 10.根据权利要求9所述的第一 PE,其特征在于,所述接收模块还用于接收第二PE发送的第二MAC通告消息,所述第二MAC通告消息中携带有第二FEC信息和所述第二PE从与第二VSI关联的第二AC上学习到的第二MAC地址; 以及,接收所述第二PE在所述第二VSI的MAC地址转发表中有MAC地址被删除后发送的第二 MAC撤销消息,所述第二MAC撤销消息中携带有被删除的MAC地址和所述第二FEC信息; 所述转发数据库管理模块还用于在所述判断模块根据所述接收模块接收到的第二MAC 通告消息中携带的第二FEC信息判断出所述第一PE上存在与第二VSI属于同一个VPLS实例的第一VSI之后,在第一VSI的MAC地址转发表中增加第二MAC地址对应的MAC转发表项,且该MAC转发表项中第二MAC地址对应的出接口为第二FEC信息所指示的第一PW ;以及,在所述判断模块根据所述接收模块接收到的第二MAC撤销消息中 10. The first PE according to claim 9, wherein the receiving module is further configured to receive a second advertisement MAC message sent by the second PE, the second MAC notification message carries a second FEC information and learning from the second PE of the second AC VSI associated with the second address to a second MAC; and receiving the second PE device that the MAC address is deleted VSI in the MAC address of the second forwarding table after sending the second MAC revocation message, the second MAC revocation message carries the MAC address is deleted and the second FEC information; the forwarding database management module is further used for determining the module according to the received after receiving the second MAC module advertisement message carries information of a second FEC determined that the presence of the first PE belonging to the first and second VSI VSI same VPLS instance, VSI in the MAC address forwarding table of the first increasing the second MAC address corresponding to the MAC forwarding entry, the MAC and the second MAC address forwarding entry corresponding to the first PW interface FEC information indicates a second post; and the receiving, the determining module according to the second MAC module revocation message received 携带的第二FEC信息判断出所述第一PE上存在与第二VSI属于同一个VPLS实例的第一VSI之后,更新第一VSI 的MAC地址转发表,以将所述第二MAC撤销消息中携带的被删除的MAC地址对应的MAC转发表项删除。 After the information carried by the second FEC determined that the presence of the first PE belonging to the first and second VSI VSI same VPLS instance, VSI updating the first MAC address forwarding table, in order to withdraw the second MAC message carrying the deleted MAC address of the corresponding MAC forwarding entry deleted.
CN 201210431654 2012-11-01 2012-11-01 Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks CN102932499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210431654 CN102932499B (en) 2012-11-01 2012-11-01 Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210431654 CN102932499B (en) 2012-11-01 2012-11-01 Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks

Publications (2)

Publication Number Publication Date
CN102932499A true true CN102932499A (en) 2013-02-13
CN102932499B CN102932499B (en) 2015-05-13

Family

ID=47647195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210431654 CN102932499B (en) 2012-11-01 2012-11-01 Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks

Country Status (1)

Country Link
CN (1) CN102932499B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607479A (en) * 2013-10-31 2014-02-26 杭州华三通信技术有限公司 MAC (media access control) address learning method and PE (provider edge) equipment
CN103634192A (en) * 2013-11-28 2014-03-12 瑞斯康达科技发展股份有限公司 PW (pseudo wire) MAC (media access control) deletion method and device, PW MAC revocation information transmission method and device, and two-layer network system
WO2014040569A1 (en) * 2012-09-17 2014-03-20 Hangzhou H3C Technologies Co., Ltd. Forwarding packets and pe devices in vpls
WO2014186978A1 (en) * 2013-05-24 2014-11-27 华为技术有限公司 Method and device used in ethernet virtual private network
WO2015054864A1 (en) * 2013-10-17 2015-04-23 华为技术有限公司 Method and device for establishing layer 2 virtual private network services
CN106101023A (en) * 2016-05-24 2016-11-09 华为技术有限公司 Virtual private LAN service (VPLS) message processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155130A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Method for learning MAC address and system and equipment for conveying VPLS client data
EP2190148A1 (en) * 2007-09-12 2010-05-26 Huawei Technologies Co., Ltd. Method, system and device for removing media access control address

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155130A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Method for learning MAC address and system and equipment for conveying VPLS client data
EP2190148A1 (en) * 2007-09-12 2010-05-26 Huawei Technologies Co., Ltd. Method, system and device for removing media access control address

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014040569A1 (en) * 2012-09-17 2014-03-20 Hangzhou H3C Technologies Co., Ltd. Forwarding packets and pe devices in vpls
US9509609B2 (en) 2012-09-17 2016-11-29 Hewlett Packard Enterprise Development Lp Forwarding packets and PE devices in VPLS
WO2014186978A1 (en) * 2013-05-24 2014-11-27 华为技术有限公司 Method and device used in ethernet virtual private network
CN104365066A (en) * 2013-05-24 2015-02-18 华为技术有限公司 Method and device used in ethernet virtual private network
CN104365066B (en) * 2013-05-24 2017-11-24 华为技术有限公司 Method and apparatus for Ethernet virtual private network
CN105684400A (en) * 2013-10-17 2016-06-15 华为技术有限公司 Method and device for establishing layer 2 virtual private network services
WO2015054864A1 (en) * 2013-10-17 2015-04-23 华为技术有限公司 Method and device for establishing layer 2 virtual private network services
CN103607479A (en) * 2013-10-31 2014-02-26 杭州华三通信技术有限公司 MAC (media access control) address learning method and PE (provider edge) equipment
CN103607479B (en) * 2013-10-31 2017-10-17 新华三技术有限公司 One kind of mac address learning method and apparatus pe
CN103634192A (en) * 2013-11-28 2014-03-12 瑞斯康达科技发展股份有限公司 PW (pseudo wire) MAC (media access control) deletion method and device, PW MAC revocation information transmission method and device, and two-layer network system
CN103634192B (en) * 2013-11-28 2017-07-14 瑞斯康达科技发展股份有限公司 Pw mac deleted, the revocation information transmission method and apparatus and a network system Layer
CN106101023A (en) * 2016-05-24 2016-11-09 华为技术有限公司 Virtual private LAN service (VPLS) message processing method and device

Also Published As

Publication number Publication date Type
CN102932499B (en) 2015-05-13 grant

Similar Documents

Publication Publication Date Title
US20040088389A1 (en) Methods and apparatus for automated edge device configuration in a heterogeneous network
US20120170578A1 (en) Multicast vpn support for ip-vpn lite
CN101848161A (en) Communication method and equipment of MPLS L2VPN (Multiple protocol Label Switching Layer 2 Virtual Private Network) and MPLS L3VPN (Multiple protocol Label Switching Layer 3 Virtual Private Network)
CN102449964A (en) Three-layer virtual exclusive network routing control method, apparatus and system
US20090327797A1 (en) Method and Provider Edge Device for Advertising and Processing Pseudo-Wire Information
CN101667970A (en) Protection switching method and equipment thereof
CN101014014A (en) Routing aggregation method, packet transmitting method and border router of autonomous system
CN101155130A (en) Method for learning MAC address and system and equipment for conveying VPLS client data
CN103841028A (en) Method and device for forwarding messages
CN1897589A (en) Access apparatus, routing equipment and method for supporting IPv6 stateless address configuration in telecommunication network
CN101072238A (en) Method for realizing identical subnet communication for MPLS three-layer virtual special net
CN102932254A (en) Message forwarding method and device
CN101488964A (en) Method, system and router for implementing address resolution and double layered communication
CN102035729A (en) Multicast data forwarding method and device thereof
CN101123531A (en) Convergence method and device based on VPLS dual home full connection network
CN101877671A (en) Sending method of mirror image message, switch chip and Ethernet router
CN102164091A (en) Method for building MAC (Media Access Control) address table and provider edge device
CN102868614A (en) Packet forwarding method in TRILL (transparent interconnection of lots of links) network and routing bridge
US20040085997A1 (en) Methods and apparatus for broadcast domain interworking
CN101534209A (en) A method and device for sending multicast messages
CN102801820A (en) MAC address publishing method and device in EVI network
CN103269299A (en) Packet forwarding method and device in SPBM network
CN101277245A (en) Method, system and apparatus for implementing L2VPN field across
JP2013509090A (en) Method and apparatus for transparent cloud computing using virtual network infrastructure
CN101499951A (en) Tunnel configuration method, virtual access node, virtual edge node and system

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CP03