WO2015081684A1 - 一种实现隧道保护的方法及装置、网络设备 - Google Patents

一种实现隧道保护的方法及装置、网络设备 Download PDF

Info

Publication number
WO2015081684A1
WO2015081684A1 PCT/CN2014/080149 CN2014080149W WO2015081684A1 WO 2015081684 A1 WO2015081684 A1 WO 2015081684A1 CN 2014080149 W CN2014080149 W CN 2014080149W WO 2015081684 A1 WO2015081684 A1 WO 2015081684A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
node network
mac address
root node
packet
Prior art date
Application number
PCT/CN2014/080149
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 中兴通讯股份有限公司
Publication of WO2015081684A1 publication Critical patent/WO2015081684A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and device for implementing tunnel protection, and a network device.
  • PTN Packet Transport Network
  • PTN technology can provide efficient transmission of packet services, and is a comprehensive transport network technology capable of providing carrier-class multi-service bearers including Ethernet services, traditional TDM and ATM services.
  • PTN technology retains the functional requirements of the transport network and adds new demands to the delivery of efficient packet services.
  • the transmission of packet services such as Ethernet, VoIP, VPn, IPTV, and mobile backhaul based on data services brings new demands and challenges to the transport network.
  • Packet network packetization that is, packet transport networks, has gradually become a trend.
  • a typical PTN network is shown in Figure 1.
  • Network protection is one of the core contents of PTN technology.
  • protection methods mainly include linear protection and ring network protection.
  • Linear protection includes tunnel 1+1 protection and tunnel 1 : 1 protection.
  • the ETREE networking model is shown in Figure 2.
  • Device A is the root node, and devices B, C, and D are leaf nodes.
  • the forwarding criterion is to find out the port through VFI (virtual forwarding instance;) + destination MAC address. If it is not found, it will be broadcast in the instance, and it needs to be guaranteed.
  • the root node can communicate with all leaf nodes, and leaf nodes cannot communicate with each other.
  • the current PTN switching device cannot currently support the tunnel 1+1 protection function.
  • SUMMARY OF THE INVENTION The main technical problem to be solved by the present invention is to provide a method and a device for implementing tunnel protection, and a network device, which can implement tunnel 1+1 protection under the PTN network ETREE networking.
  • the present invention provides a method for implementing tunnel protection, which is applied to a PTN network ETREE networking, where the ETREE networking includes at least: a root node network device and a plurality of leaf node network devices.
  • the root node network device and the leaf node network device perform a service connection by using a pseudowire; the method includes the following steps: establishing a working tunnel and a protection tunnel between the root node network device and the at least one leaf node network device, and connecting A pseudowire of the root node network device and the leaf node network device is carried on the working tunnel and the protection tunnel; when the packet enters the root node network device for forwarding, the root node
  • the network device learns the source MAC address of the packet, and sets the type of the MAC address.
  • the destination MAC address of the packet is obtained by the destination MAC address, and the packet is sent according to the type of the destination MAC address. Forward to the corresponding pseudowire.
  • the step of setting the type of the MAC address includes: setting the MAC address of the packet when the packet enters the root node network device from the root node. Type of the MAC address of the message when the message enters the root node network device from the leaf node network device through the pseudowire.
  • the type of the MAC address of the packet is set to: when the packet enters the packet from the leaf node network device through the pseudowire.
  • the MAC addresses of the packets entering the root node network device through different pseudowires are set to different types.
  • the manner of setting the type of the MAC address includes: identifying a type of the MAC address.
  • the present invention further provides an apparatus for implementing tunnel protection, where the apparatus should be set up in a PTN network ETREE networking, and the ETREE networking includes at least: one root node network device and multiple a leaf node network device, wherein the root node network device and the leaf node network device are connected by a pseudowire service; the device includes: a tunnel establishment module, a MAC address processing module, and a packet forwarding module; Establishing a working tunnel and a protection tunnel between the root node network device and the at least one leaf node network device; the working tunnel and the protection tunnel carrying a pseudowire connecting the root node network device and the leaf node network device;
  • the address processing module is configured to: when the packet enters the root node network device for forwarding, the root node network device learns the source MAC address of the packet, and sets the type of the MAC address; the packet forwarding module sets Obtaining the type of the destination address for querying the destination MAC address of the packet, according to the The type of
  • the MAC address processing module is configured to: when the packet enters the root node network device from the root node, set the type of the MAC address of the packet; when the packet enters from the leaf node network device through the pseudowire When the root node network device is described, the type of the MAC address of the packet is set.
  • the MAC address processing module is configured to: when the packet enters the root node network device from the leaf node network device through the pseudowire, set the MAC address of the packet entering the root node network device through different pseudowires to Different types.
  • the present invention further provides a network device, which is applied to a PTN network ETREE network and serves as a root node, and the network device includes: a memory, one or more processors. And one or more modules; the one or more modules are stored in the memory and configured to be executed by the one or more processors; the one or more modules comprising settings configured to perform the following steps Directing: performing a service connection between the root node network device and the leaf node network device by using a pseudowire; establishing a working tunnel and a protection tunnel between the root node network device and the at least one leaf node network device; And the protection tunnel carries a pseudowire connecting the root node network device and the leaf node network device; when the packet enters the root node network device for forwarding, learning a source MAC address of the packet, and setting The type of the MAC address is obtained by querying the destination MAC address of the packet, and forwarding the packet to the corresponding pseudowire according to the type of the destination MAC address
  • the step of setting the type of the MAC address includes: setting the MAC address of the packet when the packet enters the root node network device from the root node.
  • the step of setting the type of the MAC address of the packet includes: when the packet enters from the leaf node network device through the pseudowire.
  • the invention has the following advantages:
  • the present invention provides a method and a device for implementing tunnel protection, and a network device, which can implement tunnel 1+1 protection under the PTN network ETREE networking.
  • the method for implementing the tunnel protection of the present invention is applied to the ETREE network of the PTN network.
  • the ETREE networking includes at least: a root node network device and a plurality of leaf node network devices, and the root node network device and the leaf node network device
  • the method of the present invention includes: establishing a working tunnel and a protection tunnel between the root node network device and the at least one leaf node network device, and connecting the root node network device and the leaf node network device
  • the pseudowire is carried on the working tunnel and the protection tunnel; when the packet enters the root node network device for forwarding, the root node network device learns the source MAC address of the packet, and sets the MAC address.
  • the method of the present invention is at the root node network device Establishing a working tunnel and a protection tunnel with the leaf node network device for the service at the same time in the working tunnel and the protection tunnel
  • the method of the present invention provides a forwarding step of the packet service.
  • the tunnel 1+1 protection is implemented.
  • FIG. 1 is a schematic diagram of a PTN network
  • FIG. 2 is a schematic diagram of a PTN network ETREE networking
  • FIG. 3 is a schematic flowchart of a method for implementing tunnel protection according to Embodiment 1 of the present invention
  • FIG. 5 is a schematic diagram of MAC address learning of device A according to Embodiment 2 of the present invention
  • FIG. 6 is a schematic diagram of implementing a tunnel according to Embodiment 3 of the present invention
  • FIG. 7 is a schematic structural diagram of a network device according to Embodiment 4 of the present invention.
  • Embodiment 1 provides a method for implementing tunnel protection. The method is applied to a PTN network ETREE network.
  • the ETREE network includes at least: a root node network device and a plurality of leaf node network devices. The root node network device and the leaf node network device perform a service connection through a pseudowire. As shown in FIG.
  • the protection method in this embodiment includes: Step 301: The root node network device and the at least one leaf node network device A working tunnel and a protection tunnel are established, and a pseudowire connecting the root node network device and the leaf node network device is carried on the working tunnel and the protection tunnel.
  • A, B, and C devices perform ETREE networking, A devices are ROOT nodes, and B and C devices are leaf nodes.
  • the A device is connected to the B device through the pseudowire 1 and the 1+1 protection of the tunnel 1, 2; the A device is connected to the C device through the pseudowire 2, and the pseudowire 2 is carried on the tunnel 3.
  • Step 302 When the packet enters the root node network device for forwarding, the root node network device learns the source MAC address of the packet, and sets the type of the MAC address.
  • the process of learning the source MAC address in this embodiment is to source the source MAC address in the packet.
  • Added to the MAC address table of the A device for example, the source MAC address of the packet that enters the A device from the B device through the pseudowire 1 is added to the MAC address table of the A device, and the next packet is forwarded.
  • the device can forward the packet to the B device by querying the destination MAC address in the MAC address table of the device and then matching the corresponding port information.
  • the setting of the type of the MAC address in the embodiment may include: setting the type of the MAC address of the packet when the packet enters the root node network device from the root node; in the E TREE networking shown in FIG.
  • the device learns the source MAC address of the packet and sets the MAC type. For example, the type of the MAC address is 0.
  • the packet passes through the pseudowire from the leaf node network device.
  • the type of the MAC address of the packet is set; preferentially, when the packet enters the root node network device from the leaf node network device through a pseudowire, the packet will enter through the different pseudowires.
  • the MAC address of the packet of the root node network device is set to a different type.
  • the A device learns the packet.
  • the source MAC address is set to 1 at the same time.
  • the A device learns the source MAC address of the packet and sets the MAC type identifier to 2.
  • the manner of setting the type of the MAC address in this embodiment includes: identifying the type of the MAC address, for example, setting the MAC type identifier to Q, 1, and 2.
  • the identification content may not be limited to numbers, but also other characters, such as a, b, c, and the like.
  • Step 303 Query the destination MAC address of the packet to obtain the type of the destination address, and forward the packet to the corresponding pseudo line according to the type of the destination MAC address.
  • the destination MAC address of the packet is first queried in the MAC address table.
  • the type of the destination MAC address can be obtained at the same time, and then according to the purpose.
  • the type of MAC address forwards the message to the corresponding pseudowire. For example, in the ETREE network shown in Figure 4, after the device obtains the destination MAC address type of the packet, the device can know that the packet needs to be forwarded to the pseudowire 1 according to the type of the MAC address. ), pseudowire 2 (sent only on tunnel 3), or both to pseudowire 1 and pseudowire 2. Tunnel 1 1 protection is implemented when the packet is forwarded to pseudowire 1 (the tunnels 1 and 2 require dual transmission).
  • Embodiment 2 The following describes the method for implementing tunnel protection in this embodiment in conjunction with the specific model of the ETREE network in the PTN network.
  • FIG. 4 is a schematic diagram of the 1+1 protection networking of the ETREE service overlay tunnel, and the A, B, and C devices in the figure are performed.
  • the A device is a ROOT node
  • the B and C devices are leaf nodes.
  • the pseudowire 1 is transmitted through the tunnel 1; the tunnel 1, the tunnel 2 forms the 1+1 protection of the tunnel; ⁇ the device determines the traffic of the tunnel 1 or the tunnel 2 according to the protocol status; A and C are connected by the pseudowire 2, and the pseudowire 2 is transmitted through the tunnel 3.
  • the tunnel 3 has no tunnel protection.
  • the following describes the specific process of forwarding the packet of the device A and the ROOT in this embodiment. As shown in FIG. 5, the process of performing MAC address learning by the A device in this embodiment includes:
  • the A device learns the source MAC address of the packet and sets the MAC type identifier to 2.
  • the destination MAC address of the packet is used to determine the forwarding of the packet.
  • the packet from the network side is forwarded on the A device in the same manner as the protocol.
  • the direct forwarding is performed by looking up the destination MAC address. (User side)
  • the incoming packets need to be forwarded through ACL.
  • the chip by accessing the ACL information matches the ROOT node (port VLAN Port +, + V lan stack port, etc.), perform an action, redirect packets to the tunnel dummy Line 1 + Tunnel 2 pseudowire 1 implements 1+1 tunnel protection for known unicasts to the B device.
  • the ROOT node port VLAN Port +, + V lan stack port, etc.
  • the chip by accessing the ACL information matches the ROOT node (port VLAN Port +, + V lan stack port, etc.), perform an action, the message to redirect the dummy tunnel 2 Line 2, which implements the forwarding of known unicasts to device C.
  • the ROOT node port VLAN Port +, + V lan stack port, etc.
  • Embodiment 3 This embodiment provides an apparatus for implementing tunnel protection, where the apparatus is applied to an ETREE network of a PTN network, where the ETREE networking includes at least: a root node network device and multiple leaf nodes.
  • the network device, the root node network device and the leaf node network device are connected by a pseudowire service; as shown in FIG. 6, the device in this embodiment includes: a tunnel establishment module, a MAC address processing module, and a packet forwarding module;
  • the establishing module is configured to establish a working tunnel and a protection tunnel between the root node network device and the at least one leaf node network device; the working tunnel and the protection tunnel bearer connecting the root node network device and the leaf node network device a pseudowire;
  • the MAC address processing module is configured to: when the packet enters the root node network device for forwarding, the root node network device learns a source MAC address of the packet, and sets a type of the MAC address;
  • the message forwarding module is configured to query the destination MAC address of the packet to obtain the type of the destination address.
  • the MAC address processing module in the embodiment is configured to: when the packet enters the root node network device from the root node, set the type of the MAC address of the packet; when the packet is from the leaf node network device When entering the root node network device through a pseudowire, set the type of the MAC address of the packet.
  • the MAC address processing module is configured to set a MAC address of a packet that enters the root node network device through different pseudowires when the packet enters the root node network device from the leaf node network device through a pseudowire.
  • the tunnel protection device in this embodiment can implement tunnel 1+1 protection under the PTN network ETREE networking.
  • Embodiment 4 provides a network device, which is applied to a PTN network ETREE network and serves as a root node.
  • the network device includes: a memory, one or more processors, and one or more Modules; the one or more modules are stored in the memory and configured to be executed by the one or more processors; the one or more modules comprising instructions arranged to perform the following steps: Performing a service connection between the root node network device and the leaf node network device; Establishing a working tunnel and a protection tunnel between the root node network device and the at least one leaf node network device; the working tunnel and the protection tunnel carrying a pseudowire connecting the root node network device and the leaf node network device When the packet enters the root node network device for forwarding, learn the source MAC address of the packet, and set the type of the MAC address; query the destination MAC address of the packet to obtain the type of the destination address, according to The type of the destination MAC address forwards the message to the corresponding pseudowire.
  • a network device includes: a memory and a processor; one or more software modules are stored in the memory and configured to be executed by the processor.
  • the network device in this embodiment may be an interaction machine, where the processor may be a processing chip of the interaction machine.
  • the step of setting the type of the MAC address includes: setting the MAC address of the packet when the packet enters the root node network device from the root node. The type of the address; when the packet enters the root node network device from the leaf node network device through the pseudowire, the type of the MAC address of the packet is set.
  • the step of setting the type of the MAC address of the packet includes: when the packet enters from the leaf node through the pseudowire.
  • the MAC addresses of the packets entering the root node network device through different pseudowires are set to different types.
  • the network device in this embodiment can support tunnel 1+1 protection under the ETREE networking.

