CN101505227B - Method, device and system for implementing point to multi-point pseudowire - Google Patents

Method, device and system for implementing point to multi-point pseudowire Download PDF

Info

Publication number
CN101505227B
CN101505227B CN2009101187781A CN200910118778A CN101505227B CN 101505227 B CN101505227 B CN 101505227B CN 2009101187781 A CN2009101187781 A CN 2009101187781A CN 200910118778 A CN200910118778 A CN 200910118778A CN 101505227 B CN101505227 B CN 101505227B
Authority
CN
China
Prior art keywords
point
equipment
bgp
pseudowire
message
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN2009101187781A
Other languages
Chinese (zh)
Other versions
CN101505227A (en
Inventor
薛莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhitong World Technology Service Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2009101187781A priority Critical patent/CN101505227B/en
Publication of CN101505227A publication Critical patent/CN101505227A/en
Application granted granted Critical
Publication of CN101505227B publication Critical patent/CN101505227B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for achieving point-to-multipoint pseudo-wires, which comprises the following steps: establishing a border gateway protocol (BGP) protocol with downstream node equipment through negotiation according to the collected network topology information; and sending a BGP message to the downstream node equipment, wherein the BGP message carries point-to-multipoint pseudo-wire labels specifically distributed to a virtual private multicast service (VPMS) embodiment to establish the point-to-multipoint pseudo-wires. The embodiment of the invention also provides corresponding equipment and a system. The technical proposal of the invention does not need static configuration, but needs dynamic establishment, thus the efficiency for establishing the point-to-multipoint pseudo-wires is improved; besides, relative to the static configuration, the accuracy rate of configuration is improved.

Description

一种实现点到多点伪线的方法、设备和系统A method, device and system for realizing point-to-multipoint pseudowire

技术领域 technical field

本发明涉及电通信技术领域,具体涉及一种实现点到多点伪线(P2MPPW,Point to Multi-point Pseudo Wire)的方法、设备和系统。The present invention relates to the technical field of electrical communication, in particular to a method, device and system for realizing Point to Multi-point Pseudo Wire (P2MPPW, Point to Multi-point Pseudo Wire).

背景技术 Background technique

在二层虚拟专用网络(L2VPN,Layer 2 Virtual Private Network)中,定义了多种业务类型,例如,虚拟专线业务(VPWS,Virtual Private Wire Service)及虚拟专用局域网业务(VPLS,Virtual Private LAN Service)等。VPWS业务提供一种点到点的L2VPN业务,而VPLS用于仿真以太网局域网(LAN,LocalArea Network)业务。在现有的L2VPN中,都可以提供简单的点到多点业务或者LAN业务,但是对于点到多点(P2MP,Point to Multi-Point)业务的提供比较烦琐。基于现有架构实现P2MP业务,需要通过源完成到每个接收端的路径的建立过程,并且需要源向每个接收端发送数据,这样将造成源运营商边缘(PE,Provider Edge)设备的负担过重并且造成网络资源的严重浪费,而虚拟专用多播业务(VPMS,Virtual Private Multicast Service)可以满足这种P2MP业务的需求。In Layer 2 Virtual Private Network (L2VPN, Layer 2 Virtual Private Network), a variety of service types are defined, for example, virtual private line service (VPWS, Virtual Private Wire Service) and virtual private LAN service (VPLS, Virtual Private LAN Service) wait. The VPWS service provides a point-to-point L2VPN service, while the VPLS is used to emulate an Ethernet LAN (LocalArea Network) service. In the existing L2VPN, simple point-to-multipoint services or LAN services can be provided, but the provision of point-to-multipoint (P2MP, Point to Multi-Point) services is relatively cumbersome. To implement P2MP services based on the existing architecture, it is necessary to complete the establishment process of the path to each receiving end through the source, and the source needs to send data to each receiving end, which will cause an excessive burden on the source operator's edge (PE, Provider Edge) device It is heavy and causes a serious waste of network resources, and the Virtual Private Multicast Service (VPMS, Virtual Private Multicast Service) can meet the requirements of this P2MP service.

VPMS是一种新的业务架构,能够提供基于点到多点的传输路径,满足P2MP业务的传输需求。VPMS具体通过建立在分组交换网络(PSN,PacketSwitching Network)隧道上的P2MP PW完成。VPMS的关键点在于P2MP PW的建立。VPMS is a new service architecture that can provide a point-to-multipoint transmission path to meet the transmission requirements of P2MP services. The VPMS is specifically implemented through a P2MP PW established on a packet switching network (PSN, PacketSwitching Network) tunnel. The key point of VPMS is the establishment of P2MP PW.

现有的P2MP PW的建立机制可以通过静态配置完成,在实际应用中,通过对整个网络资源和节点完成统计,并在特定的P2MP PSN隧道上的运营商边缘PE设备上配置特定VPMS业务实例对应的标签(VPMS Instance Label)、VPMS业务实例标识(VPMS Instance ID)及所建立的P2MP PW的拓扑标识信息(P2MP PW Topology Identify ID),从而建立P2MP PW。The existing P2MP PW establishment mechanism can be completed through static configuration. In practical applications, by completing statistics on the entire network resources and nodes, and configuring specific VPMS service instances on specific P2MP PSN tunnels on the carrier edge PE equipment The label (VPMS Instance Label), the VPMS service instance identifier (VPMS Instance ID) and the established P2MP PW topology identification information (P2MP PW Topology Identify ID), thereby establishing a P2MP PW.

在对现有技术的研究及实践过程中,本发明的发明人发现,现有技术中由于是静态配置,配置时需要对整个网络资源和节点进行统计,因此需要维护的资源烦琐,工作量较大,且可能引起错误配置。During the research and practice of the prior art, the inventors of the present invention found that due to the static configuration in the prior art, it is necessary to make statistics on the entire network resources and nodes during the configuration, so the resources to be maintained are cumbersome and the workload is heavy. Large, and may cause misconfiguration.

发明内容 Contents of the invention

本发明实施例提供一种实现点到多点伪线的方法、设备和系统,能够提高点到多点伪线建立的效率及准确率。Embodiments of the present invention provide a method, device and system for realizing a point-to-multipoint pseudowire, which can improve the efficiency and accuracy of establishing a point-to-multipoint pseudowire.

本发明实施例具体是通过以下技术方案实现的:The embodiment of the present invention is specifically realized through the following technical solutions:

一种实现点到多点伪线的方法,包括:A method of implementing a point-to-multipoint pseudowire, comprising:

根据收集的网络拓扑信息,与下游节点设备之间协商建立边界网关协议BGP连接;According to the collected network topology information, negotiate with downstream node devices to establish a Border Gateway Protocol BGP connection;

向下游节点设备发送BGP报文,所述BGP报文中携带有为特定虚拟专用多播业务VPMS实例分配的点到多点伪线标签,建立点到多点伪线。Sending a BGP message to a downstream node device, the BGP message carrying a point-to-multipoint pseudowire label allocated for a specific virtual private multicast service VPMS instance, and establishing a point-to-multipoint pseudowire.

一种路由器,包括:信息收集单元、连接建立单元和第一发送单元,其中:A router, comprising: an information collection unit, a connection establishment unit, and a first sending unit, wherein:

信息收集单元,用于收集网络拓扑信息;an information collection unit, configured to collect network topology information;

连接建立单元,用于根据收集的网络拓扑信息,与下游节点设备之间协商建立边界网关协议BGP连接;A connection establishment unit, configured to negotiate with downstream node devices to establish a Border Gateway Protocol (BGP) connection according to the collected network topology information;

第一发送单元,用于在BGP连接建立后,向下游节点设备发送BGP报文,所述BGP报文中携带有为特定虚拟专用多播业务VPMS实例分配的点到多点伪线标签,建立点到多点伪线。The first sending unit is configured to send a BGP message to a downstream node device after the BGP connection is established, wherein the BGP message carries a point-to-multipoint pseudowire label allocated for a specific virtual private multicast service VPMS instance, and establishes Point-to-multipoint pseudowires.

一种实现点到多点伪线的系统,包括:第一节点设备和第二节点设备,所述第二节点设备为下游节点设备,其中:A system for implementing a point-to-multipoint pseudowire, comprising: a first node device and a second node device, the second node device being a downstream node device, wherein:

第一节点设备,用于收集网络拓扑信息,并根据收集的网络拓扑信息,与所述第二节点设备之间协商建立边界网关协议BGP连接;并在BGP连接建立后,向所述第二节点设备发送BGP报文,所述BGP报文中携带有为特定虚拟专用多播业务VPMS实例分配的点到多点伪线标签,建立点到多点伪线;The first node device is configured to collect network topology information, and negotiate with the second node device to establish a Border Gateway Protocol BGP connection according to the collected network topology information; and after the BGP connection is established, send the message to the second node The device sends a BGP message, and the BGP message carries a point-to-multipoint pseudowire label allocated for a specific virtual private multicast service VPMS instance, and establishes a point-to-multipoint pseudowire;

第二节点设备,用于收集网络拓扑信息,根据收集的网络拓扑信息,与所述第一节点设备之间协商建立BGP连接;接收第一节点设备发送的BGP报文,从所述报文中获取为特定VPMS实例分配的点到多点伪线标签,建立与第一节点设备之间的点到多点伪线。The second node device is configured to collect network topology information, negotiate with the first node device to establish a BGP connection according to the collected network topology information; receive the BGP message sent by the first node device, and obtain the BGP message from the message Obtain the point-to-multipoint pseudo-wire label assigned to the specific VPMS instance, and establish a point-to-multipoint pseudo-wire with the first node device.

本发明实施例采用与下游节点设备之间建立BGP连接后,生成BGPUPDATE报文并向下游节点设备发送,所述BGP UPDATE报文中携带有为所述特定VPMS业务实例分配的P2MP PW标签,从而可以建立P2MP PW,由于所述方法不需要静态配置,而是动态建立,因此可以提高P2MP PW的建立效率;且相对于静态配置,可以提高配置的准确率。In the embodiment of the present invention, after the BGP connection is established with the downstream node device, a BGPUPDATE message is generated and sent to the downstream node device. The BGP UPDATE message carries the P2MP PW label allocated for the specific VPMS service instance, thereby The P2MP PW can be established, and since the method does not require static configuration, but is dynamically established, the efficiency of establishing the P2MP PW can be improved; and compared with the static configuration, the accuracy of configuration can be improved.

附图说明 Description of drawings

图1是本发明实施例中P2MP SS-PW参考模型示意图;Fig. 1 is the schematic diagram of P2MP SS-PW reference model in the embodiment of the present invention;

图2是本发明实施例中P2MP MS-PW参考模型示意图;Fig. 2 is the schematic diagram of P2MP MS-PW reference model in the embodiment of the present invention;

图3是本发明实施例中实现P2MP SS-PW的方法实施例一流程图;Fig. 3 is a flow chart of the first embodiment of the method for realizing P2MP SS-PW in the embodiment of the present invention;

图4是本发明实施例中BGP报文的报文头结构示意图;Fig. 4 is a schematic diagram of a message header structure of a BGP message in an embodiment of the present invention;

图5是本发明实施例中BGP OPEN报文体结构示意图;Fig. 5 is a schematic diagram of the BGP OPEN message body structure in the embodiment of the present invention;

图6是本发明实施例中扩展的Optional Parameters结构示意图;Fig. 6 is a schematic structural diagram of the expanded Optional Parameters in the embodiment of the present invention;

图7是本发明实施例中扩展后的BGP UPDATE报文体结构示意图;Fig. 7 is the schematic diagram of the BGP UPDATE message body structure after expansion in the embodiment of the present invention;

图8是本发明实施例中扩展的BGP VPMS NLRI区域结构示意图;Fig. 8 is the BGP VPMS NLRI regional structure schematic diagram that expands in the embodiment of the present invention;

图9是本发明实施例中实现P2MP PW的方法实施例二结构示意图;FIG. 9 is a schematic structural diagram of Embodiment 2 of a method for realizing P2MP PW in an embodiment of the present invention;

图10是本发明实施例中包含有P2MP PW撤销信息的BGP UPDATE报文体;Fig. 10 is the BGP UPDATE message body that contains P2MP PW revocation information in the embodiment of the present invention;

图11是本发明实施例中实现P2MP PW的方法实施例三流程图;Fig. 11 is a flow chart of Embodiment 3 of the method for realizing P2MP PW in the embodiment of the present invention;

图12是本发明实施例中路由器一结构示意图;FIG. 12 is a schematic structural diagram of router 1 in an embodiment of the present invention;

图13是本发明实施例中路由器二结构示意图;FIG. 13 is a schematic structural diagram of router 2 in an embodiment of the present invention;

图14是本发明实施例中路由器三结构示意图;Fig. 14 is a schematic diagram of the structure of router 3 in the embodiment of the present invention;

图15是本发明实施例中路由器四结构示意图;FIG. 15 is a schematic structural diagram of router 4 in an embodiment of the present invention;

图16是本发明实施例中实现P2MP PW的系统实施例一结构示意图;FIG. 16 is a schematic structural diagram of Embodiment 1 of a system implementing P2MP PW in an embodiment of the present invention;

图17是本发明实施例中实现P2MP PW的系统实施例二结构示意图。Fig. 17 is a schematic structural diagram of the second embodiment of the system for realizing P2MP PW in the embodiment of the present invention.

具体实施方式 Detailed ways

本发明实施例提供一种实现点到多点伪线的方法、设备和系统,通过扩展边界网关协议(BGP,Border Getway Protocol)来实现P2MP PW,可以提高P2MPPW建立的效率及准确率。以下参照附图进行详细说明。Embodiments of the present invention provide a method, device, and system for implementing a point-to-multipoint pseudowire. By extending the Border Gateway Protocol (BGP, Border Gateway Protocol) to implement P2MP PW, the efficiency and accuracy of P2MPPW establishment can be improved. Detailed description will be given below with reference to the drawings.

BGP是因特网上最重要的路由协议之一,可以应用到跨自治域(AS,Autonomour System)及跨运营商的场景。BGP是一种自治系统间的动态路由发现协议,它的基本功能是在自治系统间自动交换无环路的路由信息,通过交换带有自治系统号(AS)序列属性的路径可达性信息,来构造自治区域的拓扑图,从而消除路由环路并实施用户配置的路由策略。BGP is one of the most important routing protocols on the Internet, and can be applied to scenarios across autonomous domains (AS, Autonomour System) and across operators. BGP is a dynamic routing discovery protocol between autonomous systems. Its basic function is to automatically exchange loop-free routing information between autonomous systems. By exchanging path reachability information with autonomous system number (AS) sequence attributes, To construct the topology map of the autonomous area, thereby eliminating routing loops and implementing user-configured routing policies.

其中,自治系统是指:由同一个技术管理机构管理、使用统一选路策略的一些路由器的集合。每个自治系统都有唯一的自治系统编号,这个编号是由因特网授权的管理机构分配的。通过不同的编号来区分不同的自治系统。目前,自治系统的编号范围是1到65535,其中1到65411是注册的因特网编号,65412到65535是专用网络编号。Among them, the autonomous system refers to: a collection of routers managed by the same technical management organization and using a unified routing strategy. Each autonomous system has a unique autonomous system number, which is assigned by the Internet Authorized Management Organization. Different autonomous systems are distinguished by different numbers. Currently, autonomous system numbers range from 1 to 65535, where 1 to 65411 are registered Internet numbers and 65412 to 65535 are private network numbers.

BGP提供四种报文类型,分别为打开(OPEN)、保持连接性(KEEPALIVE)、更新(UPDATE)及通知(NOTIFICATION)。其中,BGP对等体间通过发送OPEN报文来交换各自的版本、自治系统号,保持时间、BGP标识符等信息,进行协商。UPDATE报文携带的是路由更新信息,其中包括撤销路由信息和可达性路由信息及其路径属性。当BGP检测到差错(连接中断、协商出错、报文差错等)时,发送NOTIFICATION报文,关闭对等体的连接。KEEPALIVE报文在BGP对等体间周期地发送,以确保连接的有效。BGP provides four message types, which are OPEN, KEEPALIVE, UPDATE and NOTIFICATION. Among them, BGP peers send OPEN messages to exchange their own version, autonomous system number, hold time, BGP identifier and other information for negotiation. What the UPDATE message carries is routing update information, including revoked routing information, reachability routing information and its path attributes. When BGP detects an error (connection interruption, negotiation error, message error, etc.), it sends a NOTIFICATION message to close the peer connection. KEEPALIVE messages are periodically sent between BGP peers to ensure the validity of the connection.

在本发明实施例中,根据收集的网络拓扑信息,与下游节点设备之间协商建立BGP连接;然后向下游节点设备发送BGP报文,所述BGP报文中携带有为特定VPMS实例分配的点到多点伪线标签,建立点到多点伪线。In the embodiment of the present invention, according to the collected network topology information, a BGP connection is negotiated with the downstream node device; and then a BGP message is sent to the downstream node device, and the BGP message carries the point allocation for a specific VPMS instance. To the multipoint pseudowire tag, create a point-to-multipoint pseudowire.

P2MP PW有P2MP单段伪线(SS-PW,Single Segment Pseudo Wire)和P2MP多段伪线(MS-PW,Multiple Segment Pseudo Wire)两种模型,分别参照图1和图2。P2MP PW has two models: P2MP single segment pseudo wire (SS-PW, Single Segment Pseudo Wire) and P2MP multi segment pseudo wire (MS-PW, Multiple Segment Pseudo Wire), refer to Figure 1 and Figure 2 respectively.

对于P2MP SS-PW,P2MP PW是一个PW树,在一个独立的P2MP PW拓扑中,包含一个源端和多个叶子端点,其中源端通过一个P2MP PW和各个叶子端点进行连接,叶子端点间相互隔离,叶子端点间不进行通信。For P2MP SS-PW, P2MP PW is a PW tree. In an independent P2MP PW topology, it includes a source end and multiple leaf end points. The source end is connected to each leaf end point through a P2MP PW, and the leaf end points are connected to each other. Isolated, no communication between leaf endpoints.

图1为本发明实施例中P2MP SS-PW参考模型示意图,用户边缘(CE,Customer Edge)设备101是用户侧的接入设备,负责将用户业务流通过接入电路(AC,Access Circuit)102发往PE设备103;PE设备103上要支持L2VPN协议规程,包括在控制面上通过信令建立PE设备103到对端PE设备103的伪线连接,数据面上完成二层数据链路帧到网际协议/多协议标签交换(IP/MPLS,International Protocol/Multiple Protocol Label Switching)标记包的封装/去封装和相应处理功能,并通过P2MP PSN隧道104中的PW105将标记包传送到对端PE设备103;运营商(P,Provider)设备106支持L2VPN业务流的透明传送,不支持L2VPN规程,只起提供承载通道的作用,PE设备103之间建立的P2MP PSN隧道104可以经过多个P设备106;AC102通常是指用户接入L2VPN系统所使用的异步传输模式(ATM,Asynchronous TransferMode)虚电路、帧中继(FR,Frame Router)虚电路或以太网虚拟局域网(VLAN,Virtul Local Area Network)链路;PW105是指PE设备103之间利用L2VPN信令建立的连接,PE设备103将AC102传来的二层数据帧通过PW105传送到对端PE设备103,对端PE设备103再恢复或重新生成二层链路帧传送到对端AC102;多条PW105可以复用在一条P2MP PSN隧道104中从PE设备103传往对端PE设备103。FIG. 1 is a schematic diagram of a P2MP SS-PW reference model in an embodiment of the present invention. A user edge (CE, Customer Edge) device 101 is an access device on the user side, and is responsible for passing user traffic through an access circuit (AC, Access Circuit) 102. Send to the PE device 103; the PE device 103 must support the L2VPN protocol procedure, including establishing a pseudowire connection from the PE device 103 to the peer PE device 103 through signaling on the control plane, and completing the Layer 2 data link frame to the peer PE device 103 on the data plane. Encapsulation/decapsulation and corresponding processing functions of Internet Protocol/Multiple Protocol Label Switching (IP/MPLS, International Protocol/Multiple Protocol Label Switching) marked packets, and transmit the marked packets to the peer PE device through PW105 in P2MP PSN tunnel 104 103; the operator (P, Provider) equipment 106 supports the transparent transmission of L2VPN service flow, does not support the L2VPN procedure, and only plays the role of providing a bearer channel, and the P2MP PSN tunnel 104 established between the PE equipment 103 can pass through multiple P equipment 106 ; AC102 usually refers to the asynchronous transfer mode (ATM, Asynchronous Transfer Mode) virtual circuit, frame relay (FR, Frame Router) virtual circuit or Ethernet virtual local area network (VLAN, Virtul Local Area Network) chain used by users to access the L2VPN system PW105 refers to the connection established between PE devices 103 using L2VPN signaling. PE device 103 transmits the Layer 2 data frame from AC102 to the peer PE device 103 through PW105, and the peer PE device 103 restores or regenerates The Layer 2 link frame is transmitted to the opposite end AC102; multiple PW105 can be multiplexed in one P2MP PSN tunnel 104 and transmitted from the PE device 103 to the opposite end PE device 103.

在VPMS应用中,对于单向的P2MP SS-PW,在源PE设备103-1,和叶子PE设备103-2、PE设备103-3、PE设备103-4之间提供了一个点到多点的仿真实例。在该架构中,可以将PE设备划分为两个集合,即源集合和叶子集合。相同集合内的设备之间不发送除控制报文外的其他数据报文。In VPMS applications, for a unidirectional P2MP SS-PW, a point-to-multipoint link is provided between the source PE device 103-1 and the leaf PE devices 103-2, PE devices 103-3, and PE devices 103-4. simulation example. In this architecture, PE devices can be divided into two sets, namely source set and leaf set. Devices in the same set do not send other data packets except control packets.

CE设备101通过AC102连接到PW105上,AC102具有方向性,即具有接收和发送两种特性。因此,一个设备可以通过其所连接的AC状态来决定自己的角色。在某些特殊情况下,例如PE设备103连接多个AC102,其中既包括发送特性AC102,又包括接收特性AC102,那么这个PE设备103将同时属于源集合和叶子集合。在本发明实施例中,所述的BGP对等实体即为通过P2MP PW连接的源PE设备和叶子PE设备。The CE device 101 is connected to the PW105 through the AC102, and the AC102 is directional, that is, it has two characteristics of receiving and sending. Thus, a device can determine its own role by the state of the AC it is connected to. In some special cases, for example, a PE device 103 is connected to multiple ACs 102, which include both the sending characteristic AC102 and the receiving characteristic AC102, then this PE device 103 will belong to both the source set and the leaf set. In the embodiment of the present invention, the BGP peer entity is the source PE device and the leaf PE device connected through the P2MP PW.

参照图3,为本发明实施例中实现P2MP SS-PW的方法实施例一流程图,根据收集的网络拓扑信息,源PE设备与叶子PE设备之间建立BGP连接,并在所述BGP连接建立后,源PE设备向叶子PE设备发送BGP报文,所述BGP报文中携带有为特定VPMS实例分配的P2MP PW标签,建立P2MP PW,以下通过具体场景进行详细说明,具体步骤如下:Referring to Fig. 3, it is a flow chart of the first embodiment of the method for implementing P2MP SS-PW in the embodiment of the present invention. According to the collected network topology information, a BGP connection is established between the source PE device and the leaf PE device, and the BGP connection is established Finally, the source PE device sends a BGP message to the leaf PE device. The BGP message carries the P2MP PW label allocated for a specific VPMS instance, and establishes a P2MP PW. The following describes in detail the specific scenarios, and the specific steps are as follows:

S301:在PE设备上配置建立P2MP SS-PW的信息;S301: Configure information for establishing a P2MP SS-PW on the PE device;

例如,可以在源PE设备及叶子PE设备上配置用于建立P2MP SS-PW的如下信息:VPMS实例标识和P2MP PW标识(ID,Identify),用于标识一个P2MP树。For example, the following information for establishing a P2MP SS-PW can be configured on the source PE device and the leaf PE device: VPMS instance identifier and P2MP PW identifier (ID, Identify), used to identify a P2MP tree.

配置的信息类型根据所使用的转发等价类(FEC,Forwarding EquivalenceClass)的类型不同而有所不同,例如:在使用FEC128的时候,需要配置P2MPPW ID和远端PE的IP地址,在使用FEC 129的时候配置相同的连接组标识符(AGI,Attachment Group Identifier)、P2MP PW ID以及设备IP地址。本发明实施中,对于BGP应用主要配置的是P2MP PW ID。The type of configured information varies depending on the type of forwarding equivalence class (FEC, Forwarding EquivalenceClass) used. For example, when using FEC128, you need to configure the P2MPPW ID and the IP address of the remote PE. When using FEC 129 When configuring the same connection group identifier (AGI, Attachment Group Identifier), P2MP PW ID and device IP address. In the implementation of the present invention, the P2MP PW ID is mainly configured for the BGP application.

S302:PE设备对网络拓扑信息进行收集;S302: The PE device collects network topology information;

在具体实施中,可以通过网管静态配置收集网络拓扑信息以及P2MP PSN隧道信息,源PE设备及叶子PE设备也可以利用BGP自动发现机制完成对网络拓扑信息以及P2MP PSN隧道信息的收集。例如,可以了解属于某个特定VPMS实例标识设备以及其所连接的AC状态(因为AC状态可以决定PE在网络中的角色,也即决定该设备是属于源设备还是属于叶子设备)等。In specific implementation, the network topology information and P2MP PSN tunnel information can be collected through the network management static configuration, and the source PE device and the leaf PE device can also use the BGP automatic discovery mechanism to complete the collection of network topology information and P2MP PSN tunnel information. For example, it is possible to know the identification device belonging to a specific VPMS instance and the AC state it is connected to (because the AC state can determine the role of the PE in the network, that is, determine whether the device belongs to the source device or the leaf device), etc.

S303、PE设备之间通过发送OPEN报文协商建立BGP连接;S303, the PE device negotiates to establish a BGP connection by sending an OPEN message;

其中,可以对BGP OPEN报文进行扩展,通过在BGP OPEN报文中携带BGP性能参数来指示自身支持VPMS性能。Among them, the BGP OPEN message can be extended to indicate that it supports VPMS performance by carrying BGP performance parameters in the BGP OPEN message.

BGP报文通常是由报文头和报文体构成,其中,BGP报文的报文头结构如图4所示,鉴权信息(Marker):16字节,全1,这个标记的作用主要是用来检测BGP对等体间的同步是否丢失。A BGP message is usually composed of a message header and a message body. Among them, the message header structure of a BGP message is shown in Figure 4. Authentication information (Marker): 16 bytes, all 1, the role of this mark is mainly It is used to detect whether the synchronization between BGP peers is lost.

消息的长度(Length):2字节,指示整个消息的长度,包括头标长度,最小的BGP消息长度是19字节(KEEPALIVE报文),最大的长度是4096字节。Length of the message (Length): 2 bytes, indicating the length of the entire message, including the length of the header. The minimum BGP message length is 19 bytes (KEEPALIVE message), and the maximum length is 4096 bytes.

消息的类型(Type):1字节,指示报文类型,如OPEN、UPDATE报文等,其中:1表示OPEN报文,2表示UPDATE报文,3表示NOTIFICATION报文,4表示KEEPALIVE报文。Message type (Type): 1 byte, indicating the message type, such as OPEN, UPDATE message, etc., wherein: 1 means OPEN message, 2 means UPDATE message, 3 means NOTIFICATION message, 4 means KEEPALIVE message.

参照图5,为BGP OPEN报文体结构示意图,各个参数域通常所占用的字节及代表的含义分别如下:Referring to Figure 5, it is a schematic diagram of the BGP OPEN message body structure. The bytes usually occupied by each parameter field and their meanings are as follows:

版本(Version):1字节,发送方BGP版本号;Version (Version): 1 byte, the BGP version number of the sender;

本地自治域(My Autonomous System):2字节无符号整数,本地AS号;Local autonomous domain (My Autonomous System): 2-byte unsigned integer, local AS number;

保持时间(Hold Time):2字节无符号整数,发送方建议的保持时间;Hold Time: 2-byte unsigned integer, hold time suggested by the sender;

BGP标识符(BGP Identifier):4字节,发送方的PE设备标识符;BGP identifier (BGP Identifier): 4 bytes, PE device identifier of the sender;

可选参数长度(Optional Parameters Len):1字节,可选的参数的长度;Optional parameter length (Optional Parameters Len): 1 byte, the length of optional parameters;

可选参数(Optional Parameters):可变长度,可选的参数。Optional parameters (Optional Parameters): variable length, optional parameters.

消息的开始部分包括BGP的版本号Version和发送方的自治系统号MyAutonomous System。保持时间字段Hold Time,是发送方提供建立的保持定时器的设定秒数。保持定时器规定了BGP邻居认为发送方信息有效的时间长度。The beginning part of the message includes the version number Version of BGP and the autonomous system number MyAutonomous System of the sender. The hold time field Hold Time is the set seconds of the hold timer provided by the sender. The hold timer specifies the length of time that BGP neighbors consider the sender's information to be valid.

BGP Identifier是BGP发送方的标识,该值在BGP对等实体间进行握手操作的过程中是确定的,并且在每个本地接口及每个BGP对等体之间是保持不变的。BGP Identifier is the identifier of the BGP sender. This value is determined during the handshake operation between BGP peer entities and remains unchanged between each local interface and each BGP peer.

在本发明实施例中,可以通过扩展OPEN报文中的Optional Parameters来携带Capability通告指示PE设备是否支持VPMS实例。参照图6,为本发明实施例中扩展的Optional Parameters结构示意图,其中:In the embodiment of the present invention, the Optional Parameters in the OPEN message may be extended to carry the Capability notification to indicate whether the PE device supports the VPMS instance. Referring to Fig. 6, it is a schematic structural diagram of the expanded Optional Parameters in the embodiment of the present invention, wherein:

性能编码(Capability code):1字节,用于表示性能参数编码,选择为和标准协议中不冲突的值;Capability code: 1 byte, used to represent the performance parameter code, selected as a value that does not conflict with the standard protocol;

性能长度(Capability Length):1字节,性能参数长度,为性能值CapabilityValue的长度;Capability Length: 1 byte, the length of the performance parameter, which is the length of the capability value CapabilityValue;

性能值(Capability Value):1字节,例如,若设置为0标识支持VPMS,否则不支持。Capability Value: 1 byte, for example, if it is set to 0, it indicates that VPMS is supported, otherwise it is not supported.

对于携带有Capability性能参数的OPEN报文处理过程,与规格建议书(RFC,Requests for Comments)3392保持一致。For the processing of the OPEN message carrying the Capability performance parameter, it is consistent with the specification recommendation (RFC, Requests for Comments) 3392.

S304、源PE设备为特定VPMS实例分配P2MP PW标签,生成BGP UPDATE报文,并向叶子PE设备发送;S304, the source PE device allocates a P2MP PW label for a specific VPMS instance, generates a BGP UPDATE message, and sends it to the leaf PE device;

可以在BGP UPDATE报文扩展BGP VPMS网络可达性信息(NLRI,Network Layer Reach-ability Information)完成建立P2MP PW所需信息的通告,参照图7,为本发明实施例中扩展后的BGP UPDATE报文体结构示意图,各个参数域所占用的字节及含义如下:The BGP VPMS Network Reachability Information (NLRI, Network Layer Reach-ability Information) can be extended in the BGP UPDATE message to complete the announcement of the information required to establish the P2MP PW. With reference to Figure 7, it is the expanded BGP UPDATE report in the embodiment of the present invention Schematic diagram of the text structure, the bytes occupied by each parameter field and their meanings are as follows:

地址族标识符(AFI,Address Family Identifier):2字节,定义为L2VPN,值为25;Address Family Identifier (AFI, Address Family Identifier): 2 bytes, defined as L2VPN, the value is 25;

子序列地址族标识符(SAFI,Subsequent Address Family Identifier):1字节,定义为保留值,具体可以参照IANA标准。Subsequent Address Family Identifier (SAFI): 1 byte, defined as a reserved value, for details, refer to the IANA standard.

下一跳地址长度:1字节,标识网络中下一跳的网络地址长度;Next hop address length: 1 byte, which identifies the network address length of the next hop in the network;

下一跳地址:可变长度,标识达到目的地的下一跳的网络地址;Next hop address: variable length, identifying the network address of the next hop to reach the destination;

NLRI长度(NLRI length):1字节,标识NLRI值的长度;NLRI length (NLRI length): 1 byte, identifying the length of the NLRI value;

NLRI值(NLRI value):可变长度。NLRI value (NLRI value): variable length.

参照图8,为本发明实施例中扩展的BGP VPMS NLRI区域结构示意图,所扩展的BGP VPMS NLRI区域替代图7中的NLRI长度(NLRI length)区域及NLRI值(NLRI value)区域其中:Referring to Fig. 8, it is a schematic diagram of the extended BGP VPMS NLRI region structure in the embodiment of the present invention, and the extended BGP VPMS NLRI region replaces the NLRI length (NLRI length) region and the NLRI value (NLRI value) region in Fig. 7 wherein:

长度(Length):2字节,用于替换图7中所示的NLRI长度;Length (Length): 2 bytes, used to replace the NLRI length shown in Figure 7;

VPMS实例标识(VPMS Instance ID):4字节,用于标识某个VPMS服务实例;VPMS instance ID (VPMS Instance ID): 4 bytes, used to identify a VPMS service instance;

PE ID:8字节,用于标识源PE设备;PE ID: 8 bytes, used to identify the source PE device;

VPMS实例标签(Label for VPMS Instance):4字节,用于携带源PE设备为某特定VPMS服务实例分配的用于标识P2MP PW的标签,即P2MP PW标签;VPMS instance label (Label for VPMS Instance): 4 bytes, used to carry the label used to identify the P2MP PW allocated by the source PE device for a specific VPMS service instance, that is, the P2MP PW label;

点到多点伪线标识(P2MP PW ID):2字节,用于标识某个P2MP PW的拓扑,该值在网络中全局唯一,配置相同值的PE设备属于相同的P2MP PW拓扑;Point-to-multipoint pseudowire identifier (P2MP PW ID): 2 bytes, used to identify the topology of a certain P2MP PW. This value is globally unique in the network. PE devices configured with the same value belong to the same P2MP PW topology;

预留值(Reserved):长度可变,用于后续扩展使用。Reserved value (Reserved): The length is variable and used for subsequent expansion.

S305:叶子PE设备接收到BGP UPDATE报文后,读取报文信息,获取源PE设备分配给某个VPMS Instance的标签,完成P2MP PW的建立。S305: After receiving the BGP UPDATE message, the leaf PE device reads the message information, obtains the label assigned to a certain VPMS Instance by the source PE device, and completes the establishment of the P2MP PW.

P2MP PW是建立在P2MP PSN隧道上的,P2PM PW的建立过程即为特定P2MP PSN隧道上的源PE设备为所述特定P2MP PSN隧道上的业务实例分配用于标识P2MP PW标签的过程。The P2MP PW is established on the P2MP PSN tunnel, and the establishment process of the P2PM PW is the process in which the source PE device on the specific P2MP PSN tunnel allocates the label used to identify the P2MP PW for the service instance on the specific P2MP PSN tunnel.

从本实施例可以看出,源PE设备和叶子PE设备之间建立BGP连接后,生成BGP UPDATE报文,所述BGP UPDATE报文中携带有源PE设备为所述特定VPMS业务实例分配的用于标识P2MP PW的标签,从而可以建立P2MP PW,由于所述方法不需要静态配置,而是动态建立,因此可以提高P2MP PW的建立效率;且相对于静态配置,可以提高配置的准确率。It can be seen from this embodiment that after a BGP connection is established between the source PE device and the leaf PE device, a BGP UPDATE message is generated, and the BGP UPDATE message carries the user ID allocated by the source PE device for the specific VPMS service instance. Labels for identifying P2MP PWs, so that P2MP PWs can be established. Since the method does not require static configuration, but is dynamically established, it can improve the efficiency of P2MP PW establishment; and compared with static configuration, it can improve the accuracy of configuration.

在具体实施中,还可以通过扩展BGP协议,完成对所建立的P2MP PW的撤销,参照图9,为本发明实施例中实现P2MP PW的方法实施例二结构示意图,具体步骤如下:In the specific implementation, it is also possible to complete the revocation of the established P2MP PW by extending the BGP protocol. With reference to FIG. 9, it is a schematic structural diagram of the second embodiment of the method for realizing the P2MP PW in the embodiment of the present invention. The specific steps are as follows:

S901:源PE设备接收NOTIFICATION报文;S901: The source PE device receives the NOTIFICATION message;

NOTIFICATION报文主要在叶子PE设备发生错误或叶子PE设备被关闭的情况下使用,该报文携带各种错误代码(如定时器超时等),包括错误代码、辅助错误代码及错误信息等。The NOTIFICATION message is mainly used when an error occurs in the leaf PE device or the leaf PE device is shut down. The message carries various error codes (such as timer timeout, etc.), including error codes, auxiliary error codes, and error information.

可以理解的是,也可以是其他的用于管理维护P2MP PW的告警或通知消息。It can be understood that other alarm or notification messages for managing and maintaining the P2MP PW can also be used.

S902:所述源PE设备生成包含撤销(withdraw)信息的BGP UPDATE报文并发送到叶子PE设备,撤销与所述叶子PE设备之间已建立的P2MP PW。S902: The source PE device generates a BGP UPDATE message including withdraw (withdraw) information and sends it to the leaf PE device, withdrawing the established P2MP PW with the leaf PE device.

参照图10,为本发明实施例中包含有P2MP PW撤销信息的BGP UPDATE报文体,AFI和SAFI共同标识撤销信息;其中:Referring to Fig. 10, it is a BGP UPDATE message body containing P2MP PW revocation information in an embodiment of the present invention, and AFI and SAFI jointly identify revocation information; wherein:

AFI:2字节,定义为L2VPN,值为25;AFI: 2 bytes, defined as L2VPN, the value is 25;

SAFI:1字节,定义为保留值,具体可以参照IANA标准;SAFI: 1 byte, defined as a reserved value, please refer to the IANA standard for details;

VPMS Instance ID:4字节,用于标识要撤销的某个VPMS服务实例;VPMS Instance ID: 4 bytes, used to identify a VPMS service instance to be revoked;

Label for VPMS Instance:4字节,用于标识要撤销的P2MP PW的标签,即P2MP PW标签。Label for VPMS Instance: 4 bytes, used to identify the label of the P2MP PW to be revoked, that is, the P2MP PW label.

在具体实施中,还可以通过扩展BGP协议,完成对所建立的P2MP PW的维护与管理,参照图11,为本发明实施例中实现P2MP PW的方法实施例三流程图,具体步骤如下:In specific implementation, it is also possible to complete the maintenance and management of the established P2MP PW by extending the BGP protocol. With reference to FIG. 11 , it is a flow chart of the third embodiment of the method for realizing the P2MP PW in the embodiment of the present invention. The specific steps are as follows:

S1101:某个叶子PE设备激活状态发生变化;S1101: The activation state of a leaf PE device changes;

叶子PE设备可以从激活状态变为非激活状态,也可以从非激活状态变为激活状态。A leaf PE can change from the active state to the inactive state, or from the inactive state to the active state.

S1102:所述激活状态发生变化的叶子PE设备生成BGP UPDATE报文并发送给源PE设备;S1102: The leaf PE device whose activation status has changed generates a BGP UPDATE message and sends it to the source PE device;

所生成的BGP UPDATE报文中所扩展的BGP VPMS NLRI可参照图7,其中携带有所述状态发生变化了的叶子PE设备的状态信息。Refer to Figure 7 for the extended BGP VPMS NLRI in the generated BGP UPDATE message, which carries the state information of the leaf PE device whose state has changed.

S1103:源PE设备生成BGP UPDATE报文并发送到叶子PE设备,所述BGPUPDATE报文中携带有源PE设备为特定P2MP PSN隧道上的VMPS业务实例所分配的P2MP PW标识,叶子PE设备获取所述P2MP PW标识,即可实现P2MPPW的更新。S1103: The source PE device generates a BGP UPDATE message and sends it to the leaf PE device. The BGPUPDATE message carries the P2MP PW identifier allocated by the source PE device for the VMPS service instance on the specific P2MP PSN tunnel, and the leaf PE device obtains the The P2MPPW can be updated if the above P2MP PW identifier is used.

可见,本实施例中在某个叶子PE设备的激活状态发生变化时,该叶子PE设备通过生成包含该PE上的P2MP PW的标签及所述P2MP PW的拓扑并通过BGP UPDATE报文发送到源PE设备,从而完成P2MP PW的更新,由于所述更新是动态更新,因此维护成本较低。It can be seen that in this embodiment, when the activation state of a leaf PE device changes, the leaf PE device generates a label containing the P2MP PW on the PE and the topology of the P2MP PW and sends it to the source through a BGP UPDATE message. PE equipment, thereby completing the update of the P2MP PW, because the update is a dynamic update, so the maintenance cost is low.

可以理解的是,在具体实施中,叶子PE设备在激活状态发生变化时,也可以向网管设备发送BGP UPDATE报文,所述报文中携带有所述叶子PE设备的状态信息,所述网管设备向源PE设备发送通知,源PE设备在接收到通知后,向所述叶子PE设备发送BGP UPDATE报文,所述BGP UPDATE报文中携带有源PE设备为特定VPMS实例分配的P2MP PW标签,从而实现P2MP PW的更新。It can be understood that, in specific implementation, when the activation state of the leaf PE device changes, it can also send a BGP UPDATE message to the network management device, and the state information of the leaf PE device is carried in the message, and the network management device The device sends a notification to the source PE device. After receiving the notification, the source PE device sends a BGP UPDATE message to the leaf PE device. The BGP UPDATE message carries the P2MP PW label allocated by the source PE device for a specific VPMS instance. , so as to realize the update of P2MP PW.

以上以实现P2MP SS-PW为例进行了详细说明,可以理解的是,所述方法也可以应用于P2MP MS-PW中。与P2MP SS-PW的不同之处在于,引入了伪线转节点(S-PE,Switching Provider Edge)设备的概念,PE设备分别与S-PE设备建立伪线连接,PE设备到PE设备的端到端的连接变成了经过一个或多个S-PE设备转接的连接,通过S-PE设备的转接减少PE设备之间端到端网状连接的数量。The above is described in detail by taking the implementation of P2MP SS-PW as an example. It can be understood that the method can also be applied to P2MP MS-PW. The difference from P2MP SS-PW is that the concept of S-PE (Switching Provider Edge) equipment is introduced. PE equipment establishes pseudowire connection with S-PE equipment respectively, and the end of PE equipment to PE equipment The end-to-end connection becomes a connection transferred by one or more S-PE devices, and the number of end-to-end mesh connections between PE devices is reduced through the transfer of S-PE devices.

参照图2,为本发明实施例中P2MP MS-PW参考模型示意图,用户边缘(CE,Customer Edge)设备201作为用户侧的接入设备,将用户业务流通过接入电路(AC,Access Circuit)202发往终端运营商边缘(T-PE,Terminating ProviderEdge)设备203;T-PE设备203上同样要支持L2VPN协议规程,包括在控制面上通过信令建立T-PE设备203到对端T-PE设备203的伪线连接,数据面上完成二层数据链路帧到IP/MPLS标记包的封装/去封装和相应处理功能,并通过P2MPPSN隧道204中的PW205将标记包传送到对端T-PE设备203;S-PE用于终结与上游节点设备的上游伪线连接,同时开始与下游节点设备的下游伪线,并为所述上游伪线与下游伪线建立映射关系,分配所述上游伪线与下游伪线的映射关系标识,将上游伪线的伪线标签映射到下游伪线标签;PW205是指T-PE设备203与S-PE设备206之间利用L2VPN信令建立的连接,T-PE设备203将AC202传来的二层数据帧通过PW205传送到S-PE设备206,对端T-PE设备203再恢复或重新生成二层链路帧传送到对端AC202;多条PW205可以复用在一条P2MP PSN隧道204中从T-PE设备203传往对端T-PE设备203。Referring to FIG. 2 , it is a schematic diagram of a P2MP MS-PW reference model in an embodiment of the present invention. A customer edge (CE, Customer Edge) device 201 serves as an access device on the user side, and passes user service flows through an access circuit (AC, Access Circuit) 202 is sent to the terminal operator edge (T-PE, Terminating ProviderEdge) device 203; the T-PE device 203 must also support the L2VPN protocol procedure, including establishing the T-PE device 203 to the opposite end T-PE through signaling on the control plane. PE device 203 pseudo-wire connection, the data plane completes the encapsulation/decapsulation and corresponding processing functions of the layer 2 data link frame to the IP/MPLS label packet, and transmits the label packet to the opposite end T through the PW205 in the P2MPPSN tunnel 204 -PE device 203; the S-PE is used to terminate the upstream pseudowire connection with the upstream node device, and at the same time start the downstream pseudowire with the downstream node device, and establish a mapping relationship between the upstream pseudowire and the downstream pseudowire, and allocate the The mapping relationship between the upstream pseudowire and the downstream pseudowire is identified, and the pseudowire label of the upstream pseudowire is mapped to the downstream pseudowire label; PW205 refers to the connection established between the T-PE device 203 and the S-PE device 206 using L2VPN signaling , the T-PE device 203 transmits the Layer 2 data frame from the AC202 to the S-PE device 206 through the PW205, and the peer T-PE device 203 restores or regenerates the Layer 2 link frame and transmits it to the peer AC202; The PW 205 can be multiplexed in a P2MP PSN tunnel 204 and transmitted from the T-PE device 203 to the peer T-PE device 203.

实现P2MP MS-PW与实现P2MP SS-PW的不同之处在于,P2MP MS-PW是分段建立的,即:首先建立源T-PE设备至S-PE设备之间的伪线,此时,T-PE设备相当于P2MP SS-PW中的源PE设备,S-PE设备相当于P2MP SS-PW中的叶子PE设备。具体为:特定P2MP PSN隧道上的源T-PE设备与S-PE设备之间建立BGP连接,用于建立BGP连接的OPEN报文中可以携带PE设备是否支持VPMS实例的指示信息,由源T-PE设备向S-PE设备发送BGP报文,其中携带有源T-PE设备为特定VPMS实例所配置的P2MP PW标识。然后建立各个S-PE设备至叶子T-PE设备之间的伪线,此时,各个S-PE设备相当于P2MP SS-PW中的源PE设备,叶子T-PE设备相当于P2MP SS-PW中的叶子PE设备,采用与前述相同的方法,然后由S-PE设备配置相关的上游伪线与下游伪线之间的映射关系,即可建立P2MP MS-PW。The difference between implementing P2MP MS-PW and implementing P2MP SS-PW is that P2MP MS-PW is established in segments, that is, the pseudowire between the source T-PE device and the S-PE device is first established. At this time, The T-PE device is equivalent to the source PE device in the P2MP SS-PW, and the S-PE device is equivalent to the leaf PE device in the P2MP SS-PW. Specifically: a BGP connection is established between the source T-PE device and the S-PE device on a specific P2MP PSN tunnel, and the OPEN message used to establish the BGP connection can carry the indication information of whether the PE device supports a VPMS instance. - The PE device sends a BGP message to the S-PE device, which carries the P2MP PW identifier configured by the active T-PE device for a specific VPMS instance. Then establish a pseudowire between each S-PE device and the leaf T-PE device. At this time, each S-PE device is equivalent to the source PE device in the P2MP SS-PW, and the leaf T-PE device is equivalent to the P2MP SS-PW The leaf PE device in the network uses the same method as above, and then the S-PE device configures the mapping relationship between the upstream pseudowire and the downstream pseudowire to establish the P2MP MS-PW.

对于中间有多级S-PE设备转接的情况与图2所示的单级S-PE设备转接情况类似,将每级的其中一个上游节点设备与其下游节点设备之间建立P2MPSS-PW,并由S-PE设备配置与之相连的上游伪线与下游伪线的映射关系即可。The case of multi-stage S-PE device transfer in the middle is similar to the case of single-stage S-PE device transfer shown in Figure 2. A P2MPSS-PW is established between one of the upstream node devices of each level and its downstream node device. The S-PE device configures the mapping relationship between the upstream pseudowire connected to it and the downstream pseudowire.

建立P2MP MS-PW的方法可以实现跨运营商、跨自治域的P2MP PW,方便不同运营商之间进行协作。The method of establishing a P2MP MS-PW can realize a P2MP PW across operators and autonomous domains, and is convenient for cooperation among different operators.

在具体实施中,当某个叶子T-PE设备或S-PE设备变为非激活状态时,可以撤销与之相连的上游节点设备之间的伪线,具体方法与实现P2MP SS-PW中的方法类似,叶子T-PE设备或叶子S-PE设备变为非激活状态时,可以向与之直接相连的T-PE设备或上游S-PE设备发送NOTIFICATION报文等告警消息,其中携带各种错误代码(如定时器超时等),包括错误代码、辅助错误代码及错误信息等。然后由源T-PE设备或网管设备生成包含撤销(withdraw)信息的BGPUPDATE报文并发送逐级向下游节点设备传递,直至叶子T-PE设备。In a specific implementation, when a leaf T-PE device or S-PE device becomes inactive, the pseudowire between the upstream node devices connected to it can be revoked. The specific method is the same as that in P2MP SS-PW. The method is similar. When a leaf T-PE or leaf S-PE becomes inactive, it can send an alarm message such as a NOTIFICATION message to the directly connected T-PE or upstream S-PE, which contains various Error codes (such as timer overtime, etc.), including error codes, auxiliary error codes, and error messages. Then the source T-PE device or the network management device generates a BGPUPDATE message containing withdraw (withdraw) information and sends it to the downstream node device step by step until the leaf T-PE device.

同样可以实现对P2MP MS-PW的维护,例如:对于有叶子T-PE设备在激活状态发生变化时,所述叶子T-PE设备向上游S-PE设备发送BGP UPDATE报文,所述BGP UPDATE报文中携带有所述叶子T-PE设备的状态信息,通过S-PE设备逐级传递,直至源T-PE设备,源T-PE设备根据所述叶子T-PE设备的状态信息,向下游S-PE设备发送BGP UPDATE报文,所述BGP UPDATE报文中携带有所述源S-PE设备分配的与所述下游S-PE设备之间的P2MP PW标签,更新P2MP PW,若所述下游S-PE设备直接与叶子T-PE设备连接,则所述下游S-PE设备向所述叶子T-PE设备发送BGP UPDATE报文,所述BGP UPDATE报文中携带有所述S-PE设备为所述叶子T-PE设备分配的P2MP PW标签,从而更新所述S-PE设备与所述叶子T-PE设备之间的P2MP PW;如果所述下游S-PE设备通过其他S-PE设备与叶子T-PE设备连接,则向其直接连接的下游S-PE设备发送BGP UPDATE报文,更新二者之间的P2MP PW,依此类推,逐级更新为特定VPMS实例建立的P2MP PW。The maintenance of P2MP MS-PW can also be realized. For example: when the activation state of a leaf T-PE device changes, the leaf T-PE device sends a BGP UPDATE message to the upstream S-PE device, and the BGP UPDATE The message carries the state information of the leaf T-PE device, which is transmitted through the S-PE device step by step until the source T-PE device, and the source T-PE device sends The downstream S-PE device sends a BGP UPDATE message, and the BGP UPDATE message carries the P2MP PW label between the source S-PE device and the downstream S-PE device, and updates the P2MP PW. If the downstream S-PE device is directly connected to the leaf T-PE device, the downstream S-PE device sends a BGP UPDATE message to the leaf T-PE device, and the BGP UPDATE message carries the S-PE device. The P2MP PW label assigned by the PE device to the leaf T-PE device, thereby updating the P2MP PW between the S-PE device and the leaf T-PE device; if the downstream S-PE device passes other S-PE devices When a PE device is connected to a leaf T-PE device, it sends a BGP UPDATE message to the directly connected downstream S-PE device to update the P2MP PW between the two, and so on, updating the P2MP established for a specific VPMS instance step by step PW.

可见,上述对P2MP MS-PW伪线的撤销及维护是动态完成的,因此效率较高,且可避免手工配置错误,提高实现P2MP MS-PW的准确率,同时可以降低维护成本。It can be seen that the above-mentioned revocation and maintenance of the P2MP MS-PW pseudowire is completed dynamically, so the efficiency is high, and manual configuration errors can be avoided, the accuracy of P2MP MS-PW can be improved, and the maintenance cost can be reduced at the same time.

以上对本发明实施例中实现P2MP的方法进行了详细说明,以下参照附图,对上述方法所对应的系统及路由器设备进行详细说明。The method for implementing P2MP in the embodiment of the present invention has been described in detail above, and the system and router device corresponding to the above method will be described in detail below with reference to the accompanying drawings.

参照图12,为本发明实施例中路由器一结构示意图,路由器1200包括:信息收集单元1201、连接建立单元1202和第一发送单元1203,其中:Referring to FIG. 12, it is a schematic structural diagram of a router in an embodiment of the present invention. The router 1200 includes: an information collection unit 1201, a connection establishment unit 1202, and a first sending unit 1203, wherein:

信息收集单元1201,用于收集网络拓扑信息;An information collection unit 1201, configured to collect network topology information;

连接建立单元1202,用于根据收集的网络拓扑信息,与下游节点设备之间协商建立边界网关协议BGP连接;A connection establishment unit 1202, configured to negotiate with downstream node devices to establish a Border Gateway Protocol BGP connection according to the collected network topology information;

第一发送单元1203,用于在BGP连接建立后,向下游节点设备发送BGP报文,所述BGP报文中携带有为特定虚拟专用多播业务VPMS实例分配的点到多点伪线标签,建立点到多点伪线。The first sending unit 1203 is configured to send a BGP message to a downstream node device after the BGP connection is established, and the BGP message carries a point-to-multipoint pseudowire label allocated for a specific virtual private multicast service VPMS instance, Create a point-to-multipoint pseudowire.

可见,本实施例中,所述路由器通过与下游节点设备之间建立BGP连接后,生成BGP UPDATE报文并向下游节点设备发送,所述BGP UPDATE报文中携带有为所述特定VPMS业务实例分配的P2MP PW标签,从而可以建立P2MP PW,由于所述方法不需要静态配置,而是动态建立,因此可以提高P2MP PW的建立效率;且相对于静态配置,可以提高配置的准确率。It can be seen that in this embodiment, after the router establishes a BGP connection with the downstream node device, it generates a BGP UPDATE message and sends it to the downstream node device, and the BGP UPDATE message carries the information for the specific VPMS service instance The assigned P2MP PW label can establish a P2MP PW. Since the method does not require static configuration but is dynamically established, the efficiency of P2MP PW establishment can be improved; and compared with static configuration, the accuracy of configuration can be improved.

在具体实施中,还可以对上述路由器进行扩展,以下通过具体实施例进行说明。In a specific implementation, the foregoing router may also be extended, which will be described below through specific embodiments.

参照图13,为本发明实施例中路由器二结构示意图,与路由器一不同之处在于,路由器1300在路由器1200基础上,扩展第一接收单元1301、信息生成单元1302和第二发送单元1303,其中:Referring to FIG. 13 , it is a schematic structural diagram of router 2 in the embodiment of the present invention. The difference from router 1 is that router 1300 expands the first receiving unit 1301 , the information generating unit 1302 and the second sending unit 1303 on the basis of router 1200 , wherein :

第一接收单元1301,用于接收来自下游节点设备的BGP通知NOTIFICATION报文;The first receiving unit 1301 is configured to receive a BGP notification NOTIFICATION message from a downstream node device;

信息生成单元1302,用于在第一接收单元1301接收到所述BGPNOTIFICATION报文时,生成包含撤销信息的BGP更新UPDATE报文;An information generating unit 1302, configured to generate a BGP update UPDATE message containing revocation information when the first receiving unit 1301 receives the BGPNOTIFICATION message;

第二发送单元1303,用于发送所述信息生成单元1302生成的BGP UPDATE报文,撤销与所述下游节点设备之间已建立的点到多点伪线。The second sending unit 1303 is configured to send the BGP UPDATE message generated by the information generating unit 1302, and cancel the established point-to-multipoint pseudo-wire with the downstream node device.

其中,撤销信息包含为所述VPMS实例分配的点到多点伪线标签。Wherein, the revocation information includes the point-to-multipoint pseudowire label allocated for the VPMS instance.

与路由器一相同,路由器二通过动态的过程建立点到多点伪线,因此该路由器的效率较高,且可避免手工配置出错,提高准确率。并且,可以实现点到多点伪线的动态撤销,因此路由器二可以进一步提高实现点到多点伪线的效率及准确率。Same as Router 1, Router 2 establishes a point-to-multipoint pseudowire through a dynamic process, so the router has high efficiency, and can avoid manual configuration errors and improve accuracy. Moreover, the dynamic revocation of the point-to-multipoint pseudowire can be realized, so the router 2 can further improve the efficiency and accuracy of implementing the point-to-multipoint pseudowire.

在路由器一或路由器二基础上,还可以进行如下扩展,以完成对已建立的点到多点伪线的维护,所述维护不需要手工配置,因此可以避免出错,提高配置效率及准确率。On the basis of router 1 or router 2, the following extensions can also be performed to complete the maintenance of established point-to-multipoint pseudowires. The maintenance does not require manual configuration, so errors can be avoided, and configuration efficiency and accuracy can be improved.

参照图14,为本发明实施例中路由器三结构示意图,以在路由器1200基础上进行扩展说明,路由器1400与路由器1200的不同之处在于,在路由器1200基础上,扩展有第二接收单元1401,第一标签分配单元1402和第三发送单元1403,其中:Referring to FIG. 14 , it is a schematic diagram of the structure of the router three in the embodiment of the present invention, and is used to expand the description on the basis of the router 1200. The difference between the router 1400 and the router 1200 is that, on the basis of the router 1200, there is a second receiving unit 1401, The first label allocation unit 1402 and the third sending unit 1403, wherein:

第二接收单元1401,用于接收下游节点设备激活状态发生变化后发送的BGP UPDATE报文,所述BGP UPDATE报文中携带有所述下游节点设备激活状态发生变化后的状态信息;The second receiving unit 1401 is configured to receive a BGP UPDATE message sent after the activation state of the downstream node device changes, and the BGP UPDATE message carries state information after the activation state of the downstream node device changes;

第一标签分配单元1402,用于在第二接收单元1401接收到所述BGPUPDATE报文时,为特定VPMS实例分配点到多点伪线标签;The first label allocation unit 1402 is configured to allocate a point-to-multipoint pseudowire label for a specific VPMS instance when the second receiving unit 1401 receives the BGPPDATE message;

第三发送单元1403,用于向所述下游节点设备发送BGP UPDATE报文,所述BGP UPDATE报文中携带有第一标签分配单元1402分配的点到多点伪线标签,更新与所述激活状态发生变化的下游节点设备之间的点到多点伪线。The third sending unit 1403 is configured to send a BGP UPDATE message to the downstream node device, the BGP UPDATE message carries the point-to-multipoint pseudo-wire label allocated by the first label allocation unit 1402, and the update is related to the activation A point-to-multipoint pseudowire between downstream node devices whose status has changed.

路由器三除了能够实现点到多点伪线的建立和撤销外,并且通过动态更新,还能实现点到多点伪线的维护,因此可以提高维护效率及准确率。In addition to realizing the establishment and cancellation of point-to-multipoint pseudo-wires, the router 3 can also realize the maintenance of point-to-multipoint pseudo-wires through dynamic updating, so the maintenance efficiency and accuracy can be improved.

在以上实施例中,所述路由器还可以根据网管设备的通知信息,进行点到多点伪线的维护,以下以一个具体的实施例进行说明。In the above embodiment, the router can also maintain the point-to-multipoint pseudowire according to the notification information of the network management device, and a specific embodiment will be used for description below.

参照图15,为本发明实施例中路由器四结构示意图,路由器1500在路由器1200基础上,扩展第三接收单元1501、第二标签分配单元1502和第四发送单元1503,其中:Referring to FIG. 15 , it is a schematic diagram of the structure of router 4 in the embodiment of the present invention. On the basis of router 1200, router 1500 extends the third receiving unit 1501, the second label assignment unit 1502 and the fourth sending unit 1503, wherein:

第三接收单元1501,用于接收网管设备的通知报文,所述通知报文中携带有激活状态发生变化后的下游节点设备的状态信息;The third receiving unit 1501 is configured to receive a notification message from the network management device, where the notification message carries status information of the downstream node device after the activation status has changed;

第二标签分配单元1502,用于在第三接收单元1501接收到所述网管设备的通知报文时,为特定VPMS实例分配点到多点伪线标签;The second label allocation unit 1502 is configured to allocate a point-to-multipoint pseudowire label for a specific VPMS instance when the third receiving unit 1501 receives the notification message from the network management device;

第四发送单元1502,用于向所述下游节点设备发送BGP UPDATE报文,所述BGP UPDATE报文中携带有第二标签分配单元1502分配的点到多点伪线标签,更新与所述激活状态发生变化的下游节点设备之间的点到多点伪线。The fourth sending unit 1502 is configured to send a BGP UPDATE message to the downstream node device, the BGP UPDATE message carries the point-to-multipoint pseudowire label allocated by the second label allocation unit 1502, and the update is related to the activation A point-to-multipoint pseudowire between downstream node devices whose status has changed.

在具体实施中,所述路由器可以适用于不同的应用场景,例如,对于点到多点单段伪线P2MP SS-PW,以上路由器为源PE设备,而下游节点设备为叶子PE设备;而对于点到多点多段伪线P2MP MS-PW,以上路由器可以为源T-PE设备,也可以为S-PE设备,而下游节点设备为下游S-PE设备或者叶子T-PE设备。如果所述路由器为S-PE设备,还需要为分配该S-PE设备连接的上游伪线与下游伪线的映射关系标识。对于一个独立的S-PE设备来说,上游伪线为点到点伪线,下游伪线为点到点伪线或点到多点伪线。In specific implementation, the router can be applicable to different application scenarios, for example, for a point-to-multipoint single-segment pseudowire P2MP SS-PW, the above router is a source PE device, and the downstream node device is a leaf PE device; Point-to-multipoint multi-segment pseudowire P2MP MS-PW, the above router can be the source T-PE device or S-PE device, and the downstream node device is the downstream S-PE device or leaf T-PE device. If the router is an S-PE device, it is also necessary to identify the mapping relationship between the upstream PW and the downstream PW connected to the S-PE device. For an independent S-PE device, the upstream pseudowire is a point-to-point pseudowire, and the downstream pseudowire is a point-to-point pseudowire or a point-to-multipoint pseudowire.

下面参照附图,通过具体实施例详细介绍实现点到多点伪线的系统。Referring to the accompanying drawings, the system for implementing point-to-multipoint pseudowires will be described in detail through specific embodiments.

参照图16,为本发明实施例中实现P2MP PW的系统实施例一结构示意图,该系统包括:第一节点设备1601和第二节点设备1602,第二节点设备1602为下游节点设备,其中:Referring to FIG. 16 , it is a schematic structural diagram of a first embodiment of a system implementing P2MP PW in the embodiment of the present invention. The system includes: a first node device 1601 and a second node device 1602, and the second node device 1602 is a downstream node device, wherein:

第一节点设备1601,用于收集网络拓扑信息,并根据收集的网络拓扑信息,与所述第二节点设备1602之间协商建立边界网关协议BGP连接;并在BGP连接建立后,向第二节点设备1602发送BGP报文,所述BGP报文中携带有为特定虚拟专用多播业务VPMS实例分配的点到多点伪线标签,建立点到多点伪线;The first node device 1601 is configured to collect network topology information, and negotiate with the second node device 1602 to establish a Border Gateway Protocol BGP connection according to the collected network topology information; The device 1602 sends a BGP message, the BGP message carries a point-to-multipoint pseudowire label allocated for a specific virtual private multicast service VPMS instance, and establishes a point-to-multipoint pseudowire;

第二节点设备1602,用于收集网络拓扑信息,根据收集的网络拓扑信息,与第一节点设备1601之间协商建立BGP连接;接收第一节点设备1601发送的BGP报文,从所述报文中获取为特定VPMS实例分配的点到多点伪线标签,建立与第一节点设备1601之间的点到多点伪线。The second node device 1602 is configured to collect network topology information, negotiate with the first node device 1601 to establish a BGP connection according to the collected network topology information; receive the BGP message sent by the first node device 1601, and use the message from the message Obtain the point-to-multipoint pseudo-wire label assigned to a specific VPMS instance, and establish a point-to-multipoint pseudo-wire with the first node device 1601.

可见,本实施例所述系统中,第一节点设备通过与第二节点设备之间建立BGP连接后,生成BGP UPDATE报文并向第二节点设备发送,所述BGPUPDATE报文中携带有为所述特定VPMS业务实例分配的P2MP PW标签,从而可以建立P2MP PW,由于所述系统不需要静态配置,而是动态建立,因此可以提高P2MP PW的建立效率;且相对于静态配置,可以提高配置的准确率。It can be seen that in the system described in this embodiment, after the first node device establishes a BGP connection with the second node device, it generates a BGP UPDATE message and sends it to the second node device. The P2MP PW label assigned by the specific VPMS service instance can be used to establish a P2MP PW. Since the system does not need static configuration but is dynamically established, the efficiency of P2MP PW establishment can be improved; and compared with static configuration, the configuration efficiency can be improved. Accuracy.

在具体实施中,还可以对上述系统作进一步扩展,例如:第一节点设备1601,还可用于接收来自第二节点设备1602的BGP通知NOTIFICATION报文,生成包含撤销信息的BGP更新UPDATE报文,并向第二节点设备1602发送所述BGP UPDATE报文,撤销与第二节点设备1602之间已建立的点到多点伪线,所述撤销信息包括:为特定VPMS实例分配的P2MP PW标签;对应的,第二节点设备1602,还可用于向第一节点设备1601发送BGPNOTIFICATION报文,并在接收到来自第一节点设备1601的包含所述撤销信息的BGP UPDATE报文时,撤销与第一节点设备1601之间已建立的点到多点伪线。In a specific implementation, the above-mentioned system can be further extended, for example: the first node device 1601 can also be used to receive the BGP notification NOTIFICATION message from the second node device 1602, and generate a BGP update UPDATE message containing revocation information, And send the BGP UPDATE message to the second node device 1602, cancel the point-to-multipoint pseudowire established between the second node device 1602, and the revocation information includes: the P2MP PW label allocated for a specific VPMS instance; Correspondingly, the second node device 1602 may also be configured to send a BGPNOTIFICATION message to the first node device 1601, and when receiving the BGP UPDATE message containing the revocation information from the first node device 1601, revoke the connection with the first node device 1601. A point-to-multipoint pseudowire established between node devices 1601.

通过上述扩展,所述系统可以实现撤销已建立的点到多点伪线。通过实现点到多点伪线的动态撤销,所述系统可以进一步提高实现点到多点伪线的效率及准确率。Through the above-mentioned extension, the system can realize the revoking of the established point-to-multipoint pseudowire. By realizing the dynamic revocation of the point-to-multipoint pseudowire, the system can further improve the efficiency and accuracy of realizing the point-to-multipoint pseudowire.

在具体实施中,为进行系统维护,还可以对上述系统进行如下扩展:In specific implementation, for system maintenance, the above system can also be extended as follows:

第一节点设备1601,还可用于接收第二节点设备1602激活状态发生变化后发送的BGP UPDATE报文,所述BGP UPDATE报文中携带有所述第二节点设备1602激活状态发生变化后的状态信息;为特定VPMS实例分配点到多点伪线标签,并向第二节点设备1602发送BGP UPDATE报文,所述BGP UPDATE报文中携带有所述分配的点到多点伪线标签,更新与所述激活状态发生变化的第二节点设备1602之间的点到多点伪线;The first node device 1601 is further configured to receive a BGP UPDATE message sent after the activation state of the second node device 1602 changes, and the BGP UPDATE message carries the state after the activation state of the second node device 1602 changes Information; assign a point-to-multipoint pseudowire label for a specific VPMS instance, and send a BGP UPDATE message to the second node device 1602, the BGP UPDATE message carries the allocated point-to-multipoint pseudowire label, and updates a point-to-multipoint pseudowire with the second node device 1602 whose activation status has changed;

第二节点设备1602,还用于在激活状态发生变化时向第一节点设备1601发送BGP UPDATE报文,所述BGP UPDATE报文中携带有本节点设备变化后的状态信息;在接收到来自第一节点设备1601的BGP UPDATE报文时,获取所分配的点到多点标签,更新与第一节点设备1601之间的点到多点伪线。The second node device 1602 is also configured to send a BGP UPDATE message to the first node device 1601 when the activation state changes, and the BGP UPDATE message carries the state information after the change of the node device; When receiving a BGP UPDATE message from a node device 1601, obtain the assigned point-to-multipoint label, and update the point-to-multipoint pseudowire with the first node device 1601.

该系统除了能够实现点到多点伪线的建立和撤销外,并且通过动态更新,还能实现点到多点伪线的维护,因此可以提高维护效率及准确率。In addition to realizing the establishment and cancellation of point-to-multipoint pseudowires, the system can also realize the maintenance of point-to-multipoint pseudowires through dynamic updating, so the maintenance efficiency and accuracy can be improved.

在具体实施中,也可以通过网管设备对系统进行维护,参照图17,为本发明实施例中实现P2MP PW的系统实施例二结构示意图,与上述系统的不同之处在于,本实施例所述系统还包括网管设备1701,其中:In the specific implementation, the system can also be maintained through the network management equipment. Referring to FIG. The system also includes a network management device 1701, wherein:

网管设备1701,用于在接收到第二节点设备1602激活状态发生变化后发送的通知报文,所述通知报文中携带有所述第二节点设备1602激活状态发生变化后的状态信息,并向第一节点设备1601发送通知报文,所述通知报文中携带有第二节点设备1602激活状态发生变化后的状态信息;The network management device 1701 is configured to receive a notification message sent after the activation state of the second node device 1602 has changed, the notification message carries state information after the activation state of the second node device 1602 has changed, and Sending a notification message to the first node device 1601, the notification message carrying state information after the activation state of the second node device 1602 has changed;

第一节点设备1601,还可用于接收来自网管设备1701的所述通知报文,为特定VPMS实例分配点到多点伪线标签,向第二节点设备1602发送BGPUPDATE报文,所述BGP UPDATE报文中携带有所述分配的点到多点伪线标签,更新与所述激活状态发生变化的第二节点设备1602之间的点到多点伪线;The first node device 1601 is further configured to receive the notification message from the network management device 1701, assign a point-to-multipoint pseudowire label for a specific VPMS instance, and send a BGPUPDATE message to the second node device 1602, and the BGP UPDATE message The text carries the assigned point-to-multipoint pseudowire label, and updates the point-to-multipoint pseudowire between the second node device 1602 whose activation status has changed;

第二节点设备1602,还可用于在激活状态发生变化时向网管设备1701发送通知报文,所述通知报文中携带有本节点设备激活状态发生变化后的状态信息,在接收到来自第一节点设备1601的BGP UPDATE报文时,获取所分配的点到多点标签,更新与所述第一节点设备1601之间的点到多点伪线。The second node device 1602 can also be used to send a notification message to the network management device 1701 when the activation state changes, and the notification message carries the state information after the activation state of the node device changes. When receiving a BGP UPDATE message from the node device 1601, obtain the assigned point-to-multipoint label, and update the point-to-multipoint pseudowire with the first node device 1601.

在具体实施中,上述实施例中所介绍的系统可以适用于不同的应用场景,例如,对于点到多点单段伪线P2MP SS-PW,以上系统中的第一节点设备为源PE设备,而第二节点设备为叶子PE设备;而对于点到多点多段伪线P2MPMS-PW,以上系统中第一节点设备可以为源T-PE设备,也可以为S-PE设备,而第二节点设备为下游S-PE设备或者叶子T-PE设备。如果第一节点设备为S-PE设备,还需要为分配该S-PE设备连接的上游伪线与下游伪线的映射关系标识。对于一个独立的S-PE设备来说,上游伪线为点到点伪线,下游伪线为点到点伪线或点到多点伪线。In specific implementation, the system described in the above-mentioned embodiments can be applied to different application scenarios, for example, for point-to-multipoint single-segment pseudowire P2MP SS-PW, the first node device in the above system is the source PE device, The second node device is a leaf PE device; and for point-to-multipoint multi-segment pseudowire P2MPMS-PW, the first node device in the above system can be the source T-PE device or S-PE device, and the second node The device is a downstream S-PE device or a leaf T-PE device. If the first node device is an S-PE device, it is also necessary to identify the mapping relationship between the upstream PW and the downstream PW connected to the S-PE device. For an independent S-PE device, the upstream pseudowire is a point-to-point pseudowire, and the downstream pseudowire is a point-to-point pseudowire or a point-to-multipoint pseudowire.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:ROM、RAM、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: ROM, RAM, disk or CD, etc.

以上对本发明实施例所提供的实现点到多点伪线的方法、设备和系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method, device and system for implementing point-to-multipoint pseudowires provided by the embodiments of the present invention have been described above in detail. In this paper, specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only It is used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this The content of the description should not be construed as limiting the present invention.

Claims (16)

1. a method that realizes point to multi-point pseudowire is characterized in that, comprising:
The source provider edge equipment is set up Border Gateway Protocol (BGP) with negotiation between the downstream node equipment and is connected according to the network topological information of collecting;
Source provider edge equipment equipment to downstream node sends the BGP message, carries the point to multi-point pseudowire label of the special-purpose multicast service VPMS of promising particular virtual example allocation in the said BGP message, sets up point to multi-point pseudowire.
2. the method for realization point to multi-point pseudowire as claimed in claim 1 is characterized in that, when said point to multi-point pseudowire arrived multiple spot single hop puppet line for point, said downstream node equipment was specially leaf Provider Edge PE equipment.
3. the method for realization point to multi-point pseudowire as claimed in claim 2 is characterized in that, further comprises:
When the source provider edge equipment receives from the BGP notice NOTIFICATION message of leaf PE equipment; Generation comprises the first bgp update UPDATE message of revocation information and sends to said leaf PE equipment; Cancel and said leaf PE equipment between the point to multi-point pseudowire set up, said revocation information comprises: be the P2MP PW label of specific VPMS example allocation.
4. the method for realization point to multi-point pseudowire as claimed in claim 2 is characterized in that, further comprises:
The 2nd BGP UPDATE message that source provider edge equipment reception is sent after changing from leaf PE device activation state carries the state information after leaf PE device activation state changes in said the 2nd BGP UPDATE message;
The source provider edge equipment sends the 3rd BGP UPDATE message to said leaf PE equipment; Carry the pseudo line tag of promising specific VPMS example allocation in said the 3rd BGP UPDATE message, the point to multi-point pseudowire between the leaf PE equipment that renewal and said state of activation change.
5. the method for realization point to multi-point pseudowire as claimed in claim 1; It is characterized in that; When said point to multi-point pseudowire arrived the multiple spot multi-segment pseudo-wires for point, said downstream node equipment was specially the pseudo-line transit point of leaf end points Provider Edge T-PE equipment or downstream S-PE equipment.
6. the method for realization point to multi-point pseudowire as claimed in claim 5; It is characterized in that; When said downstream node equipment is specially downstream S-PE equipment, further comprise: by the mapping relations sign of pseudo-line in the upper reaches of the said downstream of S-PE devices allocation, said downstream S-PE equipment connection and the pseudo-line in downstream.
7. the method for realization point to multi-point pseudowire as claimed in claim 6 is characterized in that, further comprises:
When the source provider edge equipment receives from the BGP NOTIFICATION message of leaf T-PE equipment or downstream S-PE equipment; Generation comprises a BGP UPDATE message of revocation information and sends to said leaf T-PE equipment or downstream S-PE equipment, cancel and said leaf T-PE equipment or downstream S-PE equipment between the point to multi-point pseudowire set up.
8. the implementation method of point to multi-point pseudowire as claimed in claim 6 is characterized in that, further comprises:
The source provider edge equipment receives the 2nd BGP UPDATE message that changes and afterwards send from leaf T-PE device activation state, carries the state information after said leaf T-PE device activation state changes in said the 2nd BGP UPDATE message;
The source provider edge equipment sends the 3rd BGP UPDATE message to the leaf T-PE equipment that said downstream S-PE equipment or state of activation change; Carry the pseudo line tag of promising specific VPMS example allocation in said the 3rd BGP UPDATE message, the point to multi-point pseudowire between the leaf T-PE equipment that renewal and downstream S-PE equipment or said state of activation change.
9. a router is characterized in that, comprising: the unit and first transmitting element are set up in information collection unit, connection, wherein:
Information collection unit is used for the collection network topology information;
Connect and set up the unit, be used for setting up Border Gateway Protocol (BGP) with negotiation between the downstream node equipment and being connected according to the network topological information of collecting;
First transmitting element is used for after BGP connects foundation, and equipment sends the BGP message to downstream node, carries the point to multi-point pseudowire label of the special-purpose multicast service VPMS of promising particular virtual example allocation in the said BGP message, sets up point to multi-point pseudowire.
10. router as claimed in claim 9 is characterized in that, further comprises: first receiving element, information generating unit and second transmitting element, wherein:
First receiving element is used to receive the BGP notice NOTIFICATION message from downstream node equipment;
Information generating unit is used for when receiving element receives said BGP NOTIFICATION message, generating the first bgp update UPDATE message that comprises revocation information, and said revocation information comprises: be the P2MP PW label of specific VPMS example allocation;
Second transmitting element is used to send the BGP UPDATE message that said information generating unit generates, cancel and said downstream node equipment between the point to multi-point pseudowire set up.
11. like claim 9 or 10 described routers, it is characterized in that, further comprise: second receiving element, the first label distribution unit and the 3rd transmitting element, wherein:
Second receiving element is used to receive the 2nd BGP UPDATE message that downstream node device activation state changes and afterwards sends, and carries the state information after said downstream node device activation state changes in said the 2nd BGP UPDATE message;
The first label distribution unit is used for when second receiving element receives said the 2nd BGP UPDATE message, being specific VPMS example allocation point to multi-point pseudowire label;
The 3rd transmitting element; Be used for sending the 3rd BGP UPDATE message to said downstream node equipment; Carry the point to multi-point pseudowire label that the first label distribution unit distributes in said the 3rd BGP UPDATE message, the point to multi-point pseudowire between the downstream node equipment that renewal and said state of activation change.
12. like claim 9 or 10 described routers, it is characterized in that, also comprise: the 3rd receiving element, the second label distribution unit and the 4th transmitting element, wherein:
The 3rd receiving element is used to receive the notice message of Network Management Equipment, carries the state information of the downstream node equipment after state of activation changes in the said notice message;
The second label distribution unit is used for when the 3rd receiving element receives the notice message of said Network Management Equipment, is specific VPMS example allocation point to multi-point pseudowire label;
The 4th transmitting element; Be used for sending the 4th BGP UPDATE message to said downstream node equipment; Carry the point to multi-point pseudowire label that the second label distribution unit distributes in said the 4th BGP UPDATE message, the point to multi-point pseudowire between the downstream node equipment that renewal and said state of activation change.
13. a system that realizes point to multi-point pseudowire is characterized in that, comprising: first node equipment and Section Point equipment, said Section Point equipment is downstream node equipment, wherein:
First node equipment comprises information collection unit, connects and set up the unit and first transmitting element, is used for the collection network topology information, and according to the network topological information of collecting, sets up Border Gateway Protocol (BGP) with negotiation between the said Section Point equipment and be connected; And after BGP connects foundation, send the BGP message to said Section Point equipment, and carry the point to multi-point pseudowire label of the special-purpose multicast service VPMS of promising particular virtual example allocation in the said BGP message, set up point to multi-point pseudowire;
Section Point equipment is used for the collection network topology information, according to the network topological information of collecting, sets up BGP with negotiation between the said first node equipment and is connected; Receive the BGP message that first node equipment sends, from said message, be retrieved as the point to multi-point pseudowire label of specific VPMS example allocation, the point to multi-point pseudowire between foundation and the first node equipment.
14. the system of realization point to multi-point pseudowire as claimed in claim 13; It is characterized in that; Said first node equipment; Also be used to receive BGP notice NOTIFICATION message, generate the first bgp update UPDATE message that comprises revocation information, and send a said BGP UPDATE message to said Section Point equipment from Section Point equipment; Cancel and said Section Point equipment between the point to multi-point pseudowire set up, said revocation information comprises: be the P2MP PW label of specific VPMS example allocation;
Section Point equipment; Also be used for sending BGP NOTIFICATION message to first node equipment; And receive from first node equipment comprise a BGP UPDATE message of said revocation information the time, cancel and said first node equipment between the point to multi-point pseudowire set up.
15. system like claim 13 or 14 described realization point to multi-point pseudowire; It is characterized in that; Said first node equipment; Also be used to receive the 2nd BGP UPDATE message that Section Point device activation state changes and afterwards sends, carry the state information of the Section Point equipment after said state of activation changes in said the 2nd BGP UPDATE message; Be specific VPMS example allocation point to multi-point pseudowire label; And send the 3rd BGP UPDATE message to said Section Point equipment; Carry the point to multi-point pseudowire label of said distribution in said the 3rd BGP UPDATE message, the point to multi-point pseudowire between the Section Point equipment that renewal and said state of activation change;
Said Section Point equipment also is used for when state of activation changes, sending the 2nd BGP UPDATE message to said first node equipment, carries the state information after this node device state of activation changes in said the 2nd BGP UPDATE message; When the 3rd BGP UPDATE message that receives from said first node equipment, obtain the point that distributed to the multiple spot label, upgrade and said first node equipment between point to multi-point pseudowire.
16. system like claim 13 or 14 described realization point to multi-point pseudowire; It is characterized in that; Also comprise: Network Management Equipment; Be used to receive the first notice message that Section Point device activation state changes and afterwards sends; Said first notice carries the change state information of back Section Point equipment of said state of activation in the message, and sends the second notice message to first node equipment, carries the state information after said Section Point device activation state changes in the said second notice message;
Said first node equipment; Also be used to receive the said second notice message from Network Management Equipment; Be specific VPMS example allocation point to multi-point pseudowire label; Send the 4th BGP UPDATE message to said Section Point equipment, carry the point to multi-point pseudowire label of said distribution in said the 4th BGP UPDATE message, the point to multi-point pseudowire between the Section Point equipment that renewal and said state of activation change;
Said Section Point equipment; Also be used for when state of activation changes, sending the first notice message to Network Management Equipment; Carry the state information after this node device state of activation changes in the said first notice message; When the 4th BGP UPDATE message that receives from said first node equipment, obtain the point that distributed to the multiple spot label, upgrade and said first node equipment between point to multi-point pseudowire.
CN2009101187781A 2009-03-11 2009-03-11 Method, device and system for implementing point to multi-point pseudowire Expired - Fee Related CN101505227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101187781A CN101505227B (en) 2009-03-11 2009-03-11 Method, device and system for implementing point to multi-point pseudowire

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101187781A CN101505227B (en) 2009-03-11 2009-03-11 Method, device and system for implementing point to multi-point pseudowire

Publications (2)

Publication Number Publication Date
CN101505227A CN101505227A (en) 2009-08-12
CN101505227B true CN101505227B (en) 2012-06-27

Family

ID=40977308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101187781A Expired - Fee Related CN101505227B (en) 2009-03-11 2009-03-11 Method, device and system for implementing point to multi-point pseudowire

Country Status (1)

Country Link
CN (1) CN101505227B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025586B (en) 2009-09-09 2014-07-09 华为技术有限公司 Intercommunicating method, device and system for multiple protocol label switching network and Ethernet
CN102130813B (en) 2010-01-15 2016-08-03 华为技术有限公司 Pseudo line establishing method, system and equipment
CN102148738A (en) * 2010-02-05 2011-08-10 华为技术有限公司 Label distribution method, device and system for seamless multi-protocol label switching network
CN102238138A (en) * 2010-04-23 2011-11-09 中兴通讯股份有限公司 Pseudo wire service processing method and system
CN101867503B (en) * 2010-06-09 2012-12-26 清华大学 Cross-domain BGP routing policy deployment method
CN101873264B (en) * 2010-06-09 2012-12-19 清华大学 Method and device BGN for simulating functions of autonomous domain border router
CN102148748B (en) * 2010-10-26 2014-05-21 华为技术有限公司 Pseudowire routing diffusion method, system and sink node equipment
CN102143077B (en) * 2011-03-29 2014-12-10 中兴通讯股份有限公司 Method and system for realizing multi-service link of route equipment and route equipment thereof
CN102238057B (en) * 2011-05-10 2013-07-24 福建星网锐捷网络有限公司 Ethernet-tree realization method, system, device and network equipment
CN102394810A (en) * 2011-10-14 2012-03-28 烽火通信科技股份有限公司 Method for realizing dynamic association between pseudo-wire services and channels in PTN (Packet Transport Network) network
CN103188123B (en) 2011-12-30 2017-04-19 华为技术有限公司 Method for realizing E-tree service and provider edge devices
CN102624618B (en) * 2012-03-07 2017-06-30 南京中兴新软件有限责任公司 The method and system of interface parameters in PWE3 signalings is obtained for exchanging PE
CN103368842A (en) * 2012-04-10 2013-10-23 中兴通讯股份有限公司 Method and system for establishing MS-PW
CN104518935B (en) * 2013-09-27 2018-05-25 华为技术有限公司 Realize the methods, devices and systems of virtual network communication
CN103491103B (en) * 2013-09-30 2017-01-04 福建星网锐捷网络有限公司 The method for building up of multi-segment pseudo-wires and system and device
CN103560940B (en) * 2013-10-31 2017-01-18 华为技术有限公司 Data message transmitting method and equipment
CN105791074A (en) * 2014-12-25 2016-07-20 中兴通讯股份有限公司 Method and device for establishing PW (Pseudo Wire) links
CN106470159B (en) * 2015-08-18 2020-09-15 中兴通讯股份有限公司 Tunnel convergence method and device
EP4216506A4 (en) * 2020-10-28 2024-01-24 Huawei Technologies Co., Ltd. Routing advertisement method, routing loop detection method, and device
CN113779739B (en) * 2021-09-15 2023-08-22 成都四方伟业软件股份有限公司 Multi-layer topological graph intelligent layout method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1714544A (en) * 2002-11-21 2005-12-28 思科技术公司 System and method for interconnecting heterogeneous layer 2 VPN applications
CN1874302A (en) * 2006-02-27 2006-12-06 华为技术有限公司 Method of phantom lines in multiple hops for building simulation of phantom line from end to end

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1714544A (en) * 2002-11-21 2005-12-28 思科技术公司 System and method for interconnecting heterogeneous layer 2 VPN applications
CN1874302A (en) * 2006-02-27 2006-12-06 华为技术有限公司 Method of phantom lines in multiple hops for building simulation of phantom line from end to end

Also Published As

Publication number Publication date
CN101505227A (en) 2009-08-12

Similar Documents

Publication Publication Date Title
CN101505227B (en) Method, device and system for implementing point to multi-point pseudowire
CN107637031B (en) Path computation element central controller for network traffic
CN101340372B (en) Number automatic routing method, updating method, revocation method, router and equipment
US10057116B2 (en) Method and device for configuring and managing network element equipment, and network element equipment
CN110324165B (en) Network equipment management method, device and system
CN105577502B (en) Service transmission method and device
WO2007090346A1 (en) Control system, data message transmission method and network device in the ethernet
WO2015131560A1 (en) Segment routing identifier allocation method and segment routing node
WO2016177030A1 (en) Method, device and system for establishing link of sdn network device
WO2010127570A1 (en) Method, device and system for establishing bidirectional point-to-multipoint label switched path
WO2008131686A1 (en) Method and provider edge device for releasing and processing pseudowire information
CN103326940A (en) Method for forwarding message in network and edge device of operator
WO2017211164A1 (en) Method, apparatus, and system for determining inter-as label switched path tunnel
WO2009074093A1 (en) Method and apparatus for finding topology and managing resource automatically in the pbb network
JP2012507909A (en) Multicast and bidirectional unicast signaling in single-route multipoint service using RSVP-TE
US20200153834A1 (en) Method, Apparatus, and System for Collecting Access Control List
CN101160862B (en) Method and system for realizing the consistency of the virtual circuit status
WO2011000140A1 (en) Method, apparatus and system for establishing pseudo wire
WO2013139234A1 (en) Method, device and network system for multicast transmission
CN101453412B (en) Method and apparatus for automatic topology discovery and resource management in PBB network
WO2013117165A1 (en) Method and node for realizing e-tree service based on vpls
WO2012142753A1 (en) Method and device for monitoring ip bearer network performance
CN103634210A (en) Method and apparatus for discovering opposite-end provider edge (PE) device of virtual private LAN service (VPLS) instance
CN102170710A (en) Method and system for realizing leaf node discovery in label switched path
CN107231249A (en) Acquisition methods, controller and the forward node of the physical topology information of forward node

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170818

Address after: 201, room 1, building A, No. 518053, front Bay Road, Qianhai, Shenzhen Shenzhen cooperation zone, Guangdong, China

Patentee after: Shenzhen Zhitong World Technology Service Co. Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120627

Termination date: 20200311