WO2012094912A1 - 一种选择网络设备的方法,装置和系统 - Google Patents

一种选择网络设备的方法,装置和系统 Download PDF

Info

Publication number
WO2012094912A1
WO2012094912A1 PCT/CN2011/080809 CN2011080809W WO2012094912A1 WO 2012094912 A1 WO2012094912 A1 WO 2012094912A1 CN 2011080809 W CN2011080809 W CN 2011080809W WO 2012094912 A1 WO2012094912 A1 WO 2012094912A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
vlan mapping
identifier
vlan
mapping capability
Prior art date
Application number
PCT/CN2011/080809
Other languages
English (en)
French (fr)
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to ES11855324.7T priority Critical patent/ES2626260T3/es
Priority to EP11855324.7A priority patent/EP2648369B1/en
Publication of WO2012094912A1 publication Critical patent/WO2012094912A1/zh
Priority to US13/937,938 priority patent/US9356802B2/en
Priority to US15/153,532 priority patent/US10616002B2/en
Priority to US16/821,585 priority patent/US11184193B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4675Dynamic sharing of VLAN information amongst network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/68Pseudowire emulation, e.g. IETF WG PWE3

Definitions

  • the Ethernet Tree is an Ethernet Virtual Circuit (EVC) service defined by the Metro Ethernet Forum (MEF).
  • E-Tree has the following features:
  • the root node to the leaf node has a one-to-many relationship, and there may be multiple root nodes; the root node can send Ethernet frames to any other root node and any Leaf node, and the Leaf node can also send Ethernet frames.
  • the Root node can send Ethernet frames to any other root node and any Leaf node, and the Leaf node can also send Ethernet frames.
  • the leaf node and the Leaf node cannot be directly connected and need to be isolated.
  • Virtual Private LAN Service is a technology that uses a Wide Area Network (WAN) architecture to virtualize an Ethernet LAN.
  • VPLS can provide a multi-point to multi-point connection similar to a local area network (LAN) on a Multi-Protocol Label Switching (MPLS) network, facilitating simultaneous access from multiple geographically dispersed points.
  • MPLS networks and access each other, just like these points are directly connected to the LAN. Since the current core network mainly adopts Internet Protocol (IP)/MPLS technology, there are more and more requirements for providing virtual Ethernet services through VPLS, and its deployment has been extensive.
  • IP Internet Protocol
  • the existing technology for providing E-Tree by using VPLS is to identify whether the Ethernet frame is from a Root node or a Leaf node through different Virtual Local Area Networks (VLANs): At the Carrier Edge (PE) device. The corresponding root VLAN identifier or the leaf VLAN identifier is added according to whether the E_Tree access port is a root or a leaf, and then the packet marked with the root VLAN identifier or the leaf VLAN identifier is transmitted to the peer PE through a Pseudo Wire (PW); On the peer PE, the VLAN ID carried in the packet is converted to the local VLAN ID, and then forwarded or filtered.
  • VLANs Virtual Local Area Networks
  • each PE forwards the frame from the root VLAN to the frame from the leaf VLAN. Filter, and so on.
  • each PE can use its own independent VLAN space, and the PE of the one-way PW outlet can perform proper VLAN conversion.
  • the E-Tree service type identifier on PE1 is Rootl VLAN and P Leafl VLAN
  • the E-Tree service type identifier on PE2 is Root2 VLAN.
  • P Leaf2 VLAN P Leaf2 VLAN.
  • the rootl VLAN value can be different from the root2 VLAN value.
  • the Leafl VLAN value can be different from the Leaf2 VLAN value. Therefore, the E-Tree service packet carried by the forward PW1 from PE1 to PE2 carries the Root1 or Leafl VLAN, and is converted to the Root2 or Leaf 2 VLAN on the egress PE2, and the E-Tree service carried by the reverse PW2 from the PE2 to the PE1.
  • the packet carries a Root2 VLAN or a Leaf 2 VLAN, and is converted to a Root1 VLAN or a Leafl VLAN on the egress PE1.
  • four different VLAN identifiers appear on the two-way PW, which will cause difficulties in maintaining and detecting the E-Tree service. Summary of the invention
  • the embodiment of the present invention provides a method, a device, and a system for selecting a network device, to solve the problem that in the prior art, when the E-Tree service is provided, in the independent VLAN space of the PE, there are four different VLAN identifiers on the bidirectional PW. It brings difficult problems to the maintenance and inspection of the E-Tree business.
  • an embodiment of the present invention provides a method for selecting a network device, including: receiving, by a second network device, a network device selection message sent by a first network device, where the network device selection message includes the first The virtual local area network VLAN mapping capability identifier of the network device;
  • the second network device selects a network device that performs VLAN mapping according to the VLAN mapping capability identifier and the local VLAN mapping capability.
  • An embodiment of the present invention provides an apparatus for selecting a network device, including:
  • a receiving module configured to receive a network device selection message sent by the first network device, where the network device selection message includes a virtual local area network VLAN mapping capability identifier of the first network device;
  • a selection module configured to select, according to the VLAN mapping capability identifier and the local VLAN mapping capability, a network device that performs VLAN mapping.
  • An embodiment of the present invention provides a system for selecting a network device, including:
  • a first network device configured to send a network device selection message to the second network device, where the network device selection message includes a virtual local area network VLAN mapping capability identifier;
  • a second network device configured to receive the network device selection message, and select a network device that performs VLAN mapping according to the VLAN mapping capability identifier and the local VLAN mapping capability.
  • the technical solution provided by the embodiment of the present invention can ensure that the forward and reverse PWs perform VLAN mapping on the same PE.
  • the two-way PW can only have two VLAN identifiers, thereby ensuring the consistency of the VLAN in the bidirectional PW. PW maintenance and inspection is simpler and easier.
  • FIG. 1 is a flowchart of a method for selecting a network device according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of a network for providing E-Tree services by using VPLS technology
  • FIG. 3 is a flowchart of a method for selecting a network device according to Embodiment 2 of the present invention.
  • FIG. 4 is a block diagram of a device for selecting a network device according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic diagram of a system for selecting a network device according to Embodiment 4 of the present invention.
  • BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, a specific implementation process of the present invention will be exemplified by way of examples. It is apparent that the embodiments described below are a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • An embodiment of the present invention provides a method for selecting a network device, including: receiving, by a second network device, a network device selection message sent by a first network device, where the network device selection message includes a virtual local area network VLAN of the first network device And mapping, by the second network device, the network device that performs VLAN mapping according to the VLAN mapping capability identifier and the local VLAN mapping capability.
  • the technical solution provided by the embodiment of the present invention can ensure that the forward and reverse PWs perform VLAN mapping on the same PE, and only two VLANs are identified on the bidirectional PW, thereby ensuring the consistency of the VLAN in the bidirectional PW. PW maintenance and inspection is simpler and easier.
  • Step 101 The second network device receives a network device selection message sent by the first network device, where the network is configured.
  • the standby selection message includes a virtual local area network VLAN mapping capability identifier of the first network device.
  • the first network device and the second network device may be carrier edge PE devices in a VPLS network; the first network device may carry the first by using an extended label distribution protocol LDP message or a border gateway protocol BGP message.
  • the VLAN mapping capability identifier of the network device may be used to identify the network device.
  • Step 102 The second network device selects a network device that performs VLAN mapping according to the VLAN mapping capability identifier and the local VLAN mapping capability.
  • the network device that selects to perform VLAN mapping is automatically negotiated according to the VLAN mapping capability identifier. For example, as shown in FIG. 2, in order to provide an E-Tree service, a bidirectional PW is established between PE1 and PE2, and the bidirectional PW is composed of a forward PW1 and a reverse PW2. When a forward PW1 is established, the egress PE2 is directed to the ingress end.
  • the PE 1 sends an extended LDP message, and adds an E-Tree-related sub-TLV (sub-TLV) to the PW interface parameter TLV (Type-Length-Va lue), and carries the VLAN mapping capability identifier V2 of the PE2;
  • the device After receiving the extended LDP message, the device establishes a forward PW1 and selects a network device that performs VLAN mapping according to the local VLAN mapping capability and the V2 carried in the extended LDP message.
  • the egress PE1 The ingress PE2 sends an extended LDP message, which carries the VI.
  • the PE2 After receiving the extended LDP message, the PE2 establishes the reverse PW2 and performs VLAN mapping according to the local VLAN mapping capability and the VI carried in the extended LDP message.
  • Network equipment :
  • FIG. 3 is a flowchart of a method for selecting a network device according to Embodiment 2 of the present invention. The specific steps are as follows: Step 201: The second network device receives a network device selection message sent by the first network device, where the network device selects The message includes a VLAN mapping capability identifier and a device identifier of the first network device.
  • the first network device and the second network device may be carrier edge PE devices in a VPLS network; the first network device may carry the first by using an extended label distribution protocol LDP message or a border gateway protocol BGP message.
  • Step 202 The second network device selects a network device that performs VLAN mapping according to the VLAN mapping capability identifier and the device identifier, and the local VLAN mapping capability and the device identifier.
  • the network device that selects to perform VLAN mapping is automatically negotiated according to the VLAN mapping capability identifier and the device identifier. For example, as shown in FIG. 2, to provide an E-Tree service, a bidirectional PW is established between PE1 and PE2.
  • the bidirectional PW is composed of a forward PW1 and a reverse PW2.
  • the egress PE2 sends an extended LDP message to the ingress PE1, and the PW interface parameter TLV (Type-Length-Va lue) is added.
  • TLV Type-Length-Va lue
  • An E-Tree-related sub-TLV carrying the VLAN mapping capability of the PE2 and the device ID of the device ID2; when the PE1 receives the extended LDP message, the PW1 is established and the local VLAN mapping capability is established. And the device ID Node ID1, and the V2 and Node ID2 carried in the extended LDP message, select a network device that performs VLAN mapping; when the reverse PW2 is established, the egress PE1 sends an extended LDP message to the ingress PE2, where the VI and the VI are carried.
  • PE2 After receiving the extended LDP message, PE2 establishes a reverse PW2, and selects a network device that performs VLAN mapping according to the local VLAN mapping capability and Node ID2, and the VI and Node I D1 carried in the extended LDP message. :
  • a PE When both PE1 and PE2 have VLAN mapping capability according to VI and V2, a PE is selected as the network device performing VLAN mapping according to the device identifiers Node ID1 and Node ID2; for example, a selection policy is to select the PE with the smallest device identifier as the execution VLAN.
  • the mapped network device for example, if NodelD1 is smaller than NodeID2, PE1 is selected to perform VLAN mapping, and PE2 is used to disable local VLAN mapping. If the Node ID is not in the form of a number, the Node ID can be sorted, and a network device is selected according to the order of the device identification, for example, the network device corresponding to the first Node ID after sorting.
  • the bidirectional PW performs VLAN mapping on the same PE device, for example, on the PE1.
  • the PE1 sends the E-Tree service Ethernet frame to the PE2 through the PW1
  • the PE1 performs VLAN mapping first.
  • the VLAN IDs Root and Leaf l are mapped to the VLAN IDs of the peer PE2, Root 2, and Leaf 2, and then the packets with the VLAN ID Root 2 or 1 ⁇ & 2 are passed.
  • the PE2 forwards the packet to the corresponding root or leaf port according to the VLAN ID.
  • the PE2 sends the E-Tree service Ethernet frame to the PE1 through the PW2. Or the packet of Leaf 2 is sent to PE1 through PW2.
  • FIG. 4 it is a block diagram of a device for selecting a network device according to Embodiment 3 of the present invention.
  • the device specifically includes a receiving module 301 and a selecting module 302. among them:
  • the receiving module 301 is configured to receive a network device selection message sent by the first network device, where the network device selection message includes a virtual local area network VLAN mapping capability identifier;
  • the selecting module 302 is configured to select an execution VLAN according to the VLAN mapping capability identifier and the local VLAN mapping capability. Mapped network devices.
  • the network device selection message may further include a device identifier of the first network device
  • the selecting module 302 is configured to select a network device that performs VLAN mapping according to the VLAN mapping capability identifier and the device identifier, and the local VLAN mapping capability and the device identifier.
  • FIG. 5 is a schematic diagram of a system for selecting a network device according to Embodiment 4 of the present invention.
  • the system includes: a first network device 401, configured to send a network device 402 selection message to a second network device, where the network device selects The message includes a virtual local area network VLAN mapping capability identifier of the first network device 401;
  • the second network device 402 is configured to receive the network device selection message, and select a network device that performs VLAN mapping according to the VLAN mapping capability identifier and the local VLAN mapping capability.
  • the network device selection message may further include a device identifier of the first network device
  • the second network device 402 is configured to receive the network device selection message, and select a network device that performs VLAN mapping according to the VLAN mapping capability identifier and the device identifier, and the local VLAN mapping capability and the device identifier.
  • the first network device and the second network device may be carrier edge PE devices in the VPLS network; the first network device may send the second network device to the second network device by using an extended label distribution protocol LDP message or a border gateway protocol BGP message. Send a network device selection message.
  • the network device that performs VLAN mapping is selected by using the device selection message to ensure that the forward and reverse PWs perform VLAN mapping on the same PE, which solves the problem that the PEs perform VLAN mapping in the prior art.
  • the network device that performs VLAN mapping is selected by using the device selection message to ensure that the forward and reverse PWs perform VLAN mapping on the same PE, which solves the problem that the PEs perform VLAN mapping in the prior art.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

