[go: up one dir, main page]

WO2012068907A1 - Method and device for determining forwarding path in pw dual homing protection environment - Google Patents

Method and device for determining forwarding path in pw dual homing protection environment Download PDF

Info

Publication number
WO2012068907A1
WO2012068907A1 PCT/CN2011/078429 CN2011078429W WO2012068907A1 WO 2012068907 A1 WO2012068907 A1 WO 2012068907A1 CN 2011078429 W CN2011078429 W CN 2011078429W WO 2012068907 A1 WO2012068907 A1 WO 2012068907A1
Authority
WO
WIPO (PCT)
Prior art keywords
forwarding
index
path
dual
homing protection
Prior art date
Application number
PCT/CN2011/078429
Other languages
French (fr)
Chinese (zh)
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 WO2012068907A1 publication Critical patent/WO2012068907A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • 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 present invention relates to the field of network communication technologies, and in particular, to a method and apparatus for determining a forwarding path in a PW (Pseudo Wire) dual-homing protection scenario.
  • PW Pulseudo Wire
  • the packet coming in from the ingress receives the corresponding MAC entry based on the MAC address of the packet.
  • the packet is forwarded according to the PW forwarding path in the MAC entry. If the PW dual-homing protection occurs, the MAC address entry corresponding to the MAC address of the PW path is updated, and the default PW forwarding path in the MAC entry is updated to the standby PW forwarding path.
  • a PW dual-homing protection may have multiple MAC data flows, and multiple MAC tables are saved on the device. As shown in Figure 1, two MAC flows enter the device from the primary PW path. , the device will learn 2 MACs, which correspond to the main PW exit, two MACs As shown in Table 2 and Table 3, respectively
  • a protection path corresponds to a large number of MACs
  • the protection path is switched between the dual-homed protection paths, after the traffic comes in from the new path, a large number of MAC updates are triggered, and the performance of the CPU is certain. Impact impact.
  • the invention provides a method and a device for determining a forwarding path in a PW dual-homing protection scenario, which are used to solve the problem that a dual-homed protection path of a protection path occurs in the prior art, which will trigger a large number of
  • the MAC update has an impact on the performance of the CPU.
  • a method for determining a forwarding path in a PW dual-homing protection scenario includes: when a forwarding device receives a packet, obtaining a MAC address of the packet, and obtaining the obtained
  • the PW forwarding path is obtained from the PW forwarding table by using the index of the obtained valid path.
  • the method also includes:
  • the primary PW index is obtained, and the primary PW forwarding path is obtained from the PW forwarding table by using the primary PW index.
  • the method also includes:
  • the forwarding device When the forwarding device receives the packet from the primary PW path, if the PW dual-homed protection switching occurs, the dual-homing protection flag in the path index table is set to the dual-homed protection switching state, and the PW forwarding table includes the primary The primary PW forwarding table corresponding to the PW index and the standby PW forwarding table corresponding to the standby PW index;
  • the PW forwarding path is obtained from the PW forwarding table by using the obtained index of the valid path, including:
  • the PW forwarding path is obtained from the corresponding primary PW forwarding table or the standby PW forwarding table according to the obtained primary PW index or the standby PW index.
  • the process of obtaining the forwarding path index and the dual-homing protection flag corresponding to the obtained MAC address includes:
  • An apparatus for determining a forwarding path in a PW dual-homing protection scenario includes: a forwarding scenario determining module, configured to: when receiving a packet, obtain a MAC address of the packet, and obtain the obtained MAC address corresponding to the MAC address Forwarding path index and dual-homing protection tag; the same PW forwarding path corresponds to the same forwarding path index;
  • An effective path determining module configured to determine, according to the dual-homing protection flag, whether a PW dual-homing protection switch occurs on the egress PW, and if yes, determine a currently valid path by using a PW dual-homing protection table, and according to the obtained forwarding path index
  • the PW dual-homing protection table obtains an index of the valid path.
  • the forwarding module is configured to obtain the PW forwarding path from the PW forwarding table by using the obtained index of the valid path.
  • the primary PW index is obtained, and the primary PW forwarding path is obtained from the PW forwarding table by using the primary PW index.
  • the device also includes:
  • a forwarding path index table maintenance module configured to: when a packet entering from the primary PW path is received, if a PW dual-homing protection switch occurs, setting the dual-homing protection flag in the path index table to the PW forwarding table includes When the primary PW forwarding table corresponding to the primary PW index and the standby PW forwarding table corresponding to the standby PW index, the forwarding module uses the index of the obtained valid path from the PW When the PW forwarding path is obtained in the forwarding table, it is used to:
  • the PW forwarding path is obtained from the corresponding primary PW forwarding table or the standby PW forwarding table according to the obtained primary PW index or the standby PW index.
  • the forwarding scenario determining module is configured to: when obtaining the obtained forwarding path index and the dual-homing protection flag corresponding to the MAC address:
  • the MAC table is separated from the PW, and the PW dual-protection table is further arranged between the MAC table and the PW forwarding entry.
  • the PW dual-homing protection switchover occurs, only the PW dual-homing protection table needs to be switched, and the original unicast traffic can be directly forwarded to the effective PW path. The entire process will not require a MAC update, effectively protecting CPU performance from this switch.
  • FIG. 1 is a PW dual-homing protection scenario under VPLS in the prior art
  • FIG. 2 is a flowchart of a method for determining a forwarding path in a PW dual-homing protection scenario according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of an apparatus for determining a forwarding path in a PW dual-homing protection scenario according to an embodiment of the present invention. detailed description
  • An embodiment of the present invention provides a method for determining a forwarding path in a PW dual-homing protection scenario, where the method includes: when a forwarding device receives a packet coming in from an ingress, obtains a source MAC address of the packet, and obtains the obtained MAC address.
  • the address is matched with the MAC address in the forwarding path index table, and the forwarding path index and the dual-homing protection flag corresponding to the source MAC address are obtained, and the same PW forwarding path corresponds to the same forwarding path index;
  • Export PW is Whether the PW dual-homed protection switchover occurs, if yes, the PW dual-homing protection table is used to determine the currently valid path, and the index of the valid path is obtained from the PW dual-homing protection table according to the obtained forwarding path index; The index gets the PW forwarding path from the PW forwarding table.
  • the embodiment of the present invention provides a method for determining a forwarding path in a PW dual-homing protection scenario, which specifically includes the following steps:
  • Step 201 When the forwarding device receives the packet coming in from the ingress, obtain the MAC address of the packet, and match the obtained MAC address with the MAC address in the forwarding path index table (as shown in Table 6). Obtaining a forwarding path index and a dual-homing protection flag corresponding to the MAC address, where the same PW forwarding path corresponds to the same forwarding path index;
  • one of the main contents of the forwarding path index table is a forwarding index (transmit index), and in a dual-homing protection or a normal scenario, the transmit index is always allocated in a resource pool, and the forwarding path is guaranteed not to be cover.
  • Step 202 Determine, according to the dual-homing protection flag, whether a PW dual-homing protection switch occurs on the egress PW, and if yes, determine a currently valid path by using a PW dual-homing protection table (as shown in Table 7), and according to the obtained forwarding
  • the path index obtains the index of the valid path from the PW dual-homing protection table (as shown in Table 8), and proceeds to step 203; otherwise, proceeds to step 204. Transmit index main main PW index PW index
  • the primary PW index and the standby PW index respectively correspond to one PW dual-homing protection table.
  • the PW dual-homing protection table is used to determine that the currently valid path is the primary PW forwarding path
  • the PW forwarding path is obtained through the PW dual-homing protection table corresponding to the primary PW path.
  • Step 203 Obtain a PW forwarding path from the PW forwarding table (as shown in Table 8) by using the obtained index of the valid path.
  • Step 204 If it is determined that the egress PW is normal according to the dual-homing protection flag, obtain a primary PW index; and obtain a primary PW forwarding path from the PW forwarding table by using a primary PW index.
  • the PW forwarding table obtains the PW forwarding path from the PW forwarding table by using the obtained index of the valid path, including:
  • the PW forwarding path is obtained from the corresponding primary PW forwarding table or the standby PW forwarding table according to the obtained primary PW index or the standby PW index.
  • the forwarding device When the forwarding device receives the packet entering from the primary PW path, if the PW dual-homing protection switching occurs, the dual-homing protection flag in the path index table is set to the dual-homed protection switching state, and if the data The flow is switched to the slave PW path.
  • the forwarding layer finds that the MAC already exists, and the MAC table results in the PW dual-homed protection flag.
  • the transmit index is the corresponding PW. Dual-homed protection index, no need to initiate PW update.
  • the protection index PW FRR index1 corresponds to the primary PW1 and the standby PW2.
  • the PW1 index is PW index1
  • the PW2 index is PW index2.
  • the device will create a PW dual-homing protection table (as shown in Table 9) and a PW forwarding table (as shown in Table 10).
  • the PW forwarding table includes the forwarding table of the primary PW path and the standby PW path (as shown in Tables 10 and 11). ).
  • the table 10 is directly queried to obtain the PW export information.
  • the current PW forwarding path is the standby PW path. Then, query the table 11 to obtain the PW export information.
  • the data forwarding path is implemented by using the method provided by the embodiment of the present invention.
  • the reverse forwarding process for path selection including:
  • the device learns two MACs (as shown in Table 12 and Table 13), which correspond to the PW dual-homed protection path index, and the transmit index corresponds to PW FRR index 1. .
  • the forwarding layer finds that the MAC already exists, and the MAC table results in the PW dual-homing protection flag, and the transmit index is the corresponding PW dual-homing protection index PW FRR index1, so there is no need to initiate the MAC table update. .
  • a specific implementation manner of performing forward forwarding of a data flow by using the method provided by the embodiment of the present invention may be:
  • an embodiment of the present invention further provides an apparatus for determining a forwarding path in a PW dual-homing protection scenario, including:
  • the forwarding scenario determining module 301 is configured to: when receiving the packet coming in from the portal, obtain the MAC address of the packet, and match the obtained MAC address with the MAC address in the forwarding path index table to obtain the obtained MAC address.
  • the forwarding path index and the dual-homing protection flag corresponding to the MAC address, and the same PW forwarding path corresponds to the same forwarding path index;
  • the valid path determining module 302 is configured to determine, according to the dual-homing protection flag, whether the exit PW is The PW dual-homing protection switchover occurs. If yes, the PW dual-homing protection table is used to determine the currently valid path, and the index of the valid path is obtained from the PW dual-homing protection table according to the obtained forwarding path index.
  • the effective path determining module 302 provided by the device of the present invention is further configured to: if the PW dual-homed protection switching does not occur in the egress PW according to the dual-homing protection flag, obtain the primary PW index.
  • the primary PW forwarding path is obtained from the PW forwarding table using the primary PW index.
  • the forwarding module 303 is configured to obtain a PW forwarding path from the PW forwarding table by using an index of the obtained valid path.
  • the forwarding module 303 is further configured to: when the PW forwarding table includes a primary PW forwarding table corresponding to the primary PW index and a standby PW forwarding table corresponding to the standby PW index, according to the obtained primary PW index or otherwise, the forwarding device learns The MAC address, the apparatus provided by the embodiment of the present invention further includes:
  • the forwarding path index table maintenance module 304 is configured to: when receiving the packet entering from the primary PW path, if the PW dual-homing protection switching occurs, setting the dual-homing protection flag in the path index table to dual-homing protection switching Status, and save the PW dual-homed protection index corresponding to the packet MAC address.
  • the MAC table is separated from the PW forwarding table, it is associated with the PW dual-homing protection. A large number of MACs only need to write the same PW dual-homed protection index as long as the egress is the same PW dual-homed protection path. When the PW dual-homing switchover occurs, you only need to modify the active/standby state in the PW dual-homing protection table to improve the switching performance.
  • the MAC address is separated from the PW forwarding table and is associated with the PW dual-homing protection. No matter whether the packet enters the forwarding device from the primary PW or the forwarding device from the standby PW, the packet is dual-homed. Updated to reduce the impact pressure on the CPU.
  • the other embodiments of the invention are obtained according to the technical solution of the invention, which are also within the scope of the technical innovation of the invention.