Landscapes

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

Abstract

本发明公开了一种实现隧道保护的方法及装置、网络设备。本发明的方法应用于PTN网络ETREE组网中,ETREE组网至少包括一个根节点网络设备和多个叶子节点网络设备,根节点网络设备与叶子节点网络设备通过伪线进行业务连接;该方法包括:在根节点网络设备与至少一个叶子节点网络设备建立工作隧道和保护隧道,连接根节点网络设备与叶子节点网络设备的伪线承载在工作、保护隧道上;报文进入根节点网络设备进行转发时,根节点网络设备学习报文的源MAC地址,设置MAC地址的类型;查询报文的目的MAC地址获取目的MAC地址的类型,根据目的MAC地址的类型将报文转发到相应的伪线上;本发明的方法能够在PTN网络ETREE组网下实现隧道1+1保护。

Description

一种实现隧道保护的方法及装置、 网络设备 技术领域 本发明涉及通信技术领域,尤其涉及一种实现隧道保护的方法及装置、网络设备。 背景技术 PTN(Packet Transport Network,分组传送网)技术能够对分组业务提供高效的传送, 是一种能够提供电信级多业务承载包括以太网业务,传统的 TDM和 ATM等业务的综 合传送网技术。 PTN技术保留了传送网的功能需求, 同时也对满足高效分组业务的传 送增加了新的需求。 分组业务如以太网, VoIP, VPn, IPTV等业务的传送, 以及以数 据业务为主的移动回传给传送网络带来了新的需求和挑战。 传送网络分组化, 即分组 传送网渐渐成为一种趋势。 典型的 PTN组网如图 1所示。 网络保护是 PTN技术的核心内容之一, 目前实现保护的方法主要包括线性保护和 环网保护, 线性保护又包括隧道 1+1保护和隧道 1 : 1保护。
ETREE组网模型如图 2所示。 设备 A为根节点, 设备 B, C, D为叶子节点, 转 发的准则是通过 VFI (虚拟转发实例;) +目的 MAC地址查找出端口, 如果查找不到那就 在实例里面广播, 同时需要保证根节点可以和所有的叶子节点通信, 叶子节点之间不 能够通信。 但是在 ETREE组网模型下, 目前的 PTN交换设备目前不能够支持隧道的 1+1保 护功能。 发明内容 本发明要解决的主要技术问题是, 提供一种实现隧道保护的方法及装置、 网络设 备, 能够在 PTN 网络 ETREE组网下实现隧道 1+1保护。 为解决上述技术问题, 本发明提供一种实现隧道保护的方法, 该方法应用于 PTN 网络 ETREE组网中, 所述 ETREE组网至少包括: 一个根节点网络设备和多个叶子节 点网络设备, 所述根节点网络设备与叶子节点网络设备之间通过伪线进行业务连接; 所述方法包括如下步骤: 在所述根节点网络设备与至少一个叶子节点网络设备之间建 立工作隧道和保护隧道, 连接根节点网络设备与叶子节点网络设备的伪线承载在所述 工作隧道和所述保护隧道上; 当报文进入所述根节点网络设备进行转发时, 所述根节 点网络设备学习所述报文的源 MAC地址,并设置 MAC地址的类型;查询所述报文的 目的 MAC地址获取所述目的地址的类型,根据所述目的 MAC地址的类型将所述报文 转发到相应的伪线上。 其中, 所述当报文进入所述根节点网络设备进行转发时, 设置 MAC地址的类型 的步骤包括: 当报文从根节点进入所述根节点网络设备时, 设置所述报文的 MAC地 址的类型; 当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 设置所 述报文的 MAC地址的类型。 其中, 所述当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 设 置所述报文的 MAC地址的类型包括: 当报文从叶子节点网络设备通过伪线进入所述 根节点网络设备时, 将通过不同伪线进入所述根节点网络设备的报文的 MAC地址设 置为不同的类型。 其中, 所述设置 MAC地址的类型的方式包括: 标识 MAC地址的类型。 同样为了解决上述的技术问题, 本发明还提供了一种实现隧道保护的装置, 所述 装置应设置为 PTN 网络 ETREE组网中, 所述 ETREE组网至少包括: 一个根节点网 络设备和多个叶子节点网络设备, 所述根节点网络设备与叶子节点网络设备通过伪线 业务连接; 所述装置包括: 隧道建立模块、 MAC地址处理模块以及报文转发模块; 所述隧道建立模块设置为在所述根节点网络设备与至少一个叶子节点网络设备之间建 立工作隧道和保护隧道; 所述工作隧道和所述保护隧道承载连接所述根节点网络设备 与叶子节点网络设备的伪线; 所述 MAC地址处理模块设置为当报文进入所述根节点 网络设备进行转发时, 使所述根节点网络设备学习所述报文的源 MAC地址, 并设置 MAC地址的类型;所述报文转发模块设置为查询所述报文的目的 MAC地址获取所述 目的地址的类型, 根据所述目的 MAC地址的类型将所述报文转发到相应的伪线上。 其中, 所述 MAC地址处理模块设置为: 当报文从根节点进入所述根节点网络设 备时, 设置所述报文的 MAC地址的类型; 当报文从叶子节点网络设备通过伪线进入 所述根节点网络设备时, 设置所述报文的 MAC地址的类型。 其中, 所述 MAC地址处理模块设置为当报文从叶子节点网络设备通过伪线进入 所述根节点网络设备时, 将通过不同伪线进入所述根节点网络设备的报文的 MAC地 址设置为不同的类型。 同样为了解决上述的技术问题, 本发明还提供了一种网络设备, 应用于 PTN 网 络 ETREE组网下, 并作为根节点, 所述网络设备包括: 存储器、 一个或多个处理器 以及一个或多个模块; 所述一个或多个模块被存储在所述存储器中并被配置成由所述 一个或多个处理器执行; 所述一个或多个模块包括设置为执行以下步骤的指令: 通过 伪线进行所述根节点网络设备与叶子节点网络设备之间的业务连接; 在所述根节点网 络设备与至少一个叶子节点网络设备之间建立工作隧道和保护隧道; 所述工作隧道和 所述保护隧道承载连接所述根节点网络设备与所述叶子节点网络设备的伪线; 当报文 进入所述根节点网络设备进行转发时, 学习所述报文的源 MAC 地址, 并设置 MAC 地址的类型; 查询所述报文的目的 MAC地址获取所述目的地址的类型, 根据所述目 的 MAC地址的类型将所述报文转发到相应的伪线上。 其中, 所述当报文进入所述根节点网络设备进行转发时, 设置 MAC地址的类型 的步骤包括: 当报文从根节点进入所述根节点网络设备时, 设置所述报文的 MAC地 址的类型; 当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 设置所 述报文的 MAC地址的类型。 其中, 所述当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 设 置所述报文的 MAC地址的类型的步骤包括: 当报文从叶子节点网络设备通过伪线进 入所述根节点网络设备时, 将通过不同伪线进入所述根节点网络设备的报文的 MAC 地址设置为不同的类型。 本发明的有益效果是: 本发明提供了一种实现隧道保护的方法及装置、网络设备, 可以在 PTN 网络 ETREE组网下实现隧道 1+1保护。 本发明的实现隧道保护的方法, 应用于 PTN 网络 ETREE组网中, 所述 ETREE组网至少包括: 一个根节点网络设备 和多个叶子节点网络设备, 所述根节点网络设备与叶子节点网络设备之间通过伪线进 行业务连接; 本发明的方法具体包括: 在所述根节点网络设备与至少一个叶子节点网 络设备之间建立工作隧道和保护隧道, 连接根节点网络设备与叶子节点网络设备的伪 线承载在所述工作隧道和所述保护隧道上; 当报文进入所述根节点网络设备进行转发 时, 所述根节点网络设备学习所述报文的源 MAC地址, 并设置 MAC地址的类型; 查 询所述报文的目的 MAC地址获取所述目的 MAC地址的类型,根据所述目的 MAC地 址的类型将所述报文转发到相应的伪线上; 本发明的方法在根节点网络设备与叶子节 点网络设备建立了工作隧道和保护隧道, 供业务同时在工作隧道和保护隧道上发送, 同时本发明的方法提供了报文业务的转发步骤, 当根节点将报文发送至工作隧道和保 护隧道承载的伪线上, 即实现了隧道 1+1保护; 本发明的方法与现有技术相比, 解决 了目前 PTN网络 ETREE业务无法实现隧道 1+1保护的限制,丰富了 PTN网络的组网。 附图说明 图 1为 PTN网络典型示意图; 图 2为 PTN网络 ETREE组网示意图; 图 3为本发明实施例一提供的一种实现隧道保护的方法的流程示意图; 图 4为本发明实施例一提供的一种 ETREE业务叠加隧道 1+1保护组网示意图; 图 5为本发明实施例二提供的一种设备 A 的 MAC地址学习示意图; 图 6为本发明实施例三提供的一种实现隧道保护的装置的结构示意图; 图 7为本发明实施例四提供的一种网络设备的结构示意图。 具体实施方式 下面通过具体实施方式结合附图对本发明作进一步详细说明。 实施例一: 本实施例提供了一种实现隧道保护的方法,该方法应用 PTN 网络 ETREE组网中, 所述 ETREE组网至少包括: 一个根节点网络设备和多个叶子节点网络设备, 所述根 节点网络设备与叶子节点网络设备之间通过伪线进行业务连接; 如图 3所示, 本实施 例的保护方法包括: 步骤 301 : 在所述根节点网络设备与至少一个叶子节点网络设备之间建立工作隧 道和保护隧道, 连接根节点网络设备与叶子节点网络设备的伪线承载在所述工作隧道 和所述保护隧道上。 例如, 如图 4所示, A, B,C 3台设备进行 ETREE组网, A设备是 ROOT节点, B, C设备是叶子节点。 A设备通过伪线 1和 B设备相连, 同时实现隧道 1,2的 1+1 保护; A设备通过伪线 2和 C设备相连, 伪线 2承载在隧道 3上面。 步骤 302: 当报文进入所述根节点网络设备进行转发时, 所述根节点网络设备学 习所述报文的源 MAC地址, 并设置 MAC地址的类型。 报文进入 A设备时, 如果需要学习源 MAC地址, 那么在学习 MAC地址的同时, 设置 MAC地址的类型。本实施例中学习源 MAC地址的过程为将报文中源 MAC地址 添加到 A设备的 MAC地址表中,例如将从 B设备通过伪线 1进入 A设备的报文中源 MAC地址添加到 A设备的 MAC地址表中, 当下一次转发其他报文, 当报文的目的 MAC地址为 B设备时,此时就可以在 A设备的 MAC地址表中查询出目的 MAC地址 然后配对应的端口信息即可将报文转发给 B设备。 本实施例中设置 M A C地址的类型可以包括: 当报文从根节点进入所述根节点网络设备时, 设置所述报文的 MAC地址的类型; 在如图 4所示 E TREE组网中, 当报文从 A设备的 r o o t节点进入 A设备的时候, 设备学习报文的源 M A C, 同时设置 M A C类型,例如将 M A C地址的类型标识为 0; 当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 设置所述报文 的 MAC地址的类型; 优先地, 当报文从叶子节点网络设备通过伪线进入所述根节点 网络设备时, 将通过不同伪线进入所述根节点网络设备的报文的 MAC地址设置为不 同的类型; 在如图 4所示的 ETREE组网中, 当报文从 B设备通过伪线 1进入 A设备 的时候, A设备学习报文的源 MAC, 同时设置 MAC类型标识为 1 ; 当报文从 C设备 通过伪线 2进入 A设备的时候, A设备学习报文的源 MAC, 同时设置 MAC类型标识 为 2。 优选地, 本实施例中设置 MAC地址的类型的方式包括: 标识 MAC地址的类型, 例如上述设置 MAC类型标识为 Q、 1 、 2。 当然标识内容可以不仅限与数字, 也可 以为其他字符, 例如 a、 b、 c等。 步骤 303 : 查询所述报文的目的 MAC地址获取所述目的地址的类型,根据所述目 的 MAC地址的类型将所述报文转发到相应的伪线上。 本实施例中转发报文时, 首先在 M A C地址表中查询报文的目的 M A C地址, 由 于在上述步骤 4 0 2中设置了 M A C地址的类型, 可以同时得到目的 M A C地址的类 型, 然后根据目的 M A C地址的类型将所述报文转发到相应的伪线上。 例如在如图 4 所示的 ETREE组网中, A设备获取报文的目的 M A C地址类型后, 根据 M A C地址 的类型可以得知报文是需要转发到伪线 1 (隧道 1,2需要双发), 伪线 2 (只在隧道 3 上面发送), 还是同时广播到伪线 1和伪线 2。 当将报文转发伪线 1 (隧道 1,2需要双 发) 时即实现了隧道 1十 1保护。
实施例二: 下面结合 PTN 网络中 ETREE组网具体的模型来说明本实施例实现隧道保护的方 法; 参考图 4, 为 ETREE业务叠加隧道 1+1保护组网示意图, 图中 A, B,C 3台设备 进行 ETREE组网, A设备是 ROOT节点, B, C设备是叶子节点。 Α,Β之间通过伪线 1进行业务连接, 伪线 1通过隧道 1传输; 隧道 1, 隧道 2形成隧道的 1+1保护; Β 设备根据协议状态决定选收隧道 1或者隧道 2的流量; A, C之间通过伪线 2进行业 务连接, 伪线 2通过隧道 3传输, 隧道 3没有隧道保护; 下面介绍本实施例中设备 A, ROOT节点报文转发具体流程。 如图 5所示, 本实施例中 A设备进行 MAC地址学习的过程包括:
1: 当报文从 A设备的 r 0 0 t节点进入 A设备的时候, A设备学习报文的源 M A C, 同时设置 M A C类型标识为 0。
2: 当报文从 B设备通过伪线 1进入 A设备的时候, A设备学习报文的源 MAC, 同时设置 MAC类型标识为 1。
3: 当报文从 C设备通过伪线 2进入 A设备的时候, A设备学习报文的源 MAC, 同时设置 MAC类型标识为 2。 4:在 A设备上面需要通过报文的目的 MAC决定报文的转发, 从网络侧过来的报 文转发在 A设备上面和协议规定的流程一样, 直接通过查找目的 MAC进行转发, 当 从 ROOT节点 (用户侧) 进来的报文需要通过 ACL来实现转发。
A:当目的 MAC的类型标识为 1的时候,芯片的 ACL通过匹配 ROOT节点的接入 信息(端口, 端口 +vlan, 端口 +Vlan堆叠等), 执行动作, 重定向报文到隧道 1伪线 1+ 隧道 2伪线 1, 实现去往 B设备的已知单播的 1+1隧道保护。
B:当目的 MAC的类型标识为 2的时候,芯片的 ACL通过匹配 ROOT节点的接入 信息(端口, 端口 +vlan, 端口 +Vlan堆叠等), 执行动作, 重定向报文到隧道 2伪线 2, 实现去往设备 C的已知单播的转发。
C:当目的 MAC的类型标识为 0的时候,芯片的 ACL通过匹配 ROOT节点的接入 信息(端口, 端口 +Vlan, 端口 +Vlan堆叠等), 执行动作, 重定向报文到隧道 1伪线 1+ 隧道 2伪线 1+隧道 3伪线 2, 实现去往 B设备的未知单播的 1+1隧道保护, 同时实现 去往 C设备的未知单播转发。 实施例三 本实施例提供了一种实现隧道保护的装置, 所述装置应用于 PTN 网络 ETREE组 网中, 其特征在于, 所述 ETREE组网至少包括: 一个根节点网络设备和多个叶子节 点网络设备, 所述根节点网络设备与叶子节点网络设备通过伪线业务连接; 如图 6所 示, 本实施例的装置包括: 隧道建立模块、 MAC地址处理模块以及报文转发模块; 所述隧道建立模块设置为在所述根节点网络设备与至少一个叶子节点网络设备之 间建立工作隧道和保护隧道; 所述工作隧道和所述保护隧道承载连接所述根节点网络 设备与叶子节点网络设备的伪线; 所述 MAC地址处理模块设置为当报文进入所述根节点网络设备进行转发时, 使 所述根节点网络设备学习所述报文的源 MAC地址, 并设置 MAC地址的类型; 所述报文转发模块设置为查询所述报文的目的 MAC地址获取所述目的地址的类 型, 根据所述目的 MAC地址的类型将所述报文转发到相应的伪线上。 优先地, 本实施例中所述 MAC地址处理模块设置为: 当报文从根节点进入所述 根节点网络设备时, 设置所述报文的 MAC地址的类型; 当报文从叶子节点网络设备 通过伪线进入所述根节点网络设备时, 设置所述报文的 MAC地址的类型。 优先地, 所述 MAC地址处理模块设置为当报文从叶子节点网络设备通过伪线进 入所述根节点网络设备时, 将通过不同伪线进入所述根节点网络设备的报文的 MAC 地址设置为不同的类型。 本实施例的实现隧道保护装置可以在 PTN 网络 ETREE组网下实现隧道 1+1保 护。
实施例四: 本实施例提供了一种网络设备,应用于 PTN 网络 ETREE组网下,并作为根节点, 其特征在于, 所述网络设备包括: 存储器、 一个或多个处理器以及一个或多个模块; 所述一个或多个模块被存储在所述存储器中并被配置成由所述一个或多个处理器执 行; 所述一个或多个模块包括设置为执行以下步骤的指令: 通过伪线进行所述根节点网络设备与叶子节点网络设备之间的业务连接; 在所述根节点网络设备与至少一个叶子节点网络设备之间建立工作隧道和保护隧 道; 所述工作隧道和所述保护隧道承载连接所述根节点网络设备与所述叶子节点网络 设备的伪线; 当报文进入所述根节点网络设备进行转发时, 学习所述报文的源 MAC地址, 并 设置 MAC地址的类型; 查询所述报文的目的 MAC 地址获取所述目的地址的类型, 根据所述目的 MAC 地址的类型将所述报文转发到相应的伪线上。 如图 7所示, 网络设备包括: 一个存储器和一个处理器; 一个或者多个软件模块 被存储在所述存储器中并配置成由该处理器执行。 本实施例的网络设备可以为交互机, 其中处理器可以为交互机的处理芯片。 优先地, 所述当报文进入所述根节点网络设备进行转发时, 设置 MAC地址的类 型的步骤包括: 当报文从根节点进入所述根节点网络设备时, 设置所述报文的 MAC地址的类型; 当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 设置所述报文 的 MAC地址的类型。 优先地, 所述当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 设置所述报文的 MAC地址的类型的步骤包括: 当报文从叶子节点通过伪线进入所述根节点网络设备时, 将通过不同伪线进入所 述根节点网络设备的报文的 MAC地址设置为不同的类型。 本实施例的网络设备可以在 ETREE组网下支持隧道 1+1保护。 以上内容是结合具体的实施方式对本发明所作的进一步详细说明, 不能认定本发 明的具体实施只局限于这些说明。 对于本发明所属技术领域的普通技术人员来说, 在 不脱离本发明构思的前提下, 还可以做出若干简单推演或替换, 都应当视为属于本发 明的保护范围。 工业实用性 如上所述, 通过本发明实施例及优选实施方式, 能够在 PTN 网络 ETREE组网下 实现隧道 1+1保护。