一种选择网络设备的方法, 装置和系统
本申请要求于 2011年 1月 11日提交中国专利局、 申请号为 201110004507. 0、发明 名称为 "一种选择网络设备的方法, 装置和系统"的中国专利申请的优先权, 其全部内 容通过引用结合在本申请中。 技术领域 本发明涉及网络通信领域, 尤其涉及一种选择网络设备的方法, 装置和系统。 背景技术 以太树 (Ethernet Tree, E-Tree) 是城域以太网论坛 (Metro Ethernet Forum, MEF) 定义的一种以太网虚拟电路 (Ethernet Virtual Circuit, EVC)业务, E-Tree具 有如下特性:
根 (Root)节点到叶子 (Leaf)节点为一对多关系, 并可能存在多个 Root节点; Root节点可发送以太网帧到任意其他 Root节点和任意 Leaf 节点, Leaf 节点也可 发送以太网帧到任何 Root节点;
Leaf节点和 Leaf节点之间不能直接连通, 需要隔离。
虚拟专用局域网业务 (Virtual Private LAN Service, VPLS) 是一种利用广域网 (Wide Area Network, WAN) 架构来虚拟以太局域网的技术。 VPLS能够在多协议标签交 换 (Multi-Protocol Label Switching, MPLS) 网络上提供类似于局域网 (Local Area Network, LAN) 的多点到多点连接, 便于用户从多个地理位置分散的点同时接入 MPLS 网络, 并相互访问, 就像这些点直接接入到 LAN上一样。 由于目前核心网络主要都采用 网际协议 (Internet Protocol , IP) /MPLS技术, 所以通过 VPLS来提供虚拟以太网业 务的需求越来越多, 其部署也已经非常广泛。
现有利用 VPLS提供 E-Tree的技术是通过不同的以太虚拟局域网 (Virtual Local Area Network, VLAN) 来标识以太网帧是来自于 Root节点还是 Leaf节点: 在运营商边 缘(Provider Edge, PE)设备上根据 E_Tree接入端口是根还是叶子来添加相应的根 VLAN 标识或叶子 VLAN标识, 然后通过伪线 (Pseudo Wire, PW) 将打上根 VLAN标识或叶子 VLAN标识的分组传送到对端 PE上; 在对端 PE上, 将分组中所携带的 VLAN标识转换为 本地的 VLAN标识, 再进行相应的转发或过滤处理; 例如, 在叶子端口对来自根 VLAN的 帧进行转发, 对来自叶子 VLAN的帧进行过滤, 等等。 为了提高网络的扩展性,通常每个 PE上可以使用自己独立的 VLAN空间, 由单向 PW 出口的 PE来做适当的 VLAN转换。例如, PE1和 PE2间有双向 PW,即正向 PW1和反向 PW2 连接, PE1上的 E-Tree业务类型标识为 Rootl VLAN禾 P Leafl VLAN, PE2上的 E-Tree 业务类型标识为 Root2 VLAN禾 P Leaf2 VLAN。 Rootl VLAN值可以不同于 Root2 VLAN值, Leafl VLAN值可以不同于 Leaf2 VLAN值。因此,从 PEl到 PE2的正向 PW1承载的 E-Tree 业务分组携带 Rootl或 Leafl VLAN, 在出口 PE2上分别转换为 Root2或 Leaf 2 VLAN; 从 PE2到 PE1的反向 PW2承载的 E-Tree业务分组携带 Root2 VLAN或 Leaf 2 VLAN, 在出 口 PEl上分别转换为 Rootl VLAN或 Leafl VLAN。 这样一来, 双向 PW上会出现 4个不同 的 VLAN标识, 将给 E-Tree业务的维护、 检测带来困难。 发明内容
本发明实施例提供了一种选择网络设备的方法, 装置和系统, 以解决现有技术中在 提供 E-Tree业务时, PE独立的 VLAN空间下, 双向 PW上有 4个不同的 VLAN标识, 给 E-Tree 业务的维护、 检测带来困难的问题。
为解决上述技术问题, 本发明实施例提供了一种选择网络设备的方法, 包括: 第二网络设备接收第一网络设备发送的网络设备选择消息,所述网络设备选择消息 中包含所述第一网络设备的虚拟局域网 VLAN映射能力标识;
所述第二网络设备根据所述 VLAN映射能力标识和本地 VLAN映射能力选择执行 VLAN 映射的网络设备。
本发明实施例提供了一种选择网络设备的装置, 包括:
接收模块, 用于接收第一网络设备发送的网络设备选择消息, 所述网络设备选择消 息中包含所述第一网络设备的虚拟局域网 VLAN映射能力标识;
选择模块,用于根据所述 VLAN映射能力标识和本地 VLAN映射能力选择执行 VLAN映射 的网络设备。
本发明实施例提供了一种选择网络设备的系统, 包括:
第一网络设备, 用于向第二网络设备发送网络设备选择消息, 所述网络设备选择消 息包含虚拟局域网 VLAN映射能力标识;
第二网络设备, 用于接收所述网络设备选择消息, 并根据所述 VLAN映射能力标识和 本地 VLAN映射能力选择执行 VLAN映射的网络设备。 采用本发明实施例提供的技术方案,可以保证正向和反向 PW在同一个 PE上执行 VLAN 映射, 双向 PW上只会有 2个 VLAN标识, 从而保证了双向 PW中 VLAN的一致性, 使得 PW的维 护和检测更为简单容易。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或现有 技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例 1提供的一种选择网络设备的方法流程图;
图 2是利用 VPLS技术提供 E-Tree业务的网络示意图;
图 3是本发明实施例 2提供的一种选择网络设备的方法流程图;
图 4是本发明实施例 3提供的一种选择网络设备的装置框图;
图 5是本发明实施例 4提供的一种选择网络设备的系统示意图。 具体实施方式 下面通过实施例对本发明的具体实现过程进行举例说明。 显然, 下面所描述的实施 例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通 技术人员在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。
本发明实施例提供了一种选择网络设备的方法, 包括: 第二网络设备接收第一网络 设备发送的网络设备选择消息,所述网络设备选择消息中包含所述第一网络设备的虚拟 局域网 VLAN映射能力标识; 所述第二网络设备根据所述 VLAN映射能力标识和本地 VLAN映 射能力选择执行 VLAN映射的网络设备。 采用本发明实施例提供的技术方案, 可以保证正 向和反向 PW在同一个 PE上执行 VLAN映射, 双向 PW上只会有 2个 VLAN标识, 从而保证了双 向 PW中 VLAN的一致性, 使得 PW的维护和检测更为简单容易。
为使本发明实施例的上述目的、 特征和优点能够更加明显易懂, 下面结合附图和具 体实施方式对本发明实施例作进一步详细的说明。
参见图 1,是本发明实施例 1提供的一种选择网络设备的方法流程图,具体步骤如下: 步骤 101 : 第二网络设备接收第一网络设备发送的网络设备选择消息, 所述网络设 备选择消息中包含所述第一网络设备的虚拟局域网 VLAN映射能力标识。
所述第一网络设备和所述第二网络设备可以是 VPLS网络中的运营商边缘 PE设备; 所 述第一网络设备可以通过扩展标签分发协议 LDP消息或边界网关协议 BGP消息携带所述 第一网络设备的 VLAN映射能力标识。
步骤 102 : 所述第二网络设备根据所述 VLAN映射能力标识和本地 VLAN映射能力选择 执行 VLAN映射的网络设备。
所述选择执行 VLAN映射的网络设备是根据所述 VLAN映射能力标识自动协商完成的。 例如, 如图 2所示, 为提供 E-Tree业务在 PE1和 PE2间要建立双向 PW, 该双向 PW由正向 PW1 和反向 PW2构成; 在建立正向 PW1时, 出口端 PE2向入口端 PE 1发送扩展的 LDP消息, 在其 中的 PW接口参数 TLV ( Type-Leng th-Va lue )中增加一个 E-Tree相关的子 TLV ( sub TLV ), 携带 PE2的 VLAN映射能力标识 V2 ; 当 PE1收到该扩展的 LDP消息后, 建立正向 PW1, 并根据 本地的 VLAN映射能力, 以及扩展的 LDP消息中携带的 V2选择执行 VLAN映射的网络设备; 在建立反向 PW2时, 出口端 PE1向入口端 PE2发送扩展的 LDP消息, 其中携带 VI, 当 PE2收 到该扩展的 LDP消息后, 建立反向 PW2, 并根据本地的 VLAN映射能力, 以及扩展的 LDP消 息中携带的 VI选择执行 VLAN映射的网络设备:
当根据 VI和 V2确定 PE1和 PE2中仅有一个 PE具有 VLAN映射能力时,选择该 PE作为执行 VLAN映射的网络设备。 参见图 3,是本发明实施例 2提供的一种选择网络设备的方法流程图,具体步骤如下: 步骤 201 : 第二网络设备接收第一网络设备发送的网络设备选择消息, 所述网络设 备选择消息中包含所述第一网络设备的 VLAN映射能力标识和设备标识。
所述第一网络设备和所述第二网络设备可以是 VPLS网络中的运营商边缘 PE设备; 所 述第一网络设备可以通过扩展标签分发协议 LDP消息或边界网关协议 BGP消息携带所述 第一网络设备的 VLAN映射能力标识和设备标识; 当所述第一网络设备的设备标识是 IP地 址时, 可以通过所述网络设备选择消息的 IP报文首部获得该设备标识, 而不需要在所述 网络设备选择消息中再扩展单独的字段
步骤 202 :所述第二网络设备根据所述 VLAN映射能力标识和设备标识,以及本地 VLAN 映射能力和设备标识选择执行 VLAN映射的网络设备。
所述选择执行 VLAN映射的网络设备是根据所述 VLAN映射能力标识和设备标识自动 协商完成的。 举例来说, 如图 2所示, 为提供 E-Tree业务在 PE1和 PE2间要建立双向 PW, 该双向 PW由正向 PW1和反向 PW2构成; 在建立正向 PW1时, 出口端 PE2向入口端 PE1发送扩 展的 LDP消息, 在其中的 PW接口参数 TLV ( Type-Length-Va lue ) 中增加一个 E-Tree相关 的子 TLV ( sub TLV) , 携带 PE2的 VLAN映射能力标识 V2和设备标识 Node ID2 ; 当 PE1收到 该扩展的 LDP消息后, 建立正向 PW1, 并根据本地的 VLAN映射能力和设备标识 Node ID1 , 以及扩展的 LDP消息中携带的 V2和 Node ID2选择执行 VLAN映射的网络设备; 在建立反向 PW2时, 出口端 PE1向入口端 PE2发送扩展的 LDP消息, 其中携带 VI和 Node ID1 ; 当 PE2收 到该扩展的 LDP消息后, 建立反向 PW2, 并根据本地的 VLAN映射能力和 Node ID2 , 以及扩 展的 LDP消息中携带的 VI和 Node I D1选择执行 VLAN映射的网络设备:
当根据 VI和 V2确定 PE1和 PE2都具有 VLAN映射能力时, 根据设备标识 Node ID1和 Node ID2选择一个 PE作为执行 VLAN映射的网络设备; 例如一种选择策略是选择设备标识最小 的 PE作为执行 VLAN映射的网络设备, 例如若 NodelDl小于 NodeID2, 则选择 PE1执行 VLAN 映射, PE2关闭本地的 VLAN映射功能。 如果 Node ID不是数字形式, 可以对 Node ID排序, 根据设备标识的顺序选择一个网络设备, 例如经过排序后最前的 Node ID对应的网络设 备。
根据本发明实施例提供的技术方案,双向 PW在同一个 PE设备,例如在 PE1上执行 VLAN 映射,当 PE1要通过 PW1向 PE2发送 E-Tree业务以太帧时, PE1先执行 VLAN映射,将本地 VLAN 标识 Root l、 Leaf l分别映射到对端 PE2的 VLAN标识 Root 2、 Leaf 2 , 然后将打上 VLAN标识 Root 2或 1^& 2的分组通过?¥1发送到?82, PE2收到分组后, 根据 VLAN标识 Root2或 Leaf 2 直接转发到对应的 Root或 Leaf端口; 反之, 当 PE2通过 PW2向 PE1发送 E-Tree业务以太帧 时, PE2直接将打上 VLAN标识 Root 2或 Leaf 2的分组通过 PW2发送到 PE1, PE1收到该分组后, 首先执行 VLAN映射, 将 Root 2或 1^& 2映射到本地的1 0011或1^&111, 再转发到对应的 Root 或 Leaf端口。 因此, PW1和 PW2上承载的分组均是携带 Root 2或 Leaf 2 ; 从而解决了现有技 术中 PE各自进行 VLAN映射, 双向 PW上有 4个不同的 VLAN标识, 给业务的维护、 检测带来 困难的问题。 参见图 4, 是本发明实施例 3提供的一种选择网络设备的装置框图, 该装置具体包括 接收模块 301和选择模块 302。 其中:
接收模块 301, 用于接收第一网络设备发送的网络设备选择消息, 所述网络设备选 择消息中包含虚拟局域网 VLAN映射能力标识;
选择模块 302, 用于根据所述 VLAN映射能力标识和本地 VLAN映射能力选择执行 VLAN 映射的网络设备。
所述网络设备选择消息中还可以包含所述第一网络设备的设备标识;
相应地, 所述选择模块 302, 用于根据所述 VLAN映射能力标识和设备标识, 以及本 地 VLAN映射能力和设备标识选择执行 VLAN映射的网络设备。
当根据所述 VLAN映射能力标识和本地 VLAN映射能力确定本地所述第一网络设备都 具有 VLAN映射能力时, 所述选择模块, 具体用于根据所述设备标识和本地设备标识的大 小或顺序选择执行 VLAN映射的网络设备。 参见图 5, 是本发明实施例 4提供的一种选择网络设备的系统示意图, 该系统包括: 第一网络设备 401, 用于向第二网络设备发送网络设备 402选择消息, 所述网络设备 选择消息中包含所述第一网络设备 401的虚拟局域网 VLAN映射能力标识;
第二网络设备 402, 用于接收所述网络设备选择消息, 并根据所述 VLAN映射能力标 识和本地 VLAN映射能力选择执行 VLAN映射的网络设备。
所述网络设备选择消息中还可以包含所述第一网络设备的设备标识;
相应地,所述第二网络设备 402,用于接收所述网络设备选择消息,并根据所述 VLAN 映射能力标识和设备标识, 以及本地 VLAN映射能力和设备标识选择执行 VLAN映射的网络 设备。
所述第一网络设备和第二网络设备可以是 VPLS网络中的运营商边缘 PE设备; 所述第 一网络设备可以通过扩展标签分发协议 LDP消息或边界网关协议 BGP消息向所述第二网 络设备发送网络设备选择消息。
采用本发明实施例提供的技术方案, 由于通过设备选择消息选择执行 VLAN映射的网 络设备, 可以保证正反向 PW在同一个 PE上执行 VLAN映射, 解决了现有技术中 PE各自进行 VLAN映射, 双向 PW上有 4个不同的 VLAN标识, 给业务的维护、 检测带来困难的问题。
虽然本发明所有实施例中仅描述了两个 PE之间协商选择执行 VLAN映射的网络设备, 但是对于由更多个 PE组成的 E-Tree ,其任意两个 PE之间的协商选择过程仍然可以采用本 发明实施例提供的技术方案。
需要说明的是, 在本文中, 诸如第一和第二等之类的关系术语仅仅用来将一个实体 或者操作与另一个实体或操作区分开来, 而不一定要求或者暗示这些实体或操作之间存 在任何这种实际的关系或者顺序。 而且, 术语 "包括"、 "包含"或者其任何其他变体 意在涵盖非排他性的包含, 从而使得包括一系列要素的过程、 方法、 物品或者设备不仅 包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、 物品或者设备所固有的要素。 在没有更多限制的情况下, 由语句 "包括一个…… "限定 的要素, 并不排除在包括所述要素的过程、 方法、 物品或者设备中还存在另外的相同要 素。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤可以通过程 序指令相关的硬件来完成, 前述的程序可以存储于计算机可读取存储介质中, 该程序在 执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: R0M、 RAM, 磁碟或 者光盘等各种可以存储程序代码的介质。
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到的变化或替 换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应该以权利要求的保 护范围为准。