Landscapes

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

Abstract

Disclosed are a method and a device for determining a forwarding path in a PW dual homing protection environment, which belong to the field of network communication technologies. When a forwarding apparatus receives a message, an MAC address of the message is obtained, and a forwarding path index and a dual homing protection mark corresponding to the MAC address are obtained; according to the dual homing protection mark, it is determined whether PW dual homing protection switching occurs in an outlet PW, and if yes, a current effective path is determined through a PW dual homing protection list, and according to the forwarding path index, an index of the effective path is obtained from the PW dual homing protection list; a PW forwarding path is acquired from a PW forwarding list by using the index of the effective path. The method and the device of the present invention are only required to modify active and standby states in the PW dual homing protection list, so the switching performance is improved, and the problem that the occurrence of dual homing protection path switching triggers update of a large amount of MAC is solved.

Description

一种 PW双归保护场景中确定转发路径的方法及装置 技术领域  Method and device for determining forwarding path in PW dual-homing protection scenario

本发明涉及网络通信技术领域, 尤其涉及一种 PW ( Pseudo Wire, 虚链 路)双归保护场景中确定转发路径的方法及装置。 背景技术  The present invention relates to the field of network communication technologies, and in particular, to a method and apparatus for determining a forwarding path in a PW (Pseudo Wire) dual-homing protection scenario. Background technique