Claims

权 利 要 求 书
1. 一种实现隧道保护的方法, 该方法应用于 PTN 网络 ETREE组网中,
所述 ETREE组网至少包括: 一个根节点网络设备和多个叶子节点网络设 备, 所述根节点网络设备与叶子节点网络设备之间通过伪线进行业务连接; 所述方法包括如下步骤: 在所述根节点网络设备与至少一个叶子节点网络设备之间建立工作隧道和 保护隧道, 连接根节点网络设备与叶子节点网络设备的伪线承载在所述工作隧 道和所述保护隧道上; 当报文进入所述根节点网络设备进行转发时, 所述根节点网络设备学习所 述报文的源 MAC地址, 并设置 MAC地址的类型; 查询所述报文的目的 MAC地址获取所述目的地址的类型, 根据所述目的 MAC地址的类型将所述报文转发到相应的伪线上。
2. 如权利要求 1所述的实现隧道保护的方法, 其中, 所述当报文进入所述根节点 网络设备进行转发时, 设置 MAC地址的类型的步骤包括: 当报文从根节点进入所述根节点网络设备时, 设置所述报文的 MAC地址 的类型;
当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 设置所 述报文的 MAC地址的类型。
3. 如权利要求 2所述的实现隧道保护的方法, 其中, 所述当报文从叶子节点网络 设备通过伪线进入所述根节点网络设备时, 设置所述报文的 MAC地址的类型 包括: 当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 将通过 不同伪线进入所述根节点网络设备的报文的 MAC地址设置为不同的类型。
4. 如权利 1-3 任一项所述的实现隧道保护的方法, 其特征在于, 所述设置 MAC 地址的类型的方式包括: 标识 MAC地址的类型。
5. 一种实现隧道保护的装置, 所述装置应用于 PTN 网络 ETREE组网中, 所述 ETREE组网至少包括: 一个根节点网络设备和多个叶子节点网络设备, 所述根 节点网络设备与叶子节点网络设备通过伪线业务连接; 所述装置包括: 隧道建 立模块、 MAC地址处理模块以及报文转发模块; 所述隧道建立模块设置为在所述根节点网络设备与至少一个叶子节点网络 设备之间建立工作隧道和保护隧道; 所述工作隧道和所述保护隧道承载连接所 述根节点网络设备与叶子节点网络设备的伪线;
所述 MAC地址处理模块设置为当报文进入所述根节点网络设备进行转发 时, 使所述根节点网络设备学习所述报文的源 MAC地址, 并设置 MAC地址 的类型;
所述报文转发模块设置为查询所述报文的目的 MAC地址获取所述目的地 址的类型, 根据所述目的 MAC地址的类型将所述报文转发到相应的伪线上。
6. 如权利要求 5所述的实现隧道保护的装置, 其中, 所述 MAC地址处理模块设 置为:
当报文从根节点进入所述根节点网络设备时, 设置所述报文的 MAC地址 的类型;
当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 设置所 述报文的 MAC地址的类型。
7. 如权利要求 6所述的实现隧道保护的装置, 其中, 所述 MAC地址处理模块设 置为当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 将通过 不同伪线进入所述根节点网络设备的报文的 MAC地址设置为不同的类型。
8. —种网络设备, 应用于 PTN 网络 ETREE组网下, 并作为根节点, 其中, 所述 网络设备包括: 存储器、 一个或多个处理器以及一个或多个模块; 所述一个或 多个模块被存储在所述存储器中并被配置成由所述一个或多个处理器执行; 所 述一个或多个模块包括设置为执行以下步骤的指令:
通过伪线进行所述根节点网络设备与叶子节点网络设备之间的业务连接; 在所述根节点网络设备与至少一个叶子节点网络设备之间建立工作隧道和 保护隧道; 所述工作隧道和所述保护隧道承载连接所述根节点网络设备与所述 叶子节点网络设备的伪线;
当报文进入所述根节点网络设备进行转发时, 学习所述报文的源 MAC地 址, 并设置 MAC地址的类型; 查询所述报文的目的 MAC地址获取所述目的地址的类型, 根据所述目的 MAC地址的类型将所述报文转发到相应的伪线上。 如权利要求 8所述的网络设备, 其中, 所述当报文进入所述根节点网络设备进 行转发时, 设置 MAC地址的类型的步骤包括: 当报文从根节点进入所述根节点网络设备时, 设置所述报文的 MAC地址 的类型;
当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 设置所 述报文的 MAC地址的类型。 如权利要求 9所述的网络设备, 其中, 所述当报文从叶子节点网络设备通过伪 线进入所述根节点网络设备时,设置所述报文的 MAC地址的类型的步骤包括: 当报文从叶子节点网络设备通过伪线进入所述根节点网络设备时, 将通过 不同伪线进入所述根节点网络设备的报文的 MAC地址设置为不同的类型。
PCT/CN2014/080149 2013-12-06 2014-06-17 一种实现隧道保护的方法及装置、网络设备 WO2015081684A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310656296.8A CN104702477B (zh) 2013-12-06 2013-12-06 一种实现隧道保护的方法及装置、网络设备
CN201310656296.8 2013-12-06

Publications (1)

Publication Number Publication Date
WO2015081684A1 true WO2015081684A1 (zh) 2015-06-11

Family

ID=53272817

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/080149 WO2015081684A1 (zh) 2013-12-06 2014-06-17 一种实现隧道保护的方法及装置、网络设备

Country Status (2)

Country Link
CN (1) CN104702477B (zh)
WO (1) WO2015081684A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319729A (zh) * 2018-03-19 2018-07-24 深圳市中科新业信息科技发展有限公司 一种手机型号计算方法及手机型号查询方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070746B (zh) * 2021-10-28 2024-01-05 北京市天元网络技术股份有限公司 一种用于多类型传输网络的电路串接方法及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094187A (zh) * 2007-07-30 2007-12-26 杭州华三通信技术有限公司 一种学习介质访问控制地址的方法和装置、业务板
CN101719877A (zh) * 2010-01-15 2010-06-02 福建星网锐捷网络有限公司 一种报文转发装置、网络设备及方法
CN102546352A (zh) * 2010-12-08 2012-07-04 中兴通讯股份有限公司 一种实现点到多点标签交换路径保护的方法及系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155130B (zh) * 2006-09-30 2011-07-06 华为技术有限公司 学习mac地址的方法及传送vpls客户数据的系统及设备
CN101697547B (zh) * 2009-09-30 2012-09-26 中兴通讯股份有限公司 一种pw业务的二层转发方法及系统
CN102299939A (zh) * 2010-06-24 2011-12-28 中兴通讯股份有限公司 一种点到多点业务流的传送方法及系统
CN101977077B (zh) * 2010-10-12 2015-01-28 中兴通讯股份有限公司 一种1+1保护方法及故障检测装置
CN102164085B (zh) * 2011-04-22 2015-08-12 中兴通讯股份有限公司 基于多协议标签交换网络的隧道组保护实现方法及装置
KR20130055392A (ko) * 2011-11-18 2013-05-28 한국전자통신연구원 점 대 다점 네트워크에서의 보호 절체 방법 및 장치

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094187A (zh) * 2007-07-30 2007-12-26 杭州华三通信技术有限公司 一种学习介质访问控制地址的方法和装置、业务板
CN101719877A (zh) * 2010-01-15 2010-06-02 福建星网锐捷网络有限公司 一种报文转发装置、网络设备及方法
CN102546352A (zh) * 2010-12-08 2012-07-04 中兴通讯股份有限公司 一种实现点到多点标签交换路径保护的方法及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319729A (zh) * 2018-03-19 2018-07-24 深圳市中科新业信息科技发展有限公司 一种手机型号计算方法及手机型号查询方法

Also Published As

Publication number Publication date
CN104702477B (zh) 2019-04-05
CN104702477A (zh) 2015-06-10

Similar Documents

Publication Publication Date Title
US8537816B2 (en) Multicast VPN support for IP-VPN lite
WO2009021458A1 (fr) Procédé, appareil et système de connexion d'un réseau de couche 2 à un réseau de couche 3
EP2634975A1 (en) Method and device for sending message
EP1737164A1 (en) A method for realizing multicasting in a virtual private network using a virtual router
WO2012167697A1 (zh) 抑制网络风暴的方法及处理器
WO2014121460A1 (zh) 一种网络虚拟化的数据传输的方法、设备和路由系统
WO2011113340A1 (zh) 一种多协议标签交换二层虚拟专用网的接入方法和装置
WO2011103764A1 (zh) 一种以太树业务中以太网帧的发送方法和运营商边缘设备
WO2008017270A1 (fr) Procédé, dispositif et système ethernet supportant un acheminement multidiffusion à source spécifique
WO2008092357A1 (fr) Procédé et dispositif pour établir un tunnel pseudocâblé et transmettre un message à l'aide de celui-ci
WO2014194711A1 (zh) 报文处理方法、设备标签处理方法及设备
WO2014194749A1 (zh) 边缘设备的vpn实现处理方法及装置
WO2011095008A1 (zh) 提高虚拟专用局域网业务网络转发效率的方法和系统
WO2018214809A1 (zh) 消息发送方法及装置、存储介质
WO2010075771A1 (zh) 一种组播虚拟私有网络的外联网组网方法、系统和装置
WO2011047598A1 (zh) 网络通信方法和网络节点设备
WO2013071866A1 (zh) 一种传递主机名的方法和装置
WO2013026384A1 (zh) 业务数据传输的方法、网络节点及系统
WO2007143952A1 (fr) Procédé d'accès à un réseau privé virtuel, système privé virtuel, réseau privé virtuel et équipement de bordure du fournisseur
WO2013139159A1 (zh) 在网络中转发报文的方法和运营商边缘设备
WO2011160517A1 (zh) 一种多协议标签交换业务隧道切换的方法及系统
WO2018014767A1 (zh) 一种信息确定方法、装置及存储介质
WO2013139270A1 (zh) 实现三层虚拟专用网络的方法、设备及系统
WO2011063678A1 (zh) 虚拟局域网堆叠接入虚拟专用线路业务的实现方法及装置
WO2012095040A2 (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: 14867482

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14867482

Country of ref document: EP

Kind code of ref document: A1