Claims

权利要求
1、 一种选择网络设备的方法, 其特征在于, 包括:
第二网络设备接收第一网络设备发送的网络设备选择消息,所述网络设备选择消息 中包含所述第一网络设备的虚拟局域网 VLAN映射能力标识;
所述第二网络设备根据所述 VLAN映射能力标识和本地 VLAN映射能力选择执行 VLAN 映射的网络设备。
2、 根据权利要求 1所述的方法, 其特征在于, 所述第二网络设备根据所述 VLAN映射 能力标识和本地 VLAN映射能力选择执行 VLAN映射的网络设备, 包括:
当所述第二网络设备根据所述 VLAN映射能力标识和本地 VLAN映射能力确定仅有所 述第二网络设备具有 VLAN映射能力时,选择所述第二网络设备作为执行 VLAN映射的网络 设备;
当所述第二网络设备根据所述 VLAN映射能力标识和本地 VLAN映射能力确定仅有所 述第一网络设备具有 VLAN映射能力时,选择所述第一网络设备作为执行 VLAN映射的网络 设备。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述网络设备选择消息还包含所 述第一网络设备的设备标识;
相应地, 所述第二网络设备根据所述 VLAN映射能力标识和所述设备标识, 以及本地 VLAN映射能力和本地设备标识选择执行 VLAN映射的网络设备。
4、 根据权利要求 3所述的方法, 其特征在于, 所述第二网络设备根据所述 VLAN映射 能力标识和所述设备标识, 以及本地 VLAN映射能力和本地设备标识选择执行 VLAN映射的 网络设备, 包括:
当所述第二网络设备根据所述 VLAN映射能力标识和本地 VLAN映射能力确定所述第 二网络设备和所述第一网络设备都具有 VLAN映射能力时,根据所述设备标识和本地设备 标识的大小或顺序选择执行 VLAN映射的网络设备。
5、 根据权利要求 1至 4任一项所述的方法, 其特征在于, 所述网络设备选择消息包 括标签分发协议 LDP消息或边界网关协议 BGP消息。
6、 一种选择网络设备的装置, 其特征在于, 包括:
接收模块, 用于接收第一网络设备发送的网络设备选择消息, 所述网络设备选择消 息中包含所述第一网络设备的虚拟局域网 VLAN映射能力标识; 选择模块,用于根据所述 VLAN映射能力标识和本地映射能力选择执行 VLAN映射的网 络设备。
7、 根据权利要求 6所述的装置, 其特征在于, 所述网络设备选择消息中还包含所述 第一网络设备的设备标识;
相应地, 所述选择模块, 具体用于根据所述 VLAN映射能力标识和所述设备标识, 以 及本地 VLAN映射能力和本地设备标识选择执行 VLAN映射的网络设备。
8、 根据权利要求 7所述的装置, 其特征在于, 根据所述设备标识和本地设备标识的 大小或顺序选择执行 VLAN映射的网络设备。
9、 一种选择网络设备的系统, 其特征在于, 包括:
第一网络设备, 用于向第二网络设备发送网络设备选择消息, 所述网络设备选择消 息包含所述第一网络设备的虚拟局域网 VLAN映射能力标识;
第二网络设备, 用于接收所述网络设备选择消息, 并根据所述 VLAN映射能力标识和 本地 VLAN映射能力选择执行 VLAN映射的网络设备。
10、 根据权利要求 9所述的系统, 其特征在于, 所述网络设备选择消息中还包含所 述第一网络设备的设备标识;
相应地, 所述第二网络设备用于接收所述网络设备选择消息, 并根据所述 VLAN映射 能力标识和所述设备标识, 以及本地 VLAN映射能力和本地设备标识选择执行 VLAN映射的 网络设备。
PCT/CN2011/080809 2011-01-11 2011-10-14 一种选择网络设备的方法,装置和系统 WO2012094912A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
ES11855324.7T ES2626260T3 (es) 2011-01-11 2011-10-14 Procedimiento, aparato y sistema para seleccionar un dispositivo de red
EP11855324.7A EP2648369B1 (en) 2011-01-11 2011-10-14 Method, apparatus and system for selecting network device
US13/937,938 US9356802B2 (en) 2011-01-11 2013-07-09 Method, apparatus, and system for selecting network device
US15/153,532 US10616002B2 (en) 2011-01-11 2016-05-12 Method, apparatus, and system for selecting network device
US16/821,585 US11184193B2 (en) 2011-01-11 2020-03-17 Method, apparatus, and system for selecting network device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110004507.0 2011-01-11
CN201110004507.0A CN102594644B (zh) 2011-01-11 2011-01-11 一种选择网络设备的方法,装置和系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/937,938 Continuation US9356802B2 (en) 2011-01-11 2013-07-09 Method, apparatus, and system for selecting network device