基于 Internet的业务出现了新的特点: 实时业务飞速增长并且业务形式 多样化。 在可靠性方面, 必须要达到传统电信网络的水平, 如保护切换的 速度 <50ms。  Internet-based services have emerged with new features: Real-time services are growing rapidly and business forms are diversified. In terms of reliability, it is necessary to reach the level of traditional telecommunication networks, such as the speed of protection switching <50ms.

传统的 VPLS ( Virtual Private LAN Service, 虚拟专用局域网服务 )域 下, PW侧的 MAC转发表中只是保存有效 PW转发路径。 具体的 MAC表 项如表 1所示:  In the traditional VPLS (Virtual Private LAN Service) domain, only the valid PW forwarding path is saved in the MAC forwarding table on the PW side. The specific MAC table entries are shown in Table 1:

Figure imgf000003_0001
Figure imgf000003_0001

表 1  Table 1

现有技术中正向转发报文的具体实现方式为:  The specific implementation manner of forwarding packets in the prior art is as follows:

从入口进来的报文, 根据报文的 MAC地址获取对应的 MAC表项。 根 据 MAC表项中的 PW转发路径转发报文。 如果发生 PW双归保护, 则将 PW路径对应 MAC的 MAC表项进行更新, 将 MAC表项中默认的 PW转 发路径更新为备用 PW转发路径。  The packet coming in from the ingress receives the corresponding MAC entry based on the MAC address of the packet. The packet is forwarded according to the PW forwarding path in the MAC entry. If the PW dual-homing protection occurs, the MAC address entry corresponding to the MAC address of the PW path is updated, and the default PW forwarding path in the MAC entry is updated to the standby PW forwarding path.

在具体的应用环境中, 某一个 pw双归保护上可能有多个 MAC的数据 流, 则设备上会保存多个 MAC表, 如图 1所示有 2个 MAC流从主 PW路 径上进入设备,设备将学习到 2个 MAC,都对应到主 PW出口, 两个 MAC 分别如表 2和表 3所示 In a specific application environment, a PW dual-homing protection may have multiple MAC data flows, and multiple MAC tables are saved on the device. As shown in Figure 1, two MAC flows enter the device from the primary PW path. , the device will learn 2 MACs, which correspond to the main PW exit, two MACs As shown in Table 2 and Table 3, respectively

Figure imgf000004_0001
Figure imgf000004_0001

表 2  Table 2

Figure imgf000004_0002
Figure imgf000004_0002

表 3  table 3

当发生 PW切换后, 2条数据流从备 PW路径进入设备,设备将重新学 习到 2个 MAC, 都对应到备 PW出口, 图表 4和表 5所示:  After the PW switch occurs, two data streams enter the device from the standby PW path, and the device re-learns to two MACs, which correspond to the standby PW exit, as shown in Figure 4 and Table 5:

Figure imgf000004_0003
Figure imgf000004_0003

应用现有技术中的方法, 如果某条保护路径对应大量 MAC, 当该保护 路径发生双归保护路径的切换, 流量从新的路径进来后, 将触发大量的 MAC更新, 对 CPU的性能有一定的沖击影响。  According to the method in the prior art, if a protection path corresponds to a large number of MACs, when the protection path is switched between the dual-homed protection paths, after the traffic comes in from the new path, a large number of MAC updates are triggered, and the performance of the CPU is certain. Impact impact.

另外, 由于 MAC是单条更新, 在大量更新的过程中, 从图 1入口进来 的报文通过查 MAC不能立刻全部切换到备 PW的路径上去,造成切换性能 差。 发明内容 In addition, since the MAC is a single update, in the process of a large number of updates, the packets coming in from the entry of FIG. 1 cannot be switched to the path of the standby PW immediately by checking the MAC, resulting in poor handover performance. Summary of the invention

本发明提供一种 PW双归保护场景中确定转发路径的方法及装置, 用 于解决现有技术中当保护路径发生双归保护路径的切换, 将触发大量的 The invention provides a method and a device for determining a forwarding path in a PW dual-homing protection scenario, which are used to solve the problem that a dual-homed protection path of a protection path occurs in the prior art, which will trigger a large number of

MAC更新, 会对 CPU的性能存在沖击影响的问题。 The MAC update has an impact on the performance of the CPU.

为了解决上述问题, 本发明的技术方案是这样实现的:  In order to solve the above problems, the technical solution of the present invention is implemented as follows:

一种 PW双归保护场景中确定转发路径的方法, 该方法包括: 转发设备接收到报文时,获取该报文的 MAC地址, 并得到获取的所述 A method for determining a forwarding path in a PW dual-homing protection scenario, the method includes: when a forwarding device receives a packet, obtaining a MAC address of the packet, and obtaining the obtained

MAC地址对应的转发路径索引和双归保护标记; 相同的 PW转发路径对应 同一个转发路径索引; The forwarding path index and the dual-homing protection flag corresponding to the MAC address; the same PW forwarding path corresponds to the same forwarding path index;

根据所述双归保护标记确定出口 PW是否发生 PW双归保护切换, 如 果是, 则通过 PW双归保护表确定当前有效的路径, 并根据获取到的转发 路径索引从 PW双归保护表获取有效路径的索引;  Determining whether the PW dual-homed protection switching occurs on the egress PW according to the dual-homing protection flag, and if yes, determining the currently valid path by using the PW dual-homing protection table, and obtaining the valid from the PW dual-homing protection table according to the obtained forwarding path index. The index of the path;

利用获取到的有效路径的索引从 PW转发表中获得 PW转发路径。 该方法还包括:  The PW forwarding path is obtained from the PW forwarding table by using the index of the obtained valid path. The method also includes:

如果根据所述双归保护标记确定出口 pw没有发生 PW双归保护切换, 则获取主 PW索引, 并利用主 PW索引从 PW转发表中获得主 PW转发路 径。  If it is determined that the PW dual-homed protection switching does not occur according to the dual-homing protection flag, the primary PW index is obtained, and the primary PW forwarding path is obtained from the PW forwarding table by using the primary PW index.

该方法还包括:  The method also includes:

转发设备接收到从主 PW路径进入的报文时, 如果发生 PW双归保护 切换, 则将所述路径索引表中的双归保护标记设置为双归保护切换状态, 所述 PW转发表包括主 PW索引对应的主 PW转发表和备 PW索引对 应的备 PW转发表;  When the forwarding device receives the packet from the primary PW path, if the PW dual-homed protection switching occurs, the dual-homing protection flag in the path index table is set to the dual-homed protection switching state, and the PW forwarding table includes the primary The primary PW forwarding table corresponding to the PW index and the standby PW forwarding table corresponding to the standby PW index;

利用获取到的有效路径的索引从 PW转发表中获得 PW转发路径, 包 括: 根据获取到的主 PW索引或备 PW索引, 从对应的主 PW转发表或备 PW转发表获得 PW转发路径。 The PW forwarding path is obtained from the PW forwarding table by using the obtained index of the valid path, including: The PW forwarding path is obtained from the corresponding primary PW forwarding table or the standby PW forwarding table according to the obtained primary PW index or the standby PW index.

得到获取的所述 MAC 地址对应的转发路径索引和双归保护标记的过 程包括:  The process of obtaining the forwarding path index and the dual-homing protection flag corresponding to the obtained MAC address includes:

将获取到的所述 MAC地址与转发路径索引表中的 MAC地址进行匹 配, 得到获取的所述 MAC地址对应的转发路径索引和双归保护标记。  Matching the obtained MAC address with the MAC address in the forwarding path index table to obtain the obtained forwarding path index and the dual-homing protection flag corresponding to the MAC address.

一种 PW双归保护场景中确定转发路径的装置, 该装置包括: 转发场景确定模块, 用于当接收到报文时, 获取该报文的 MAC地址, 并得到获取的所述 MAC地址对应的转发路径索引和双归保护标记;相同的 PW转发路径对应同一个转发路径索引;  An apparatus for determining a forwarding path in a PW dual-homing protection scenario, the apparatus includes: a forwarding scenario determining module, configured to: when receiving a packet, obtain a MAC address of the packet, and obtain the obtained MAC address corresponding to the MAC address Forwarding path index and dual-homing protection tag; the same PW forwarding path corresponds to the same forwarding path index;

有效路径确定模块, 用于根据所述双归保护标记确定出口 PW是否发 生 PW双归保护切换, 如果是, 则通过 PW双归保护表确定当前有效的路 径, 并根据获取到的转发路径索引从 PW双归保护表获取有效路径的索引; 转发模块, 用于利用获取到的有效路径的索引, 从 PW转发表中获得 PW转发路径。  An effective path determining module, configured to determine, according to the dual-homing protection flag, whether a PW dual-homing protection switch occurs on the egress PW, and if yes, determine a currently valid path by using a PW dual-homing protection table, and according to the obtained forwarding path index The PW dual-homing protection table obtains an index of the valid path. The forwarding module is configured to obtain the PW forwarding path from the PW forwarding table by using the obtained index of the valid path.

所述有效路径确定模块还用于:  The effective path determination module is further configured to:

如果根据所述双归保护标记确定出口 pw没有发生 PW双归保护切换, 则获取主 PW索引, 并利用主 PW索引从 PW转发表中获得主 PW转发路 径。  If it is determined that the PW dual-homed protection switching does not occur according to the dual-homing protection flag, the primary PW index is obtained, and the primary PW forwarding path is obtained from the PW forwarding table by using the primary PW index.

该装置还包括:  The device also includes:

转发路径索引表维护模块, 用于当接收到从主 PW路径进入的报文时, 如果发生 PW双归保护切换, 则将所述路径索引表中的双归保护标记设置 所述 PW转发表包括主 PW索引对应的主 PW转发表和备 PW索引对 应的备 PW转发表时, 所述转发模块利用获取到的有效路径的索引从 PW 转发表中获得 PW转发路径时, 用于: a forwarding path index table maintenance module, configured to: when a packet entering from the primary PW path is received, if a PW dual-homing protection switch occurs, setting the dual-homing protection flag in the path index table to the PW forwarding table includes When the primary PW forwarding table corresponding to the primary PW index and the standby PW forwarding table corresponding to the standby PW index, the forwarding module uses the index of the obtained valid path from the PW When the PW forwarding path is obtained in the forwarding table, it is used to:

根据获取到的主 PW索引或备 PW索引, 从对应的主 PW转发表或备 PW转发表获得 PW转发路径。  The PW forwarding path is obtained from the corresponding primary PW forwarding table or the standby PW forwarding table according to the obtained primary PW index or the standby PW index.

所述转发场景确定模块在得到获取的所述 MAC地址对应的转发路径 索引和双归保护标记时, 用于:  The forwarding scenario determining module is configured to: when obtaining the obtained forwarding path index and the dual-homing protection flag corresponding to the MAC address:

将获取到的所述 MAC地址与转发路径索引表中的 MAC地址进行匹 配, 得到获取的所述 MAC地址对应的转发路径索引和双归保护标记。  Matching the obtained MAC address with the MAC address in the forwarding path index table to obtain the obtained forwarding path index and the dual-homing protection flag corresponding to the MAC address.

本发明提供的方法和装置, 在 PW双归保护场景下, MAC表与 PW转 发表分离, MAC表与 PW转发表项之间多一层 PW双归保护表。当发生 PW 双归保护切换时, 只需要进行 PW双归保护表的切换, 原有的单播流量就 可以直接向有效 PW路径转发。 整个过程将无须发起 MAC更新 ,有效地保 护了 CPU性能不受此切换影响。 附图说明  The method and the device provided by the present invention, in the PW dual-homing protection scenario, the MAC table is separated from the PW, and the PW dual-protection table is further arranged between the MAC table and the PW forwarding entry. When the PW dual-homing protection switchover occurs, only the PW dual-homing protection table needs to be switched, and the original unicast traffic can be directly forwarded to the effective PW path. The entire process will not require a MAC update, effectively protecting CPU performance from this switch. DRAWINGS

图 1为现有技术中用 VPLS下 PW双归保护场景;  FIG. 1 is a PW dual-homing protection scenario under VPLS in the prior art;

图 2为本发明实施例一种 PW双归保护场景中确定转发路径的方法的 流程图;  2 is a flowchart of a method for determining a forwarding path in a PW dual-homing protection scenario according to an embodiment of the present invention;

图 3为本发明实施例一种 PW双归保护场景中确定转发路径的装置的 结构图。 具体实施方式  FIG. 3 is a structural diagram of an apparatus for determining a forwarding path in a PW dual-homing protection scenario according to an embodiment of the present invention. detailed description

本发明实施例提供一种 PW双归保护场景中确定转发路径的方法, 该 方法包括: 转发设备接收到从入口进来的报文时, 获取该报文的源 MAC地 址, 并将获取到的 MAC地址与转发路径索引表中的 MAC地址进行匹配, 获取所述源 MAC地址对应的转发路径索引和双归保护标记,相同的 PW转 发路径对应同一个转发路径索引; 根据所述双归保护标记确定出口 PW是 否发生 PW双归保护切换, 如果是, 则通过 PW双归保护表确定当前有效 的路径, 并根据获取到的转发路径索引从 PW双归保护表获取有效路径的 索引; 利用获取到的有效路径的索引从 PW转发表中获得 PW转发路径。 An embodiment of the present invention provides a method for determining a forwarding path in a PW dual-homing protection scenario, where the method includes: when a forwarding device receives a packet coming in from an ingress, obtains a source MAC address of the packet, and obtains the obtained MAC address. The address is matched with the MAC address in the forwarding path index table, and the forwarding path index and the dual-homing protection flag corresponding to the source MAC address are obtained, and the same PW forwarding path corresponds to the same forwarding path index; Export PW is Whether the PW dual-homed protection switchover occurs, if yes, the PW dual-homing protection table is used to determine the currently valid path, and the index of the valid path is obtained from the PW dual-homing protection table according to the obtained forwarding path index; The index gets the PW forwarding path from the PW forwarding table.

如图 2所示, 本发明实施例提供一种 PW双归保护场景中确定转发路 径的方法, 具体包括以下步驟:  As shown in FIG. 2, the embodiment of the present invention provides a method for determining a forwarding path in a PW dual-homing protection scenario, which specifically includes the following steps:

步驟 201 ,当转发设备接收到从入口进来的报文时,获取该报文的 MAC 地址,并将获取到的 MAC地址与转发路径索引表(如表 6所示)中的 MAC 地址进行匹配,获取该 MAC地址对应的转发路径索引和双归保护标记,相 同的 PW转发路径对应同一个转发路径索引;  Step 201: When the forwarding device receives the packet coming in from the ingress, obtain the MAC address of the packet, and match the obtained MAC address with the MAC address in the forwarding path index table (as shown in Table 6). Obtaining a forwarding path index and a dual-homing protection flag corresponding to the MAC address, where the same PW forwarding path corresponds to the same forwarding path index;

在本发明实施例中, 所述转发路径索引表的一个主要内容就是转发索 引 ( transmit index ), 并且在双归保护或者正常场景下, transmit index始终 在一个资源池中分配, 保证转发路径不被覆盖。  In the embodiment of the present invention, one of the main contents of the forwarding path index table is a forwarding index (transmit index), and in a dual-homing protection or a normal scenario, the transmit index is always allocated in a resource pool, and the forwarding path is guaranteed not to be cover.

Figure imgf000008_0001
Figure imgf000008_0001

表 6  Table 6

步驟 202,根据所述双归保护标记确定出口 PW是否发生 PW双归保护 切换, 如果是, 则通过 PW双归保护表(如表 7所示)确定当前有效的路 径, 并根据获取到的转发路径索引从 PW双归保护表(如表 8所示 )获取 有效路径的索引, 并转入步驟 203; 否则转入步驟 204

Figure imgf000008_0002
transmit index主 主 PW索引 PW index Step 202: Determine, according to the dual-homing protection flag, whether a PW dual-homing protection switch occurs on the egress PW, and if yes, determine a currently valid path by using a PW dual-homing protection table (as shown in Table 7), and according to the obtained forwarding The path index obtains the index of the valid path from the PW dual-homing protection table (as shown in Table 8), and proceeds to step 203; otherwise, proceeds to step 204.
Figure imgf000008_0002
Transmit index main main PW index PW index

transmit index备 备 PW索引 PW index  Transmit index preparation PW index PW index

表 7  Table 7

在本发明实施中, 主 PW索引和备 PW索引分别都对应一个 PW双归 保护表。 当通过 PW双归保护表确定当前有效的路径为主 PW转发路径时, 则通过主 PW路径对应的 PW双归保护表获取 PW转发路径。  In the implementation of the present invention, the primary PW index and the standby PW index respectively correspond to one PW dual-homing protection table. When the PW dual-homing protection table is used to determine that the currently valid path is the primary PW forwarding path, the PW forwarding path is obtained through the PW dual-homing protection table corresponding to the primary PW path.

步驟 203 , 利用获取到的有效路径的索引从 PW转发表(如表 8所示) 中获得 PW转发路径。  Step 203: Obtain a PW forwarding path from the PW forwarding table (as shown in Table 8) by using the obtained index of the valid path.

Figure imgf000009_0001
Figure imgf000009_0001

表 8  Table 8

步驟 204, 如果根据所述双归保护标记确定出口 PW正常, 则获取主 PW索引; 并利用主 PW索引从 PW转发表中获得主 PW转发路径。  Step 204: If it is determined that the egress PW is normal according to the dual-homing protection flag, obtain a primary PW index; and obtain a primary PW forwarding path from the PW forwarding table by using a primary PW index.

为了确保在转发报文时不用再更新 PW转发路径, 则所述 PW转发表 所述利用获取到的有效路径的索引从 PW转发表中获得 PW转发路径, 包括:  To ensure that the PW forwarding path is not updated when the packet is forwarded, the PW forwarding table obtains the PW forwarding path from the PW forwarding table by using the obtained index of the valid path, including:

根据获取到的主 PW索引或备 PW索引, 从对应的主 PW转发表或备 PW转发表获得 PW转发路径。  The PW forwarding path is obtained from the corresponding primary PW forwarding table or the standby PW forwarding table according to the obtained primary PW index or the standby PW index.

当转发设备接收到从主 PW路径进入的报文时, 如果发生 PW双归保 护切换, 则将所述路径索引表中的双归保护标记设置为双归保护切换状态, 另夕卜,如果数据流切换到从备 PW路径进入,转发层发现 MAC已经存 在, 并且 MAC表结果中有 PW双归保护标记, transmit index为对应的 PW 双归保护索引, 则无须发起 PW更新。 When the forwarding device receives the packet entering from the primary PW path, if the PW dual-homing protection switching occurs, the dual-homing protection flag in the path index table is set to the dual-homed protection switching state, and if the data The flow is switched to the slave PW path. The forwarding layer finds that the MAC already exists, and the MAC table results in the PW dual-homed protection flag. The transmit index is the corresponding PW. Dual-homed protection index, no need to initiate PW update.

如图 1所示的场景, 如果设备启用了一个 PW双归保护, 保护索引 PW FRR indexl对应主 PW1、 备 PW2。 PWl索引为 PW indexl , PW2索引为 PW index2, 则应用本发明实施例所提供的方法进行转发路径的选择的具体 实现方式可以是:  As shown in Figure 1, if the device is enabled with a PW dual-homing protection, the protection index PW FRR index1 corresponds to the primary PW1 and the standby PW2. The PW1 index is PW index1, and the PW2 index is PW index2. The specific implementation manner of selecting the forwarding path by using the method provided by the embodiment of the present invention may be:

设备将创建 PW双归保护表 (如表 9所示)和 PW转发表(如表 10所 示); PW转发表包括主 PW路径和备 PW路径的转发表(如表是 10和 11 所示)。  The device will create a PW dual-homing protection table (as shown in Table 9) and a PW forwarding table (as shown in Table 10). The PW forwarding table includes the forwarding table of the primary PW path and the standby PW path (as shown in Tables 10 and 11). ).

Figure imgf000010_0001
Figure imgf000010_0001

表 9  Table 9

Figure imgf000010_0002
Figure imgf000010_0002

在本实施例中, 如果根据 PW双归保护表确定发生双归保护后, 当前 的 PW转发路径为主 PW路径, 则直接查询表 10以获取 PW出口信息。  In this embodiment, if it is determined that the current PW forwarding path is the primary PW path after the dual-homing protection is performed according to the PW dual-homing protection table, the table 10 is directly queried to obtain the PW export information.

如果 PW双归保护表结果显示 protect status =1 ,则当前的 PW转发路径 为备 PW路径, 则直接查询表 11以获取 PW出口信息。  If the PW dual-homing protection table shows protect status =1, the current PW forwarding path is the standby PW path. Then, query the table 11 to obtain the PW export information.

如图 1 所示的场景, 应用本发明实施例所提供的方法进行数据转发路 径选择的反向转发流程, 包括: In the scenario shown in FIG. 1, the data forwarding path is implemented by using the method provided by the embodiment of the present invention. The reverse forwarding process for path selection, including:

如果有 2个 MAC流从主 PW1路径上进入设备, 设备将学习到 2个 MAC(如表 12和表 13所示;),都对应到 PW双归保护路径索引 , transmit index 对应 PW FRR index 1。 If two MAC flows enter the device from the primary PW1 path, the device learns two MACs (as shown in Table 12 and Table 13), which correspond to the PW dual-homed protection path index, and the transmit index corresponds to PW FRR index 1. .

Figure imgf000011_0001
Figure imgf000011_0001

当数据流切换到从备 PW路径进入,转发层发现 MAC已经存在, 并且 MAC表结果中有 PW双归保护标记, transmit index为对应的 PW双归保护 索引 PW FRR indexl , 则无需发起 MAC表更新。  When the data stream is switched to the slave PW path, the forwarding layer finds that the MAC already exists, and the MAC table results in the PW dual-homing protection flag, and the transmit index is the corresponding PW dual-homing protection index PW FRR index1, so there is no need to initiate the MAC table update. .

如图 1 所示的场景, 应用本发明实施例所提供的方法进行数据流的正 向转发的具体实现方式可以是:  As shown in FIG. 1 , a specific implementation manner of performing forward forwarding of a data flow by using the method provided by the embodiment of the present invention may be:

从入口进来的报文, 查 MAC匹配 , 如果 MAC表显示出口 PW起双归 保护, 则按照 MAC表得到 PW FRR index, 据此查 PW双归保护表, 参考 表中主备状态 protect status=0 , 选主 PW转发索引 PW index 1。  Check the MAC match from the incoming message. If the MAC table indicates that the egress PW is dual-homed, the PW FRR index is obtained according to the MAC table. According to this, the PW dual-return protection table is checked. The active/standby status of the reference table is protected status=0. , select the main PW forwarding index PW index 1.

用获得的 PW转发索引查 PW转发表, 获得 PW出口信息。  Use the obtained PW forwarding index to check the PW forwarding table to obtain the PW export information.

如图 3所示, 根据上述方法, 本发明实施例还提供一种 PW双归保护 场景中确定转发路径的装置, 包括:  As shown in FIG. 3, according to the foregoing method, an embodiment of the present invention further provides an apparatus for determining a forwarding path in a PW dual-homing protection scenario, including:

转发场景确定模块 301 , 用于当接收到从入口进来的报文时, 获取该报 文的 MAC地址, 并将获取到的 MAC地址与转发路径索引表中的 MAC地 址进行匹配,得到获取到的所述 MAC地址对应的转发路径索引和双归保护 标记, 相同的 PW转发路径对应同一个转发路径索引;  The forwarding scenario determining module 301 is configured to: when receiving the packet coming in from the portal, obtain the MAC address of the packet, and match the obtained MAC address with the MAC address in the forwarding path index table to obtain the obtained MAC address. The forwarding path index and the dual-homing protection flag corresponding to the MAC address, and the same PW forwarding path corresponds to the same forwarding path index;

有效路径确定模块 302,用于根据所述双归保护标记确定出口 PW是否 发生 PW双归保护切换, 如果是, 则通过 PW双归保护表确定当前有效的 路径, 并根据获取到的转发路径索引从 PW双归保护表获取有效路径的索 引; The valid path determining module 302 is configured to determine, according to the dual-homing protection flag, whether the exit PW is The PW dual-homing protection switchover occurs. If yes, the PW dual-homing protection table is used to determine the currently valid path, and the index of the valid path is obtained from the PW dual-homing protection table according to the obtained forwarding path index.

其中, 当没有发生双归保护场景时, 本发明装置所提供的有效路径确 定模块 302还用于:如果根据所述双归保护标记确定出口 PW没有发生 PW 双归保护切换, 则获取主 PW索引; 利用主 PW索引从 PW转发表中获得 主 PW转发路径。  When the dual-homing protection scenario does not occur, the effective path determining module 302 provided by the device of the present invention is further configured to: if the PW dual-homed protection switching does not occur in the egress PW according to the dual-homing protection flag, obtain the primary PW index. The primary PW forwarding path is obtained from the PW forwarding table using the primary PW index.

转发模块 303, 用于利用获取到的有效路径的索引,从 PW转发表中获 得 PW转发路径。  The forwarding module 303 is configured to obtain a PW forwarding path from the PW forwarding table by using an index of the obtained valid path.

转发模块 303还用于: 当所述 PW转发表包括主 PW索引对应的主 PW 转发表和备 PW索引对应的备 PW转发表时, 根据获取到的主 PW索引或 另外, 为了转发装置学习到 MAC地址, 则本发明实施例提供的装置还 包括:  The forwarding module 303 is further configured to: when the PW forwarding table includes a primary PW forwarding table corresponding to the primary PW index and a standby PW forwarding table corresponding to the standby PW index, according to the obtained primary PW index or otherwise, the forwarding device learns The MAC address, the apparatus provided by the embodiment of the present invention further includes:

转发路径索引表维护模块 304,用于当接收到从主 PW路径进入的报文 时, 如果发生 PW双归保护切换, 则将所述路径索引表中的双归保护标记 设置为双归保护切换状态,并保存所述报文 MAC地址对应的 PW双归保护 索引。  The forwarding path index table maintenance module 304 is configured to: when receiving the packet entering from the primary PW path, if the PW dual-homing protection switching occurs, setting the dual-homing protection flag in the path index table to dual-homing protection switching Status, and save the PW dual-homed protection index corresponding to the packet MAC address.

由于 MAC表与 PW转发表分离, 与 PW双归保护建立对应关系。 大量 的 MAC只要出口是相同的 PW双归保护路径,就只需要写同一个 PW双归 保护索引。 当出现 PW双归切换时, 只需要修改 PW双归保护表中的主备 状态即可, 提升了切换性能。  Because the MAC table is separated from the PW forwarding table, it is associated with the PW dual-homing protection. A large number of MACs only need to write the same PW dual-homed protection index as long as the egress is the same PW dual-homed protection path. When the PW dual-homing switchover occurs, you only need to modify the active/standby state in the PW dual-homing protection table to improve the switching performance.

由于 MAC表与 PW转发表分离, 与 PW双归保护建立对应关系, 不管 报文从主 PW进入转发设备还是从备 PW进入转发设备, 都是对应同一个 PW双归保护, 因此不需要进行 MAC更新, 减少了对 CPU的沖击压力。 术人员根据本发明的技术方案得出其它的实施方式, 同样属于本发明的技 术创新范围。 The MAC address is separated from the PW forwarding table and is associated with the PW dual-homing protection. No matter whether the packet enters the forwarding device from the primary PW or the forwarding device from the standby PW, the packet is dual-homed. Updated to reduce the impact pressure on the CPU. The other embodiments of the invention are obtained according to the technical solution of the invention, which are also within the scope of the technical innovation of the invention.

显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。  It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention

Claims

权利要求书 Claim 1、一种虚链路 PW双归保护场景中确定转发路径的方法,其特征在于, 该方法包括:  A method for determining a forwarding path in a virtual link PW dual-homing protection scenario, the method comprising: 转发设备接收到报文时,获取该报文的 MAC地址, 并得到获取的所述 MAC地址对应的转发路径索引和双归保护标记; 相同的 PW转发路径对应 同一个转发路径索引;  When receiving the packet, the forwarding device obtains the MAC address of the packet, and obtains the obtained forwarding path index and the dual-homing protection flag corresponding to the MAC address; the same PW forwarding path corresponds to the same forwarding path index; 根据所述双归保护标记确定出口 PW是否发生 PW双归保护切换, 如 果是, 则通过 PW双归保护表确定当前有效的路径, 并根据获取到的转发 路径索引从 PW双归保护表获取有效路径的索引;  Determining whether the PW dual-homed protection switching occurs on the egress PW according to the dual-homing protection flag, and if yes, determining the currently valid path by using the PW dual-homing protection table, and obtaining the valid from the PW dual-homing protection table according to the obtained forwarding path index. The index of the path; 利用获取到的有效路径的索引从 PW转发表中获得 PW转发路径。 The PW forwarding path is obtained from the PW forwarding table by using the index of the obtained valid path. 2、 如权利要求 1所述的方法, 其特征在于, 该方法还包括: 2. The method of claim 1, wherein the method further comprises: 如果根据所述双归保护标记确定出口 pw没有发生 PW双归保护切换, 则获取主 PW索引, 并利用主 PW索引从 PW转发表中获得主 PW转发路 径。  If it is determined that the PW dual-homed protection switching does not occur according to the dual-homing protection flag, the primary PW index is obtained, and the primary PW forwarding path is obtained from the PW forwarding table by using the primary PW index. 3、 如权利要求 1所述的方法, 其特征在于, 该方法还包括:  3. The method according to claim 1, wherein the method further comprises: 转发设备接收到从主 PW路径进入的报文时, 如果发生 PW双归保护 切换, 则将所述路径索引表中的双归保护标记设置为双归保护切换状态,  When the forwarding device receives the packet from the primary PW path, if the PW dual-homed protection switch occurs, the dual-homing protection flag in the path index table is set to the dual-homed protection switching state. 4、 如权利要求 1至 3任一权项所述的方法, 其特征在于, 所述 PW转 发表包括主 PW索引对应的主 PW转发表和备 PW索引对应的备 PW转发 表; The method according to any one of claims 1 to 3, wherein the PW forwarding includes a primary PW forwarding table corresponding to the primary PW index and a standby PW forwarding table corresponding to the standby PW index; 利用获取到的有效路径的索引从 PW转发表中获得 PW转发路径, 包 括:  The PW forwarding path is obtained from the PW forwarding table by using the index of the obtained valid path, including: 根据获取到的主 PW索引或备 PW索引, 从对应的主 PW转发表或备 PW转发表获得 PW转发路径。 The PW forwarding path is obtained from the corresponding primary PW forwarding table or the standby PW forwarding table according to the obtained primary PW index or the standby PW index. 5、 如权利要求 1至 3任一权项所述的方法, 其特征在于, 得到获取的 所述 MAC地址对应的转发路径索引和双归保护标记的过程包括: The method according to any one of claims 1 to 3, wherein the obtaining the obtained forwarding path index and the dual-homing protection flag corresponding to the MAC address comprises: 将获取到的所述 MAC地址与转发路径索引表中的 MAC地址进行匹 配, 得到获取的所述 MAC地址对应的转发路径索引和双归保护标记。  Matching the obtained MAC address with the MAC address in the forwarding path index table to obtain the obtained forwarding path index and the dual-homing protection flag corresponding to the MAC address. 6、 一种 PW双归保护场景中确定转发路径的装置, 其特征在于, 该装 置包括:  6. A device for determining a forwarding path in a PW dual-homing protection scenario, the device comprising: 转发场景确定模块, 用于当接收到报文时, 获取该报文的 MAC地址, 并得到获取的所述 MAC地址对应的转发路径索引和双归保护标记;相同的 PW转发路径对应同一个转发路径索引;  The forwarding scenario determining module is configured to: when receiving the packet, obtain the MAC address of the packet, and obtain the obtained forwarding path index and the dual-homing protection flag corresponding to the MAC address; the same PW forwarding path corresponds to the same forwarding Path index 有效路径确定模块, 用于根据所述双归保护标记确定出口 PW是否发 生 PW双归保护切换, 如果是, 则通过 PW双归保护表确定当前有效的路 径, 并根据获取到的转发路径索引从 PW双归保护表获取有效路径的索引; 转发模块, 用于利用获取到的有效路径的索引, 从 PW转发表中获得 PW转发路径。  An effective path determining module, configured to determine, according to the dual-homing protection flag, whether a PW dual-homing protection switch occurs on the egress PW, and if yes, determine a currently valid path by using a PW dual-homing protection table, and according to the obtained forwarding path index The PW dual-homing protection table obtains an index of the valid path. The forwarding module is configured to obtain the PW forwarding path from the PW forwarding table by using the obtained index of the valid path. 7、 如权利要求 6所述的装置, 其特征在于, 所述有效路径确定模块还 用于:  The device according to claim 6, wherein the effective path determining module is further configured to: 如果根据所述双归保护标记确定出口 pw没有发生 PW双归保护切换, 则获取主 PW索引, 并利用主 PW索引从 PW转发表中获得主 PW转发路 径。  If it is determined that the PW dual-homed protection switching does not occur according to the dual-homing protection flag, the primary PW index is obtained, and the primary PW forwarding path is obtained from the PW forwarding table by using the primary PW index. 8、 如权利要求 6所述的装置, 其特征在于, 该装置还包括:  8. The device of claim 6, wherein the device further comprises: 转发路径索引表维护模块, 用于当接收到从主 PW路径进入的报文时, 如果发生 PW双归保护切换, 则将所述路径索引表中的双归保护标记设置  The forwarding path index table maintenance module is configured to: when receiving the packet entering from the primary PW path, if the PW dual-homed protection switching occurs, setting the dual-homing protection flag in the path index table 9、 如权利要求 6至 8任一权所述的装置, 其特征在于, 所述 PW转发 表包括主 PW索引对应的主 PW转发表和备 PW索引对应的备 PW转发表 时, 所述转发模块利用获取到的有效路径的索引从 PW转发表中获得 PW 转发路径时, 用于: The device according to any one of claims 6 to 8, wherein the PW forwarding table includes a primary PW forwarding table corresponding to the primary PW index and a standby PW forwarding table corresponding to the standby PW index. When the forwarding module obtains the PW forwarding path from the PW forwarding table by using the obtained index of the valid path, the forwarding module is configured to: 根据获取到的主 PW索引或备 PW索引, 从对应的主 PW转发表或备 PW转发表获得 PW转发路径。  The PW forwarding path is obtained from the corresponding primary PW forwarding table or the standby PW forwarding table according to the obtained primary PW index or the standby PW index. 10、 如权利要求 6至 8任一权项所述的装置, 其特征在于, 所述转发 场景确定模块在得到获取的所述 MAC地址对应的转发路径索引和双归保 护标记时, 用于:  The device according to any one of claims 6 to 8, wherein the forwarding scenario determining module is configured to: when obtaining the obtained forwarding path index and the dual-homing protection flag corresponding to the MAC address: 将获取到的所述 MAC地址与转发路径索引表中的 MAC地址进行匹 配, 得到获取的所述 MAC地址对应的转发路径索引和双归保护标记。  Matching the obtained MAC address with the MAC address in the forwarding path index table to obtain the obtained forwarding path index and the dual-homing protection flag corresponding to the MAC address.
PCT/CN2011/078429 2010-11-23 2011-08-15 Method and device for determining forwarding path in pw dual homing protection environment WO2012068907A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105572511A CN102006227A (en) 2010-11-23 2010-11-23 Method and device for determining forwarding path in pseudo-wire (PW) dual homing protection environment
CN201010557251.1 2010-11-23

Publications (1)

Publication Number Publication Date
WO2012068907A1 true WO2012068907A1 (en) 2012-05-31

Family

ID=43813313

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/078429 WO2012068907A1 (en) 2010-11-23 2011-08-15 Method and device for determining forwarding path in pw dual homing protection environment

Country Status (2)

Country Link
CN (1) CN102006227A (en)
WO (1) WO2012068907A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065614A (en) * 2022-06-22 2022-09-16 杭州云合智网技术有限公司 VPWS multi-active business connectivity identification method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006227A (en) * 2010-11-23 2011-04-06 中兴通讯股份有限公司 Method and device for determining forwarding path in pseudo-wire (PW) dual homing protection environment
CN107846356B (en) * 2016-09-19 2020-02-11 新华三技术有限公司 Method and device for fast switching between main pseudo wire and standby pseudo wire
CN110138605B (en) * 2019-04-30 2022-06-17 浙江亿邦通信科技有限公司 PW switching method and device based on virtual port

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909501A (en) * 2005-08-05 2007-02-07 华为技术有限公司 Method for end to end service rapid convergence and route device
CN101710875A (en) * 2009-12-22 2010-05-19 中兴通讯股份有限公司 Method and device for realizing rapid re-routing
CN101827034A (en) * 2010-05-12 2010-09-08 中兴通讯股份有限公司 Method and device for realizing quick rerouting
US20100226246A1 (en) * 2009-03-03 2010-09-09 Alcatel Lucent Pseudowire tunnel redundancy
US20100238795A1 (en) * 2009-03-23 2010-09-23 Cisco Technology, Inc. Restoring multi-segment pseudowires following failure of a switching PE device
CN102006227A (en) * 2010-11-23 2011-04-06 中兴通讯股份有限公司 Method and device for determining forwarding path in pseudo-wire (PW) dual homing protection environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909501A (en) * 2005-08-05 2007-02-07 华为技术有限公司 Method for end to end service rapid convergence and route device
US20100226246A1 (en) * 2009-03-03 2010-09-09 Alcatel Lucent Pseudowire tunnel redundancy
US20100238795A1 (en) * 2009-03-23 2010-09-23 Cisco Technology, Inc. Restoring multi-segment pseudowires following failure of a switching PE device
CN101710875A (en) * 2009-12-22 2010-05-19 中兴通讯股份有限公司 Method and device for realizing rapid re-routing
CN101827034A (en) * 2010-05-12 2010-09-08 中兴通讯股份有限公司 Method and device for realizing quick rerouting
CN102006227A (en) * 2010-11-23 2011-04-06 中兴通讯股份有限公司 Method and device for determining forwarding path in pseudo-wire (PW) dual homing protection environment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065614A (en) * 2022-06-22 2022-09-16 杭州云合智网技术有限公司 VPWS multi-active business connectivity identification method
CN115065614B (en) * 2022-06-22 2023-10-13 杭州云合智网技术有限公司 Method for identifying multi-activity service connectivity of VPWS

Also Published As

Publication number Publication date
CN102006227A (en) 2011-04-06

Similar Documents

Publication Publication Date Title
CN102215170B (en) Method and processor for restraining Internet storm
US8750314B2 (en) Method and device for link protection in virtual private local area network
WO2009033428A1 (en) Method, system and device for removing media access control address
EP2735126B1 (en) Signaling a label switched path (lsp) tunneling model
WO2007012239A1 (en) A method for switching the serving services of virtual private lan and a system thereof
CN101313537A (en) Method and network equipment for rapid service convergence
WO2013139159A1 (en) Method for forwarding packet in network and provider edge device
WO2013097459A1 (en) Service path detection method and device
EP2521320B1 (en) Method and device for maintaining call during main/standby switching of voice over internet protocol devices
CN106330506B (en) A service fault location method and device
WO2011116695A1 (en) Method and network processor for implementing multi-service forwarding
EP2634978B1 (en) Message forwarding method and network device
WO2018014767A1 (en) Information determination method and device, and storage medium
CN105743780B (en) Message transmitting method and device
WO2011160464A1 (en) Method for forwarding message and switch chip
WO2014019348A1 (en) Method, device and system for operation, management and maintenance of oam configuration
WO2012152186A1 (en) Multiport ethernet interface device and vpn service access method therefor
WO2013029438A1 (en) Ethernet interface protection method and network side device
CN102893560B (en) A kind of data flow transmission method and the network equipment
WO2012068907A1 (en) Method and device for determining forwarding path in pw dual homing protection environment
JP2013520857A (en) Fast LSP alert mechanism
WO2011140921A1 (en) Method, device and system for forwarding data frames of virtual private local area network service (vpls)
WO2012103708A1 (en) Media access control address protection method and switch
US9654304B2 (en) Method and apparatus for sending transparent interconnection of lots of links data frame
CN102594665A (en) Business data transmission method and device

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: 11842469

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: 11842469

Country of ref document: EP

Kind code of ref document: A1