Publications (1)

Publication Number Publication Date
WO2012094912A1 true WO2012094912A1 (zh) 2012-07-19

Family

ID=46482862

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/080809 WO2012094912A1 (zh) 2011-01-11 2011-10-14 一种选择网络设备的方法,装置和系统

Country Status (5)

Country Link
US (3) US9356802B2 (zh)
EP (1) EP2648369B1 (zh)
CN (1) CN102594644B (zh)
ES (1) ES2626260T3 (zh)
WO (1) WO2012094912A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9602461B2 (en) 2012-11-27 2017-03-21 Huawei Technologies Co., Ltd. Service forwarding method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060245436A1 (en) * 2005-04-28 2006-11-02 Cisco Technology, Inc. Comprehensive model for VPLS
CN101552711A (zh) * 2008-04-03 2009-10-07 华为技术有限公司 建立伪线映射的方法及装置
CN101719857A (zh) * 2009-12-16 2010-06-02 中兴通讯股份有限公司 一种基于非对称pw的vpls网络接入方法及系统

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8713185B2 (en) * 2001-12-07 2014-04-29 Rockstar Bidco, LP Methods of establishing virtual circuits and of providing a virtual private network service through a shared network, and provider edge device for such network
US7180899B2 (en) * 2002-10-29 2007-02-20 Cisco Technology, Inc. Multi-tiered Virtual Local area Network (VLAN) domain mapping mechanism
CN100505746C (zh) * 2004-02-07 2009-06-24 华为技术有限公司 实现虚拟租用线的方法
US8117338B2 (en) * 2007-01-17 2012-02-14 Rockstar Bidco, LP Border gateway protocol procedures for multi-protocol label switching and layer-2 virtual private networks using Ethernet-based tunnels
US8259569B2 (en) * 2008-09-09 2012-09-04 Cisco Technology, Inc. Differentiated services for unicast and multicast frames in layer 2 topologies
US8553581B2 (en) * 2009-02-17 2013-10-08 Tellabs Operations, Inc. Method and apparatus for provisioning a network element
US8320282B2 (en) * 2009-07-30 2012-11-27 Calix, Inc. Automatic control node selection in ring networks
US8737399B2 (en) * 2010-01-05 2014-05-27 Futurewei Technologies, Inc. Enhanced hierarchical virtual private local area network service (VPLS) system and method for Ethernet-tree (E-Tree) services
CN102170385B (zh) * 2010-02-27 2014-01-22 华为技术有限公司 一种以太树业务中以太网帧的发送方法和运营商边缘设备
US8493983B2 (en) * 2010-06-02 2013-07-23 Cisco Technology, Inc. Virtual fabric membership assignments for fiber channel over Ethernet network devices
US20120147893A1 (en) * 2010-12-08 2012-06-14 Nokia Siemens Networks Ethernet Solutions Ltd. E-Tree Interoperability Between MPLS Domain Devices and Ethernet Domain Devices
US9148781B2 (en) * 2011-07-28 2015-09-29 Hewlett-Packard Development Company, L.P. Wireless transmission of data packets based on client associations

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060245436A1 (en) * 2005-04-28 2006-11-02 Cisco Technology, Inc. Comprehensive model for VPLS
CN101552711A (zh) * 2008-04-03 2009-10-07 华为技术有限公司 建立伪线映射的方法及装置
CN101719857A (zh) * 2009-12-16 2010-06-02 中兴通讯股份有限公司 一种基于非对称pw的vpls网络接入方法及系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JIANG, Y.L.: "VPLS PE Model for E-Tree Support draft jiang-12vpn-vpls-pe-etree-01.txt", VPLS PE MODEL FOR E-TREE SUPPORT, 12 July 2010 (2010-07-12), Retrieved from the Internet <URL:http://tools.ietf.org/html/draft-jian -g l2vpn-vpls-pe-etree-01> [retrieved on 20111220] *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9602461B2 (en) 2012-11-27 2017-03-21 Huawei Technologies Co., Ltd. Service forwarding method and device

Also Published As

Publication number Publication date
EP2648369A1 (en) 2013-10-09
CN102594644A (zh) 2012-07-18
EP2648369A4 (en) 2013-11-06
CN102594644B (zh) 2016-03-30
US20130294452A1 (en) 2013-11-07
EP2648369B1 (en) 2017-04-26
US20160261431A1 (en) 2016-09-08
US20200267021A1 (en) 2020-08-20
ES2626260T3 (es) 2017-07-24
US10616002B2 (en) 2020-04-07
US11184193B2 (en) 2021-11-23
US9356802B2 (en) 2016-05-31

Similar Documents

Publication Publication Date Title
EP2541841B1 (en) Method for sending ethernet frames in ethernet tree service and provider edge device
US8537816B2 (en) Multicast VPN support for IP-VPN lite
US8908527B2 (en) Using context labels to scale MAC tables on computer network edge devices
JP2014532368A (ja) トラフィックエンジニアリングトンネルに基づく仮想プライベートネットワーク実行方法及びシステム
US8611347B2 (en) Point-to-multipoint service in a layer two ethernet network
EP2675121A1 (en) Vpls fast rerouting method and device
WO2009033428A1 (fr) Procédé, système et dispositif pour retirer une adresse de commande d&#39;accès au support
WO2013139159A1 (zh) 在网络中转发报文的方法和运营商边缘设备
WO2014194711A1 (zh) 报文处理方法、设备标签处理方法及设备
WO2016041379A1 (zh) Nni ping的实现方法及装置
Fang et al. The evolution of carrier ethernet services-requirements and deployment case studies [next-generation carrier ethernet]
WO2014019348A1 (zh) 操作、管理和维护oam配置的方法、设备及系统
WO2008011818A1 (fr) Procédé de fourniture d&#39;un service réseau local privé virtuel à hiérarchie et système réseau
WO2013139270A1 (zh) 实现三层虚拟专用网络的方法、设备及系统
WO2014180199A1 (zh) 网络建立的方法及控制设备
US9680769B2 (en) Method for implementing E-tree service and provider edge device
US8675658B2 (en) Using multiple IGMP queriers in a layer 2 network
WO2011140921A1 (zh) 虚拟专用局域网业务vpls的数据帧的转发方法、设备和系统
CN104717119B (zh) 实现l2 vpn与l3 vpn桥接的方法及系统
US9654304B2 (en) Method and apparatus for sending transparent interconnection of lots of links data frame
US11184193B2 (en) Method, apparatus, and system for selecting network device
WO2013117165A1 (zh) 实现基于VPLS的E-tree业务的方法和节点
CN107770028B (zh) 针对中国电信场景点到多点虚拟局域网业务实现的方法
CN103595609B (zh) Trill网络互联方法、系统及设备
WO2016107156A1 (zh) 桥接网络端到端的监测方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11855324

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2011855324

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2011855324

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE