[go: up one dir, main page]

CN115604054A - Method and equipment for forwarding message by common link of resilient packet ring - Google Patents

Method and equipment for forwarding message by common link of resilient packet ring Download PDF

Info

Publication number
CN115604054A
CN115604054A CN202211200917.7A CN202211200917A CN115604054A CN 115604054 A CN115604054 A CN 115604054A CN 202211200917 A CN202211200917 A CN 202211200917A CN 115604054 A CN115604054 A CN 115604054A
Authority
CN
China
Prior art keywords
rpr
ring
shared
port
unicast data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211200917.7A
Other languages
Chinese (zh)
Other versions
CN115604054B (en
Inventor
项学锋
汪洪远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd Hefei Branch
Original Assignee
New H3C Technologies Co Ltd Hefei Branch
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 New H3C Technologies Co Ltd Hefei Branch filed Critical New H3C Technologies Co Ltd Hefei Branch
Priority to CN202211200917.7A priority Critical patent/CN115604054B/en
Publication of CN115604054A publication Critical patent/CN115604054A/en
Application granted granted Critical
Publication of CN115604054B publication Critical patent/CN115604054B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/42Loop networks
    • 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/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • 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/74Address processing for routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

本申请提供了一种弹性分组环的共用链路转发报文的方法及设备,该方法包括:设置邻居相交节点的RPR MAC地址为共用链路的对端节点RPR MAC;设置RPR共用环上的共用端口;设置在RPR共用环与RPR相交环之间的冗余共用通道;设置将共用端口为出端口的报文重定向到冗余共同通道的重定向表项;当待转发RPR单播数据报文的出端口为共用端口,通过重定向表项将待转发RPR单播数据报文从RPR共用环传递到RPR相交环;为待转发RPR单播数据报文封装带有指定VLAN且目的RPR MAC地址为共用链路的对端节点MAC地址的外层RPR头;通过RPR相交环上到达邻居相交节点的最短路径发送。

Figure 202211200917

The present application provides a method and equipment for forwarding messages on a shared link of a resilient packet ring, the method comprising: setting the RPR MAC address of a neighboring intersecting node as the peer node RPR MAC address of the shared link; setting the RPR MAC address on the shared RPR ring Shared port; set the redundant shared channel between the RPR shared ring and the RPR intersecting ring; set the redirection entry that redirects the packet whose shared port is the outgoing port to the redundant common channel; when the RPR unicast data to be forwarded The outgoing port of the message is a common port, and the RPR unicast data message to be forwarded is transferred from the RPR common ring to the RPR intersecting ring through the redirection table entry; the RPR unicast data message to be forwarded is encapsulated with the specified VLAN and the destination RPR The MAC address is the outer RPR header of the MAC address of the peer node of the shared link; it is sent through the shortest path to the neighbor intersecting node on the RPR intersecting ring.

Figure 202211200917

Description

一种弹性分组环的共用链路转发报文的方法及设备A method and device for forwarding messages on a shared link of a resilient packet ring

技术领域technical field

本申请涉及弹性分组环技术,特别涉及一种弹性分组环的共用链路转发报文的方法及设备。The present application relates to RPR technology, in particular to a method and device for forwarding messages on a shared link of RPR.

背景技术Background technique

RPR(Resilient Packet Ring,弹性分组环)是一种新型的MAC(Media AccessControl,媒体访问控制)协议,可运行于SONET(Synchronous Optical Network,同步光网络)/SDH(Synchronous Digital Hierarchy,同步数字系列)、DWDM(Dense WavelengthDivision Multiplexing,密级波分复用)和以太网之上,为宽带IP城域网运营商提供灵活高效的组网方案。RPR采用RPR MAC层帧封装实现Ethernet Over RPR的透明传输。RPR的环结构和拓扑保护机制对所承载流量的转发过程和接入设备透明。RPR (Resilient Packet Ring) is a new MAC (Media Access Control) protocol that can run on SONET (Synchronous Optical Network)/SDH (Synchronous Digital Hierarchy) , DWDM (Dense Wavelength Division Multiplexing, Dense Wavelength Division Multiplexing) and Ethernet, providing flexible and efficient networking solutions for broadband IP MAN operators. RPR adopts RPR MAC layer frame encapsulation to realize transparent transmission of Ethernet Over RPR. The ring structure and topology protection mechanism of RPR are transparent to the forwarding process of carried traffic and access devices.

在单个RPR环内,RPR节点在顺时针方向上发送RPR数据报文的方向为0环,也称Outer Ring(外环);RPR在逆时针方向上发送RPR报文的方向为1环,也称Inner Ring(内环)。RPR节点通过东向物理端口在0环上发送RPR数据报文、在1环上接收RPR数据报文;通过西向物理端口在0环上接收RPR数据报文、在1环上发送RPR数据报文。In a single RPR ring, the direction in which RPR nodes send RPR data packets in the clockwise direction is Ring 0, also called the Outer Ring (outer ring); the direction in which RPR nodes send RPR packets in the counterclockwise direction is Ring 1, also called Called Inner Ring (inner ring). The RPR node sends RPR data packets on ring 0 and receives RPR data packets on ring 1 through the eastbound physical port; receives RPR data packets on ring 0 and sends RPR data packets on ring 1 through the westbound physical port .

每个RPR节点的东西物理端口和西向物理端口组成了RPR逻辑口。RPR节点内,每个交换单元与各RPR处理单元间通过内部物理以太端口Internal Port A)互联。The east-west physical ports and west-bound physical ports of each RPR node form the RPR logical port. In the RPR node, each switching unit is interconnected with each RPR processing unit through an internal physical Ethernet port Internal Port A).

目前,在单个RPR环的基础上演变处了不同RPR环构成RPR相交环网,RPR相交环网的不同RPR环相交于在两个RPR节点。At present, different RPR rings are evolved on the basis of a single RPR ring to form an RPR intersecting ring network, and different RPR rings in the RPR intersecting ring network intersect at two RPR nodes.

发明内容Contents of the invention

本申请的目的在于提供一种弹性分组环的共用链路转发报文的方法及设备,通过相交节点之间在其中一个RPR子环的物理链路承载相交节点在其他RPR子环上的流量。The purpose of this application is to provide a method and device for forwarding messages on a shared link of an RPR, in which a physical link between intersecting nodes in one RPR sub-ring bears traffic of intersecting nodes on other RPR sub-rings.

为实现上述目的,本申请提供了一种弹性分组环的共用链路转发报文的方法,该方法包括:设置邻居相交节点的RPR MAC地址为共用链路的对端节点RPR MAC;设置RPR共用环上的共用端口以用于不连接邻居相交节点的端口;RPR共用环设置在RPR共用环与RPR相交环之间的冗余共用通道;设置将共用端口为出端口的报文重定向到冗余共同通道的共用端口重定向表项;当待转发的RPR单播数据报文的出端口为共用端口,通过共用端口重定向表项将待转发的RPR单播数据报文从RPR共用环传递到RPR相交环;为待转发的RPR单播数据报文封装带有指定VLAN且目的RPR MAC地址为共用链路的对端节点MAC地址的外层RPR头;通过RPR相交环上到达邻居相交节点的最短路径上的RPR端口发送带有外层RPR头的RPR单播数据报文。In order to achieve the above object, the present application provides a method for forwarding messages on a shared link of an RPR, the method comprising: setting the RPR MAC address of the neighbor intersecting node as the peer node RPR MAC address of the shared link; setting the RPR shared The shared port on the ring is used for ports not connected to neighbor intersecting nodes; the RPR shared ring is set as a redundant shared channel between the RPR shared ring and the RPR intersected ring; Shared port redirection entries of other common channels; when the outgoing port of the RPR unicast data message to be forwarded is a shared port, the RPR unicast data message to be forwarded is transmitted from the RPR shared ring through the shared port redirection table entry To the RPR intersecting ring; encapsulate the outer RPR header with the specified VLAN and the destination RPR MAC address as the peer node MAC address of the shared link for the RPR unicast data packet to be forwarded; reach the neighbor intersecting node through the RPR intersecting ring The RPR port on the shortest path sends the RPR unicast data packet with the outer RPR header.

为实现上述目的,本申请还提供了一种弹性分组环的共用链路转发报文的设备,该设备包括处理器以及存储器;存储器用于存储处理器可执行指令;其中,处理器通过运行存储器中的处理器可执行指令用以执行以下操作:设置邻居相交节点的RPR MAC地址为共用链路的对端节点RPR MAC;设置RPR共用环上的共用端口以用于不连接所述邻居相交节点的端口RPR共用环;设置在RPR共用环与RPR相交环之间的冗余共用通道;设置将共用端口为出端口的报文重定向到冗余共同通道的共用端口重定向表项;当待转发的RPR单播数据报文的出端口为共用端口,通过共用端口重定向表项将待转发的RPR单播数据报文从RPR共用环传递到RPR相交环;为待转发的RPR单播数据报文封装带有指定VLAN且目的RPR MAC地址为共用链路的对端节点MAC地址的外层RPR头;通过RPR相交环上到达邻居相交节点的最短路径上的RPR端口发送带有外层RPR头的RPR单播数据报文;通过相交节点之间在其中一个RPR子环的物理链路承载相交节点在其他RPR子环上的流量。In order to achieve the above purpose, the present application also provides a device for forwarding messages on a shared link of an elastic packet ring, the device includes a processor and a memory; the memory is used to store instructions executable by the processor; wherein, the processor runs the memory The processor in the processor can execute instructions to perform the following operations: set the RPR MAC address of the neighbor intersecting node as the peer node RPR MAC of the shared link; set the shared port on the RPR shared ring for not connecting the neighbor intersecting node The port RPR shared ring; set the redundant shared channel between the RPR shared ring and the RPR intersecting ring; set the shared port redirection table entry that redirects the packets with the shared port as the outgoing port to the redundant shared channel; when waiting The outgoing port of the forwarded RPR unicast data message is a shared port, and the RPR unicast data message to be forwarded is transferred from the RPR shared ring to the RPR intersecting ring through the shared port redirection entry; the RPR unicast data message to be forwarded is The message encapsulates the outer RPR header with the specified VLAN and the destination RPR MAC address is the MAC address of the peer node of the shared link; the outer RPR header is sent through the RPR port on the shortest path to the neighbor intersecting node on the RPR intersecting ring. The RPR unicast data packet with the header; the traffic of the intersecting nodes on other RPR subrings is carried by the physical link between the intersecting nodes in one RPR subring.

本申请的有益效果在于将RPR共用环上相交节点之间流量通过相交环承载,有利于RPR相交环网的组网的应用。The beneficial effect of the present application is that the traffic between intersecting nodes on the RPR shared ring is carried by the intersecting ring, which is beneficial to the application of the networking of the RPR intersecting ring network.

附图说明Description of drawings

图1为本申请提供的弹性分组环的共用链路转发报文的方法实施例的流程图;Fig. 1 is the flowchart of the method embodiment of the shared link forwarding message of RPR provided by the present application;

图2A-2B为本申请实施例提供的相交节点的内部示意图;2A-2B are internal schematic diagrams of intersection nodes provided by the embodiment of the present application;

图3为本申请实施例提供的RPR相交环网共用链路示意图;FIG. 3 is a schematic diagram of a shared link of an RPR intersecting ring network provided by an embodiment of the present application;

图4为本申请实施例提供的RPR相交环网的相交节点的共用链路内部示意图;FIG. 4 is an internal schematic diagram of the shared link of the intersecting nodes of the RPR intersecting ring network provided by the embodiment of the present application;

图5为本申请提供弹性分组环的共用链路转发设备实施例的示意图。Fig. 5 is a schematic diagram of an embodiment of a shared link forwarding device providing a resilient packet ring in the present application.

具体实施方式detailed description

将以多个附图所示的多个例子进行详细说明。在以下详细描述中,多个具体细节用于提供对本申请的全面理解。实例中没有详细地描述已知的方法、步骤、组件以及电路,以免使这些例子的难于理解。A detailed description will be given with a plurality of examples shown in a plurality of drawings. In the following detailed description, numerous specific details are used to provide a thorough understanding of the application. Well-known methods, procedures, components and circuits have not been described in detail in order not to obscure the examples.

使用的术语中,术语“包括”表示包括但不限于;术语“含有”表示包括但不限于;术语“以上”、“以内”以及“以下”包含本数;术语“大于”、“小于”表示不包含本数。术语“基于”表示至少基于其中一部分。Among the terms used, the term "comprising" means including but not limited to; the term "comprising" means including but not limited to; the terms "above", "within" and "below" include the number; the terms "greater than" and "less than" mean not Include this number. The term "based on" means based on at least a portion thereof.

图1为本申请提供的弹性分组环的共用链路转发报文的方法实施例的流程图;该实施例包括:Fig. 1 is the flow chart of the method embodiment of the shared link forwarding message of RPR that the application provides; This embodiment comprises:

步骤101,设置邻居相交节点的RPR MAC地址为共用链路的对端节点RPR MAC;Step 101, setting the RPR MAC address of the neighbor intersecting node as the peer node RPR MAC of the shared link;

步骤102,设置RPR共用环上的共用端口以用于不连接邻居相交节点的端口RPR共用环;Step 102, setting a shared port on the RPR shared ring to be used for an RPR shared ring not connected to a port of a neighboring intersecting node;

步骤103,设置在RPR共用环与RPR相交环之间的冗余共用通道;Step 103, setting a redundant shared channel between the RPR shared ring and the RPR intersecting ring;

步骤104,设置将共用端口为出端口的报文重定向到冗余共同通道的共用端口重定向表项;Step 104, setting the common port redirection table item that redirects the message that the shared port is the outgoing port to the redundant common channel;

步骤105,当待转发的RPR单播数据报文的出端口为共用端口,通过共用端口重定向表项将待转发的RPR单播数据报文从RPR共用环传递到RPR相交环;Step 105, when the outgoing port of the RPR unicast data message to be forwarded is a shared port, the RPR unicast data message to be forwarded is transferred from the RPR shared ring to the RPR intersecting ring through the shared port redirection entry;

步骤106,为待转发的RPR单播数据报文封装带有指定VLAN且目的RPR MAC地址为共用链路的对端节点RPR MAC地址的外层RPR头;Step 106, encapsulating the RPR unicast data message to be forwarded with the outer layer RPR header with the specified VLAN and the destination RPR MAC address being the peer node RPR MAC address of the shared link;

步骤107,通过RPR相交环上到达邻居相交节点的最短路径上的RPR端口发送带有外层RPR头的RPR单播数据报文。Step 107: Send the RPR unicast data message with the outer RPR header through the RPR port on the shortest path to the neighbor intersecting node on the RPR intersecting ring.

图2A-2B为通过相交环的共用链路连接节点A和节点B的内部示意图。2A-2B are internal schematic diagrams of nodes A and B connected by a common link of intersecting rings.

节点A、节点B被配置为共用物理链路模式,配置节点A在RPR环20的西向物理端口为共用端口不连接物理链路;配置节点B在RPR环20的东向物理端口为共用端口不连接物理链路。Node A and Node B are configured in the shared physical link mode, and the westbound physical port of node A on the RPR ring 20 is configured as a shared port without connecting to the physical link; the eastbound physical port of node B on the RPR ring 20 is configured as a shared port without Connect the physical link.

配置节点A和节点B互为共用链路的对端节点RPR MAC,用以根据共用链路的对端节点的RPR MAC为目的RPR MAC地址封装外层RPR承载隧道头。Configure node A and node B as the peer node RPR MAC of the shared link to encapsulate the outer RPR bearer tunnel header according to the RPR MAC address of the peer node of the shared link as the destination RPR MAC address.

配置节点A在RPR20环的西向物理端口为共用RPR端口,配置节点B在RPR20环的西向物理端口为共用RPR端口。Configure the westbound physical port of node A on the RPR20 ring as a shared RPR port, and configure the westbound physical port of node B on the RPR20 ring as a shared RPR port.

节点A中,配置RPR转发通道以及冗余共用通道;其中,RPR转发通道包括交换芯片S1与RPR芯片P1之间的Internal Port 30以及交换芯片S2与RPR芯片P2之间的InternalPort 32;冗余共用通道包括交换芯片S1与RPR芯片P1之间的Internal Port 31以及交换芯片S2与RPR芯片P2之间的Internal Port 32。In node A, configure the RPR forwarding channel and the redundant shared channel; wherein, the RPR forwarding channel includes the Internal Port 30 between the switch chip S1 and the RPR chip P1 and the Internal Port 32 between the switch chip S2 and the RPR chip P2; the redundant shared The channel includes an Internal Port 31 between the switch chip S1 and the RPR chip P1 and an Internal Port 32 between the switch chip S2 and the RPR chip P2.

节点B中,配置RPR转发通道以及冗余共用通道;其中,RPR转发通道包括交换芯片S3与RPR芯片P3之间的Internal Port 34以及交换芯片S4与RPR芯片P4之间的InternalPort 36;冗余共用通道包括交换芯片S3与RPR芯片P3之间的Internal Port 35以及交换芯片S2与RPR芯片P2之间的Internal Port 37。In node B, configure the RPR forwarding channel and the redundant shared channel; wherein, the RPR forwarding channel includes the Internal Port 34 between the switch chip S3 and the RPR chip P3 and the Internal Port 36 between the switch chip S4 and the RPR chip P4; the redundant shared The channel includes an Internal Port 35 between the switch chip S3 and the RPR chip P3 and an Internal Port 37 between the switch chip S2 and the RPR chip P2.

节点A、节点B的交换芯片S1-S4收到需要上环的以太网报文时,分别通过RPR转发通道的Internal Port30、32、34、36发往连接的RPR芯片进行RPR封装和转发;节点A、节点B的RPR芯片P1-P4收到需要下环的RPR数据报文时,分别通过RPR转发通道的InternalPort30、32、34、36发送发往连接的交换芯片S1-S4进行RPR解封装以及以太转发。When the switching chips S1-S4 of node A and node B receive the Ethernet message that needs to be connected to the ring, they send it to the connected RPR chip through the Internal Port30, 32, 34, and 36 of the RPR forwarding channel for RPR encapsulation and forwarding; A. When the RPR chip P1-P4 of node B receives the RPR data message that needs to be dropped, it sends it to the connected switching chip S1-S4 through the InternalPort30, 32, 34, and 36 of the RPR forwarding channel for RPR decapsulation and Ethernet forwarding.

节点A、节点B的RPR芯片P1-P4收到跨相交环转发的RPR数据报文/RPR协议报文时,通过RPR转发通道在节点A、节点B内将其中一个RPR环(例如RPR芯片P1、P3)接入的数据或转发的协议报文跨环发送到另外一个相交环(例如RPR芯片P2、P4)。When the RPR chips P1-P4 of node A and node B receive the RPR data message/RPR protocol message forwarded across intersecting rings, one of the RPR rings (such as RPR chip P1 , P3) The data accessed or the forwarded protocol message is sent across the ring to another intersecting ring (for example, RPR chips P2, P4).

本申请的改进点在于,通过冗余共用通道在节点A、节点B内部将RPR20环上节点A和节点B之间的RPR协议报文/数据报文通过共用的RPR10环的链路进行传递,实现跨环共用链路转发。The improvement point of the present application is that the RPR protocol message/data message between the node A and the node B on the RPR20 ring is transmitted through the link of the shared RPR10 ring through the redundant shared channel inside the node A and the node B, Realize cross-ring shared link forwarding.

节点A中,配置的共用端口重定向表项;其中,匹配项为出端口为RPR环20的西向物理端口,动作项为发送到Internal Port31。In node A, the common port redirection entry is configured; the matching item is the westbound physical port whose outbound port is RPR ring 20, and the action item is sending to Internal Port31.

节点B中,配置的共用端口重定向表项;其中,匹配项为出端口为RPR环20的东向物理端口,动作项为发送到Internal Port34。In node B, the common port redirection entry is configured; wherein, the matching item is the eastbound physical port whose egress port is the RPR ring 20, and the action item is sending to Internal Port34.

图3为本申请提供的RPR相交环网共用链路示意图;RPR相交环网中,RPR环10包括:节点A-节点B-节点C-节点D;RPR环20包括节点A-节点B-节点E-节点F-节点G-节点H。Figure 3 is a schematic diagram of the shared link of the RPR intersecting ring network provided by the present application; in the RPR intersecting ring network, the RPR ring 10 includes: node A-node B-node C-node D; the RPR ring 20 includes node A-node B-node E-Node F-Node G-Node H.

图4为本申请实施例提供的RPR相交环网的相交节点的共用链路内部示意图;节点A和节点B之间在RPR环20上没有连接的物理链路。节点A和节点B通过RPR环10的承载RPR环20上节点A和节点B之间的流量。FIG. 4 is an internal schematic diagram of the common link of the intersecting nodes of the RPR intersecting ring network provided by the embodiment of the present application; there is no physical link connected on the RPR ring 20 between node A and node B. The traffic between node A and node B on the RPR ring 20 is carried by node A and node B through the RPR ring 10 .

节点A和节点B是RPR环10和20的相交节点。RPR环10为RPR共用环,节点A在RPR环10、20的RPR逻辑口分别是A10、A20。在RPR环10、20上,节点B的RPR逻辑口分别是B10、B20。Node A and Node B are intersection nodes of RPR rings 10 and 20 . RPR ring 10 is an RPR shared ring, and RPR logical ports of node A on RPR rings 10 and 20 are A10 and A20 respectively. On the RPR rings 10 and 20, the RPR logical ports of Node B are B10 and B20 respectively.

节点A上配置多环相交组multi-ring cross group 1,配置RPR逻辑口A10、A20属于multi-ring cross group 1;将RPR逻辑口A10关联至环优先级0的RPR环10;将RPR逻辑口20关联至环优先级1的RPR环20。配置节点A的邻居节点RPR MAC地址为B节点的RPR MAC地址,RPR MAC B;配置节点A的相交组角色为主节点(Primary)。Configure multi-ring cross group 1 on node A, and configure RPR logical ports A10 and A20 to belong to multi-ring cross group 1; associate RPR logical port A10 with RPR ring 10 with ring priority 0; 20 is associated with RPR ring 20 with ring priority 1. Configure the RPR MAC address of the neighbor node of node A to be the RPR MAC address of node B, RPR MAC B; configure the intersecting group role of node A to be the primary node (Primary).

节点B上配置多环相交组multi-ring cross group 1,配置RPR逻辑口B10、B20属于multi-ring cross group 1;将RPR逻辑口B10关联至环优先级0的RPR环10;将RPR逻辑口B20关联至环优先级1的RPR环20。配置节点B的邻居节点RPR MAC地址为A节点的RPR MAC A;配置节点B的相交组角色为从节点(Secondary)。Configure multi-ring cross group 1 on node B, and configure RPR logical ports B10 and B20 to belong to multi-ring cross group 1; associate RPR logical port B10 with RPR ring 10 with ring priority 0; B20 is associated with RPR ring 20 with ring priority 1. Configure the RPR MAC address of Node B's neighbor node as RPR MAC A of Node A; configure the intersecting group role of Node B as Secondary.

本实施例中,环优先级0表示最高优先级,环优先级1的优先级逐级递减。In this embodiment, ring priority 0 represents the highest priority, and the priority of ring priority 1 decreases step by step.

节点A分别在2个RPR环上发送源RPR MAC为RPR MAC A的拓扑收集协议报文,其中携带多环相交组标识multi-ring cross group 1,环优先级。Node A sends a topology collection protocol message whose source RPR MAC is RPR MAC A on the two RPR rings, which carry the multi-ring cross group identifier multi-ring cross group 1 and the ring priority.

节点A通过RPR10环的西向物理端口或者东向物理端口发送的拓扑收集协议报文,节点B收到节点A在RPR环10上发送的拓扑收集协议后,可以获知节点A上配置的RPR环10的优先级。同样,节点B通过RPR10环的西向物理端口或者东向物理端口发送的拓扑收集协议报文,节点A收到节点B在RPR环10上发送的拓扑收集协议后,可以获知节点B上配置的RPR环10的优先级。Node A sends a topology collection protocol packet through the westbound physical port or eastbound physical port of the RPR10 ring. After receiving the topology collection protocol packet sent by node A on RPR ring 10, node B can learn the RPR ring 10 configured on node A. priority. Similarly, node B sends a topology collection protocol packet through the westbound physical port or eastbound physical port of the RPR10 ring. After receiving the topology collection protocol message sent by node B on RPR ring 10, node A can learn the RPR configured on node B. The priority of ring 10.

节点A通过RPR20环的西向物理端口发送的拓扑收集协议报文时,节点A基于共用端口重定向表项将拓扑收集协议报文通过Internal Port 31发送到交换芯片S1,交换芯片S1基于配置的冗余共用通道Internal Port33将拓扑协议报文的芯片间出端口设置为Internal Port 33,通过交换芯片将带有冗余共用通道的芯片出端口Internal Port33的拓扑收集协议报文发送到交换芯片S2。When node A sends a topology collection protocol packet through the westbound physical port of the RPR20 ring, node A sends the topology collection protocol packet to the switch chip S1 through Internal Port 31 based on the shared port redirection entry, and the switch chip S1 is based on the configured redundancy The remaining shared channel Internal Port33 sets the inter-chip output port of the topology protocol message to Internal Port 33, and sends the topology collection protocol message of the chip output port Internal Port33 with the redundant shared channel to the switch chip S2 through the switch chip.

因为在多业务板的通信设备之间,交换芯片之间同步各自的芯片端口信息;当配置了冗余共用通道的Internal Port31、33后,交换芯片S1和S2可根据同步的芯片端口信息实现冗余共用通道内的传递。Because between the communication devices of the multi-service board, the switching chips synchronize their respective chip port information; when the Internal Port 31 and 33 of the redundant shared channel are configured, the switching chips S1 and S2 can realize redundancy based on the synchronized chip port information. The rest of the transfers within the shared channel.

节点A的交换芯片S2收到冗余拓扑协议,剥掉冗余共用通道的芯片出端口Internal Port33,通过Internal Port33发送拓扑收集协议到RPR芯片P2。The switch chip S2 of node A receives the redundant topology protocol, strips off the chip output port Internal Port33 of the redundant shared channel, and sends the topology collection protocol to the RPR chip P2 through Internal Port33.

节点A将需要通过RPR20环的西向物理端口发送的RPR协议报文通过共用端口重定向表项重定向到冗余共用通道,通过冗余共用通道将原本通过RPR20环转发的协议报文跨环传递到RPR10环。Node A redirects the RPR protocol packet that needs to be sent through the westbound physical port of the RPR20 ring to the redundant shared channel through the shared port redirection entry, and transfers the protocol message originally forwarded through the RPR20 ring across the ring through the redundant shared channel to the RPR10 ring.

节点A的RPR芯片P2通过冗余共用通道的Internal Port33收到拓扑收集协议,添加带有指定VLAN的RPR隧道头;源RPR MAC为节点A的RPR MAC,目的RPR MAC为节点B的RPRMAC;即,共用链路的对端节点RPR MAC。The RPR chip P2 of node A receives the topology collection protocol through Internal Port33 of the redundant shared channel, and adds an RPR tunnel header with a specified VLAN; the source RPR MAC is the RPR MAC of node A, and the destination RPR MAC is the RPRMAC of node B; , share the peer node RPR MAC of the link.

节点A将带有外层RPR隧道头的拓扑收集协议报文通过RPR环10上的西向物理端口发送。Node A sends the topology collection protocol packet with the outer RPR tunnel header through the westbound physical port on the RPR ring 10 .

节点B通过RPR环10的东向物理端口收到带有外层RPR隧道头的拓扑收集协议报文,根据指定VLAN和目的RPR MAC地址,剥掉外层隧道头,通过冗余共同通道的InternalPort36发送。Node B receives the topology collection protocol packet with the outer RPR tunnel header through the eastbound physical port of RPR ring 10, strips the outer tunnel header according to the specified VLAN and destination RPR MAC address, and passes through InternalPort36 of the redundant common channel send.

节点B的交换芯片S4基于配置的冗余共用通道的Internal Port36将拓扑协议报文的芯片间出端口设置为Internal Port 36,通过交换芯片S4将带有冗余共用通道的芯片出端口Internal Port36的拓扑收集协议报文发送到交换芯片S3。The switching chip S4 of the node B sets the inter-chip output port of the topology protocol message to Internal Port 36 based on the Internal Port36 of the redundant shared channel configured, and the internal port of the chip with the redundant shared channel is set to Internal Port36 through the switching chip S4. The topology collection protocol message is sent to the switch chip S3.

节点B的交换芯片S3收到冗余拓扑协议,剥掉冗余共用通道的芯片出端口Internal Port36,通过Internal Port35发送拓扑收集协议到RPR芯片P3。The switch chip S3 of node B receives the redundant topology protocol, strips off the chip output port Internal Port36 of the redundant shared channel, and sends the topology collection protocol to the RPR chip P3 through Internal Port35.

节点B通过冗余共用通道将通过RPR10环转发的RPR20环的冗余协议报文跨环传递到RPR20环。节点B收到节点A在RPR环10上发送的拓扑收集协议后,可以获知节点A上配置的RPR环10的优先级。The node B transmits the redundancy protocol message of the RPR20 ring forwarded by the RPR10 ring to the RPR20 ring across rings through the redundant shared channel. After node B receives the topology collection protocol sent by node A on the RPR ring 10, it can learn the priority of the RPR ring 10 configured on node A.

图2和图3所示实例中,当节点A和节点B各自通过RPR20环的东西物理端口发送的拓扑收集协议报文时,节点A无需通过RPR环10发送RPR20环的拓扑收集协议报文至节点B,而节点B的RPR20环的RPR芯片3通过共用端口重定向表项,通过冗余共用通道传递拓扑收集协议报文到RPR芯片4。节点B通过冗余共用通道收到拓扑收集协议报文,添加带有指定VLAN的外层RPR头,通过RPR环上节点B到节点A的最短路径(图2中节点B的RPR10环的东向物理端口连接节点A的RPR10环的西向物理端口)发送到节点A。节点A的RPR芯片2收到带有指定VLAN的RPR报文,移除外层RPR头,通过冗余共同通道发送到RPR芯片1。In the example shown in Figure 2 and Figure 3, when node A and node B send the topology collection protocol message through the east and west physical ports of the RPR20 ring respectively, node A does not need to send the topology collection protocol message of the RPR20 ring through RPR ring 10 to Node B, and the RPR chip 3 of the RPR20 ring of the node B transmits the topology collection protocol message to the RPR chip 4 through the shared port redirection entry through the redundant shared channel. Node B receives the topology collection protocol message through the redundant shared channel, adds the outer layer RPR header with the specified VLAN, and passes the shortest path from node B to node A on the RPR ring (the east direction of the RPR10 ring of node B in Figure 2 The physical port is connected to the westbound physical port of the RPR10 ring of node A) to send to node A. RPR chip 2 of node A receives the RPR packet with the specified VLAN, removes the outer RPR header, and sends it to RPR chip 1 through the redundant common channel.

节点A和节点B选举最高优先级的RPR环10为主环,确定低优先级的RPR环20为子环。节点A和节点B各自将主环上的RPR逻辑口A0和RPR逻辑口B0设置为转发(Forward)状态。multi-ring cross group 1的主节点A将本设备子环的RPR逻辑口A1都设置为转发状态。multi-ring cross group 1的从节点B将本设备子环的RPR逻辑口B1设置为阻塞。Node A and Node B elect the RPR ring 10 with the highest priority as the main ring, and determine the RPR ring 20 with the lower priority as the sub-ring. Node A and node B respectively set the RPR logical port A0 and the RPR logical port B0 on the main ring to the forwarding (Forward) state. The master node A of multi-ring cross group 1 sets the RPR logical port A1 of the sub-ring of the local device to the forwarding state. The slave node B of multi-ring cross group 1 sets the RPR logical port B1 of the sub-ring of the local device as blocking.

当通过RPR10环、RPR20环上各RPR节点上环的数据报文需要跨环转发时,按照现有方式在各自的RPR环上将RPR数据报文发往主节点A,由主节点A进行跨环转发,本申请不再赘述。When data packets passing through the RPR nodes on the RPR10 ring and RPR20 ring need to be forwarded across rings, the RPR data packets are sent to the master node A on the respective RPR rings according to the existing method, and the master node A performs cross-ring forwarding. The ring forwarding is not repeated in this application.

本申请的改进点在于,RPR20环上RPR数据报文需要在节点A和B之间转发时,当节点A通过RPR环20的东向物理端口收到RPR数据报文或收到本地上环的RPR数据报文时,当目的MAC地址为节点E的RPR MAC地址,根据收集的RPR20环的拓扑,从RPR20环的西向物理端口发送。The improvement point of this application is that when the RPR data message on the RPR20 ring needs to be forwarded between nodes A and B, when node A receives the RPR data message through the eastbound physical port of the RPR ring 20 or receives the local In the case of an RPR data message, when the destination MAC address is the RPR MAC address of node E, it is sent from the westbound physical port of the RPR20 ring according to the collected topology of the RPR20 ring.

节点A根据共用端口重定向表项,将RPR20环的RPR数据报文发送到冗余共用通道,通过冗余共用通道发送到RPR10环,添加带有指定VLAN和目的RPR MAC地址为RPR B地址的外层RPR头,通过节点A在共用链路在RPR20环上最短路径发送,即图3中节点A在RPR10环上的西向物理端口。Node A sends the RPR data packet of the RPR20 ring to the redundant shared channel according to the shared port redirection table entry, sends it to the RPR10 ring through the redundant shared channel, and adds the RPR data packet with the specified VLAN and the destination RPR MAC address as the address of RPR B. The outer RPR header is sent by the shortest path on the RPR20 ring through the shared link of node A, that is, the westbound physical port of node A on the RPR10 ring in Figure 3 .

节点B接收带有指定VLAN的RPR报文,剥掉外层RPR头,通过冗余共用通道发送到RPR20环。节点B通过冗余共用通道收到RPR20环的数据报文,根据共用端口,即RPR20环的东向物理端口和源RPR MAC地址学习RPR MAC地址。Node B receives the RPR packet with the specified VLAN, strips off the outer RPR header, and sends it to the RPR20 ring through the redundant shared channel. Node B receives the data message of the RPR20 ring through the redundant shared channel, and learns the RPR MAC address according to the shared port, that is, the eastbound physical port of the RPR20 ring, and the source RPR MAC address.

然后,节点B根据目的RPR MAC地址查找RPR MAC地址表项,当目的RPR MAC地址为RPR MACB,剥掉RPR封装,根据内层以太网报文的目的MAC地址转发(通过RPR3的InternalPort34发送交换芯片S3,交换芯片S3剥掉RPR封装后,根据内层以太网报文的目的MAC地址对应的出端口进行转发);当目的RPR MAC地址为RPR20环的其他节点的RPR MAC地址(例如节点E),则通过RPR20环上到达其他节点的路径发送。Then, Node B looks up the RPR MAC address entry according to the destination RPR MAC address. When the destination RPR MAC address is RPR MACB, the RPR encapsulation is stripped off, and forwarded according to the destination MAC address of the inner layer Ethernet message (transmitting the switch chip through InternalPort34 of RPR3 S3, after the switching chip S3 peels off the RPR encapsulation, it forwards according to the outgoing port corresponding to the destination MAC address of the inner layer Ethernet message); when the destination RPR MAC address is the RPR MAC address of other nodes of the RPR20 ring (such as node E) , it is sent through the path to other nodes on the RPR20 ring.

节点B收到的RPR数据报文需要发往节点A时,通过相同的机制将出端口为RPR20环上东向物理端口的RPR数据报文重定向到冗余共用通道,由冗余共用通道将RPR数据报文将RPR20环的数据报文转发到RPR10环,添加带有指定VLAN和目的RPR MAC地址为RPR A地址的外层RPR头,通过节点B在共用链路在RPR20环上最短路径发送,即图3中节点A在RPR10环上的东向物理端口。When the RPR data packet received by node B needs to be sent to node A, the RPR data packet whose egress port is the eastbound physical port on the RPR20 ring is redirected to the redundant shared channel through the same mechanism. The RPR data message forwards the data message of the RPR20 ring to the RPR10 ring, adds the outer RPR header with the specified VLAN and the destination RPR MAC address as the RPR A address, and sends it on the shortest path on the RPR20 ring through the shared link of Node B , that is, the eastbound physical port of node A on the RPR10 ring in Figure 3.

假如图3中节点A和节点B在RPR10环间的链路断开,节点B在RPR10环上到达节点A的最短路径则为西向物理端口。If the link between node A and node B on the RPR10 ring is broken in Figure 3, the shortest path from node B to node A on the RPR10 ring is the westbound physical port.

节点A从RPR10环的西向物理端口或东向物理端口接收带有指定VLAN的RPR报文,剥掉外层RPR头,通过冗余共用通道发送到RPR20环。节点B通过冗余共用通道收到RPR20环的数据报文,根据共用端口,即RPR20环的东向物理端口和源RPR MAC地址学习RPR MAC地址。Node A receives the RPR packet with the specified VLAN from the westbound physical port or eastbound physical port of the RPR10 ring, strips off the outer RPR header, and sends it to the RPR20 ring through the redundant shared channel. Node B receives the data message of the RPR20 ring through the redundant shared channel, and learns the RPR MAC address according to the shared port, that is, the eastbound physical port of the RPR20 ring, and the source RPR MAC address.

然后,节点A根据目的RPR MAC地址查找RPR MAC地址表项,当目的RPR MAC地址为RPR MACA,剥掉RPR封装,根据内层以太网报文的目的MAC地址转发(通过RPR1的InternalPort30发送交换芯片S1,交换芯片S1剥掉RPR封装后,根据内层以太网报文的目的MAC地址对应的出端口进行转发);当目的RPR MAC地址为RPR20环的其他节点的RPR MAC地址(例如节点H),则通过RPR20环上到达其他节点的路径的西向RPR端口发送。Then, node A looks up the RPR MAC address entry according to the destination RPR MAC address. When the destination RPR MAC address is RPR MACA, it strips off the RPR encapsulation, and forwards the packet according to the destination MAC address of the inner layer Ethernet packet (transmitting the switch chip through InternalPort30 of RPR1 S1, after the switching chip S1 peels off the RPR encapsulation, it forwards according to the outgoing port corresponding to the destination MAC address of the inner layer Ethernet message); when the destination RPR MAC address is the RPR MAC address of other nodes of the RPR20 ring (such as node H) , it is sent through the westbound RPR port of the path to other nodes on the RPR20 ring.

当节点A在RPR20环上发送RPR非单播数据报文(组播/广播)时,通过RPR环20的东向物理端口和西向物理端口发送,通过共用端口将RPR20环的RPR非单播报文重定向到冗余共用通道,通过冗余共用通道传递到RPR10环,添加指定VLAN和RPR MACB(共用链路的对端节点RPR MAC地址)的外层RPR头,通过RPR10环的最短路径发送到节点B。When node A sends an RPR non-unicast data message (multicast/broadcast) on the RPR20 ring, it sends it through the eastbound physical port and the westbound physical port of the RPR ring 20, and transmits the RPR non-unicast message of the RPR20 ring through the shared port Redirect to the redundant shared channel, pass it to the RPR10 ring through the redundant shared channel, add the outer RPR header of the specified VLAN and RPR MACB (the peer node RPR MAC address of the shared link), and send it to the RPR10 ring through the shortest path Node B.

节点B收到带有指定VLAN的RPR非单播数据报文,剥掉外层RPR头,通过冗余共同通道传递到RPR20环。节点B通过冗余共同通道收到RPR非单播报文,确认通过RPR非单播报文的入接口为共用端口,则通过RPR20环的西向物理端口发送。Node B receives the RPR non-unicast data message with the specified VLAN, strips the outer RPR header, and transmits it to the RPR20 ring through the redundant common channel. Node B receives the RPR non-unicast message through the redundant common channel, and confirms that the incoming interface of the RPR non-unicast message is a common port, and then sends it through the westbound physical port of the RPR20 ring.

通过图2A-2B、图3、图4上述实施例的说明,共用RPR20环的RPR协议报文以及RPR数据报文都可通过相交环RPR10环的链路承载转发。2A-2B , FIG. 3 , and FIG. 4 described above, the RPR protocol packets and RPR data packets sharing the RPR20 ring can be carried and forwarded through the links of the intersecting RPR10 rings.

已有的RPR相交环的每个RPR环各自独立组网,在两个相交点之间,每个环的各个节点之间都需要独立的互联物理链路,通常为光纤;光纤资源铺设一般都比较紧张。相交环网的相交节点之间如果只铺设了一段光纤,则相交环网中的某一个RPR环(例如图3和图4中的RPR20环)上,相交节点之间没有直连光纤,导致该RPR环上的数据报文和协议报文只能在一个方向转发,一旦其中一个节点故障则导致RPR环的流量和协议报文转发中断。In the existing RPR intersecting rings, each RPR ring is independently networked. Between the two intersection points, each node of each ring needs an independent interconnection physical link, usually an optical fiber; the laying of optical fiber resources is generally relatively nervous. If only a section of optical fiber is laid between the intersecting nodes of the intersecting ring network, on a certain RPR ring in the intersecting ring network (such as the RPR20 ring in Figure 3 and Figure 4), there is no directly connected optical fiber between the intersecting nodes, resulting in the Data packets and protocol packets on the RPR ring can only be forwarded in one direction. Once one of the nodes fails, the forwarding of traffic and protocol packets on the RPR ring will be interrupted.

本申请将RPR共用环上相交节点之间流量通过相交环承载,更加有利于RPR相交环网的组网的应用。In this application, the traffic between intersecting nodes on the RPR shared ring is carried by the intersecting ring, which is more conducive to the application of the networking of the RPR intersecting ring network.

图5为本申请提供弹性分组环的共用链路转发设备实施例的示意图。该设备50包括处理器以及存储器;存储器用于存储处理器可执行指令;其中,处理器通过运行存储器中的处理器可执行指令用以执行以下操作:设置邻居相交节点的RPR MAC地址为共用链路的对端节点RPR MAC;设置RPR共用环上连接邻居相交节点的端口为共用端口;设置在RPR共用环与RPR相交环之间的冗余共用通道;设置将共用端口为出端口的报文重定向到冗余共同通道的共用端口重定向表项;当待转发的RPR单播数据报文的出端口为共用端口,通过共用端口重定向表项将待转发的RPR单播数据报文从RPR共用环传递到RPR相交环;为待转发的RPR单播数据报文封装带有指定VLAN且目的RPR MAC地址为共用链路的对端节点MAC地址的第一外层RPR头;通过RPR相交环上到达邻居相交节点的最短路径上的RPR端口发送带有第一外层RPR头的RPR单播数据报文。Fig. 5 is a schematic diagram of an embodiment of a shared link forwarding device providing a resilient packet ring in the present application. The device 50 includes a processor and a memory; the memory is used to store processor-executable instructions; wherein, the processor executes the processor-executable instructions in the memory to perform the following operations: set the RPR MAC address of the neighbor intersection node as a shared link RPR MAC of the peer node of the road; set the port connected to the neighbor intersecting node on the RPR shared ring as the shared port; set the redundant shared channel between the RPR shared ring and the RPR intersecting ring; set the shared port as the outgoing port Redirect to the shared port redirection entry of the redundant common channel; when the outgoing port of the RPR unicast data packet to be forwarded is a shared port, the RPR unicast data packet to be forwarded is redirected from the The RPR shared ring is passed to the RPR intersecting ring; the RPR unicast data packet to be forwarded is encapsulated with the first outer RPR header with the specified VLAN and the destination RPR MAC address is the MAC address of the peer node of the shared link; through RPR intersecting The RPR port on the shortest path to the neighbor intersecting node on the ring sends the RPR unicast data packet with the first outer RPR header.

处理器通过运行存储器中的处理器可执行指令还执行以下操作:通过RPR相交环上到达邻居相交节点的最短路径上的RPR端口接收带有第二外层RPR头的RPR单播数据报文;其中,第二外层RPR头带有指定VLAN且目的RPR MAC地址为本设备RPR MAC地址;剥掉第二外层RPR头得到内层RPR单播数据报文;通过冗余共同通道将内层RPR单播数据报文从RPR相交环发送到RPR共用环;根据共用端口以及内层RPR单播数据报文的源RPR MAC地址学习RPR MAC地址表项;查找内层RPR单播数据报文的目的RPR MAC地址匹配的PRRMAC地址表项执行转发。The processor also performs the following operations by running the processor-executable instructions in the memory: receiving the RPR unicast data message with the second outer RPR header through the RPR port on the shortest path to the neighboring intersecting node on the RPR intersecting ring; Among them, the second outer layer RPR header has the specified VLAN and the destination RPR MAC address is the RPR MAC address of the device; the second outer layer RPR header is stripped to obtain the inner layer RPR unicast data packet; the inner layer RPR unicast data packets are sent from the RPR intersecting ring to the RPR shared ring; learn the RPR MAC address entry according to the shared port and the source RPR MAC address of the inner RPR unicast data packet; The PRRM MAC address entry matching the destination RPR MAC address is forwarded.

处理器通过运行存储器中的处理器可执行指令还执行以下操作:当待转发的RPR非单播数据报文的出端口为共用端口,通过共用端口重定向表项将待转发的RPR非单播数据报文从RPR共用环传递到RPR相交环;为待转发的RPR非单播数据报文封装带有指定VLAN且目的RPR MAC地址为共用链路的对端节点MAC地址的第三外层RPR头;通过RPR相交环上到达邻居相交节点的最短路径上的RPR端口发送带有第三外层RPR头的RPR非单播数据报文。The processor also performs the following operations by running the processor-executable instructions in the memory: when the outgoing port of the RPR non-unicast data message to be forwarded is a shared port, the RPR non-unicast data message to be forwarded is redirected to the The data message is transferred from the RPR shared ring to the RPR intersecting ring; for the RPR non-unicast data message to be forwarded, the third outer RPR with the specified VLAN and the destination RPR MAC address is the MAC address of the peer node of the shared link header; the RPR non-unicast data message with the third outer RPR header is sent through the RPR port on the shortest path to the neighbor intersecting node on the RPR intersecting ring.

处理器通过运行存储器中的处理器可执行指令还执行以下操作:通过RPR相交环上到达邻居相交节点的最短路径上的RPR端口接收带有第四外层RPR头的RPR非单播数据报文;其中,第四外层RPR头带有指定VLAN且目的RPR MAC地址为本设备RPR MAC地址;剥掉第四外层RPR头得到内层RPR非单播数据报文;通过冗余共同通道将内层非RPR单播数据报文从RPR相交环发送到RPR共用环;确定内层RPR单播数据报文的在RPR共用环的入接口为共用端口;通过RPR共用环上的另一RPR端口发送内层RPR非单播数据报文。The processor also performs the following operations by running the processor-executable instructions in the memory: receiving the RPR non-unicast data message with the fourth outer RPR header through the RPR port on the shortest path to the neighbor intersecting node on the RPR intersecting ring ; Among them, the fourth outer layer RPR header has the specified VLAN and the destination RPR MAC address is the RPR MAC address of the device; the fourth outer layer RPR header is stripped to obtain the inner layer RPR non-unicast data message; The inner non-RPR unicast data message is sent from the RPR intersecting ring to the RPR shared ring; the inbound interface of the inner RPR unicast data message in the RPR shared ring is determined as a shared port; through another RPR port on the RPR shared ring Send inner layer RPR non-unicast data packets.

以上仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above are only preferred embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.

Claims (8)

1.一种弹性分组环的共用链路转发报文的方法,其特征在于,所述方法包括:1. A method for forwarding messages of a shared link of an RPR, characterized in that the method comprises: 设置邻居相交节点的RPR MAC地址为共用链路的对端节点RPR MAC;Set the RPR MAC address of the neighbor intersecting node as the RPR MAC of the peer node of the shared link; 设置RPR共用环上的共用端口以用于不连接所述邻居相交节点的端口;setting the shared ports on the RPR shared ring to be used for ports not connected to the neighbor intersection nodes; 设置在所述RPR共用环与RPR相交环之间的冗余共用通道;A redundant shared channel is set between the RPR shared ring and the RPR intersecting ring; 设置将所述共用端口为出端口的报文重定向到所述冗余共同通道的共用端口重定向表项;Setting the shared port redirection table entry that redirects the packet that uses the shared port as the outgoing port to the shared port of the redundant common channel; 当待转发的RPR单播数据报文的出端口为所述共用端口,通过所述共用端口重定向表项将所述待转发的RPR单播数据报文从所述RPR共用环传递到所述RPR相交环;When the outgoing port of the RPR unicast data message to be forwarded is the shared port, transfer the RPR unicast data message to be forwarded from the RPR shared ring to the shared port through the shared port redirection entry RPR intersection ring; 为所述待转发的RPR单播数据报文封装带有指定VLAN且目的RPR MAC地址为所述共用链路的对端节点RPR MAC地址的第一外层RPR头;Encapsulating the RPR unicast data message to be forwarded with a first outer layer RPR header with a designated VLAN and a destination RPR MAC address being the RPR MAC address of the peer node of the shared link; 通过所述RPR相交环上到达所述邻居相交节点的最短路径上的RPR端口发送带有所述第一外层RPR头的RPR单播数据报文。sending the RPR unicast data packet with the first outer RPR header through the RPR port on the shortest path to the neighboring intersecting node on the RPR intersecting ring. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括,2. The method of claim 1, further comprising, 通过所述RPR相交环上到达所述邻居相交节点的最短路径上的RPR端口接收带有第二外层RPR头的RPR单播数据报文;其中,第二外层RPR头带有所述指定VLAN且目的RPR MAC地址为本设备RPR MAC地址;Receive the RPR unicast data message with the second outer RPR header through the RPR port on the shortest path to the neighbor intersecting node on the RPR intersecting ring; wherein, the second outer RPR header contains the specified VLAN and the destination RPR MAC address is the RPR MAC address of the device; 剥掉所述第二外层RPR头得到内层RPR单播数据报文;Stripping off the second outer layer RPR header to obtain an inner layer RPR unicast data message; 通过所述冗余共同通道将所述内层RPR单播数据报文从所述RPR相交环发送到所述RPR共用环;sending the inner layer RPR unicast data message from the RPR intersecting ring to the RPR shared ring through the redundant common channel; 根据所述共用端口以及所述内层RPR单播数据报文的源RPR MAC地址学习RPR MAC地址表项;Learning an RPR MAC address entry according to the shared port and the source RPR MAC address of the inner layer RPR unicast data message; 查找所述内层RPR单播数据报文的目的RPR MAC地址匹配的PRRMAC地址表项执行转发。Find the PRRM MAC address table entry matching the destination RPR MAC address of the inner layer RPR unicast data message and perform forwarding. 3.根据权利要求1所述的方法,其特征在于,所述方法还包括,3. The method of claim 1, further comprising, 当待转发的RPR非单播数据报文的出端口为所述共用端口,通过所述共用端口重定向表项将所述待转发的RPR非单播数据报文从所述RPR共用环传递到所述RPR相交环;When the outgoing port of the RPR non-unicast data message to be forwarded is the shared port, transfer the RPR non-unicast data message to be forwarded from the RPR shared ring to said RPR intersects rings; 为所述待转发的RPR非单播数据报文封装带有指定VLAN且目的RPR MAC地址为所述共用链路的对端节点MAC地址的第三外层RPR头;Encapsulating the RPR non-unicast data message to be forwarded with a third outer layer RPR header with a specified VLAN and the destination RPR MAC address being the peer node MAC address of the shared link; 通过所述RPR相交环上到达所述邻居相交节点的最短路径上的RPR端口发送带有所述第三外层RPR头的RPR非单播数据报文。sending the RPR non-unicast data packet with the third outer RPR header through the RPR port on the shortest path to the neighbor intersecting node on the RPR intersecting ring. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises: 通过所述RPR相交环上到达所述邻居相交节点的最短路径上的RPR端口接收带有第四外层RPR头的RPR非单播数据报文;其中,第四外层RPR头带有所述指定VLAN且目的RPR MAC地址为本设备RPR MAC地址;Receive the RPR non-unicast data packet with the fourth outer RPR header through the RPR port on the shortest path to the neighbor intersecting node on the RPR intersecting ring; wherein, the fourth outer RPR header contains the Specify the VLAN and the destination RPR MAC address is the RPR MAC address of the device; 剥掉所述第四外层RPR头得到内层RPR非单播数据报文;Stripping off the fourth outer layer RPR header to obtain the inner layer RPR non-unicast data message; 通过所述冗余共同通道将所述内层非RPR单播数据报文从所述RPR相交环发送到所述RPR共用环;sending the inner non-RPR unicast data message from the RPR intersecting ring to the RPR shared ring through the redundant common channel; 确定所述内层RPR单播数据报文在所述RPR共用环的入接口为所述共用端口;Determining that the inbound interface of the inner layer RPR unicast data message on the RPR shared ring is the shared port; 通过所述RPR共用环的另一RPR端口发送所述内层RPR非单播数据报文。sending the inner RPR non-unicast data packet through another RPR port of the RPR shared ring. 5.一种弹性分组环的共用链路转发报文的设备,其特征在于,所述设备包括处理器以及存储器;所述存储器用于存储处理器可执行指令;其中,所述处理器通过运行所述存储器中的处理器可执行指令用以执行以下操作:5. A device for forwarding messages on a shared link of an RPR, characterized in that the device includes a processor and a memory; the memory is used to store processor-executable instructions; wherein the processor runs The processor executable instructions in the memory are used to perform the following operations: 设置邻居相交节点的RPR MAC地址为共用链路的对端节点RPR MAC;Set the RPR MAC address of the neighbor intersecting node as the RPR MAC of the peer node of the shared link; 设置RPR共用环上的共用端口以用于不连接所述邻居相交节点的端口RPR共用环;Setting the shared port on the RPR shared ring for the RPR shared ring not connected to the port of the neighbor intersecting node; 设置在所述RPR共用环与RPR相交环之间的冗余共用通道;A redundant shared channel is set between the RPR shared ring and the RPR intersecting ring; 设置将所述共用端口为出端口的报文重定向到冗余共同通道的共用端口重定向表项;Setting the common port redirection table entry that redirects the packet whose shared port is the outgoing port to the redundant common channel; 当待转发的RPR单播数据报文的出端口为所述共用端口,通过所述共用端口重定向表项将所述待转发的RPR单播数据报文从所述RPR共用环传递到所述RPR相交环;When the outgoing port of the RPR unicast data message to be forwarded is the shared port, transfer the RPR unicast data message to be forwarded from the RPR shared ring to the shared port through the shared port redirection entry RPR intersection ring; 为所述待转发的RPR单播数据报文封装带有指定VLAN且目的RPR MAC地址为所述共用链路的对端节点RPR MAC地址的第一外层RPR头;Encapsulating the RPR unicast data message to be forwarded with a first outer layer RPR header with a designated VLAN and a destination RPR MAC address being the peer node RPR MAC address of the shared link; 通过所述RPR相交环上到达所述邻居相交节点的最短路径上的RPR端口发送带有所述第一外层RPR头的RPR单播数据报文。sending the RPR unicast data packet with the first outer RPR header through the RPR port on the shortest path to the neighboring intersecting node on the RPR intersecting ring. 6.根据权利要求5所述的设备,其特征在于,所述处理器通过运行所述存储器中的处理器可执行指令还执行以下操作:6. The device of claim 5, wherein the processor further performs the following operations by executing the processor-executable instructions in the memory: 通过所述RPR相交环上到达所述邻居相交节点的最短路径上的RPR端口接收带有第二外层RPR头的RPR单播数据报文;其中,第二外层RPR头带有所述指定VLAN且目的RPR MAC地址为本设备RPR MAC地址;Receive the RPR unicast data message with the second outer RPR header through the RPR port on the shortest path to the neighbor intersecting node on the RPR intersecting ring; wherein, the second outer RPR header contains the specified VLAN and the destination RPR MAC address is the RPR MAC address of the device; 剥掉所述第二外层RPR头得到内层RPR单播数据报文;Stripping off the second outer layer RPR header to obtain an inner layer RPR unicast data message; 通过所述冗余共同通道将所述内层RPR单播数据报文从所述RPR相交环发送到所述RPR共用环;sending the inner layer RPR unicast data message from the RPR intersecting ring to the RPR shared ring through the redundant common channel; 根据所述共用端口以及所述内层RPR单播数据报文的源RPR MAC地址学习RPR MAC地址表项;Learning an RPR MAC address entry according to the shared port and the source RPR MAC address of the inner layer RPR unicast data message; 查找所述内层RPR单播数据报文的目的RPR MAC地址匹配的PRRMAC地址表项执行转发。Find the PRRM MAC address table entry matching the destination RPR MAC address of the inner layer RPR unicast data message and perform forwarding. 7.根据权利要求5所述的设备,其特征在于,所述处理器通过运行所述存储器中的处理器可执行指令还执行以下操作:7. The device of claim 5, wherein the processor further performs the following operations by executing the processor-executable instructions in the memory: 当待转发的RPR非单播数据报文的出端口为所述共用端口,通过所述共用端口重定向表项将所述待转发的RPR非单播数据报文从所述RPR共用环传递到所述RPR相交环;When the outgoing port of the RPR non-unicast data message to be forwarded is the shared port, transfer the RPR non-unicast data message to be forwarded from the RPR shared ring to said RPR intersects rings; 为所述待转发的RPR非单播数据报文封装带有指定VLAN且目的RPR MAC地址为所述共用链路的对端节点MAC地址的第三外层RPR头;Encapsulating the RPR non-unicast data message to be forwarded with a third outer layer RPR header with a specified VLAN and the destination RPR MAC address being the peer node MAC address of the shared link; 通过所述RPR相交环上到达所述邻居相交节点的最短路径上的RPR端口发送带有所述第三外层RPR头的RPR非单播数据报文。sending the RPR non-unicast data packet with the third outer RPR header through the RPR port on the shortest path to the neighbor intersecting node on the RPR intersecting ring. 8.根据权利要求5所述的设备,其特征在于,所述处理器通过运行所述存储器中的处理器可执行指令还执行以下操作:8. The device of claim 5, wherein the processor further performs the following operations by executing processor-executable instructions in the memory: 通过所述RPR相交环上到达所述邻居相交节点的最短路径上的RPR端口接收带有第四外层RPR头的RPR非单播数据报文;其中,第四外层RPR头带有所述指定VLAN且目的RPR MAC地址为本设备RPR MAC地址;Receive the RPR non-unicast data packet with the fourth outer RPR header through the RPR port on the shortest path to the neighbor intersecting node on the RPR intersecting ring; wherein, the fourth outer RPR header contains the Specify the VLAN and the destination RPR MAC address is the RPR MAC address of the device; 剥掉所述第四外层RPR头得到内层RPR非单播数据报文;Stripping off the fourth outer layer RPR header to obtain the inner layer RPR non-unicast data message; 通过所述冗余共同通道将所述内层非RPR单播数据报文从所述RPR相交环发送到所述RPR共用环;sending the inner layer non-RPR unicast data message from the RPR intersecting ring to the RPR shared ring through the redundant common channel; 确定所述内层RPR单播数据报文在所述RPR共用环的入接口为所述共用端口;Determining that the inbound interface of the inner layer RPR unicast data message on the RPR shared ring is the shared port; 通过所述RPR共用环上另一RPR端口发送所述内层RPR非单播数据报文。Sending the inner layer RPR non-unicast data message through another RPR port on the RPR shared ring.
CN202211200917.7A 2022-09-29 2022-09-29 A method and device for forwarding messages via a shared link of a resilient packet ring Active CN115604054B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211200917.7A CN115604054B (en) 2022-09-29 2022-09-29 A method and device for forwarding messages via a shared link of a resilient packet ring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211200917.7A CN115604054B (en) 2022-09-29 2022-09-29 A method and device for forwarding messages via a shared link of a resilient packet ring

Publications (2)

Publication Number Publication Date
CN115604054A true CN115604054A (en) 2023-01-13
CN115604054B CN115604054B (en) 2025-03-14

Family

ID=84844286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211200917.7A Active CN115604054B (en) 2022-09-29 2022-09-29 A method and device for forwarding messages via a shared link of a resilient packet ring

Country Status (1)

Country Link
CN (1) CN115604054B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030233579A1 (en) * 2002-06-17 2003-12-18 Gaku Kimura Method of effecting protection control in communication network and RPR apparatus
CN1691629A (en) * 2004-04-30 2005-11-02 华为技术有限公司 Method for implementing layer-2 equipment interconnection in resilient packet ring (RPR) based network
CN1697416A (en) * 2004-05-12 2005-11-16 华为技术有限公司 Ring net and method for realizing service
WO2006131019A1 (en) * 2005-06-06 2006-12-14 Utstarcom Telecom Co., Ltd. A method and site for achieving link aggregation between the interconnected resilient packet ring
CN101317393A (en) * 2006-07-14 2008-12-03 华为技术有限公司 Method and equipment for forwarding elastic packet intersected ring message
CN101841450A (en) * 2010-04-08 2010-09-22 深圳市金宏威实业发展有限公司 Method and topological structure for realizing stable communication by forming multiple ring topologies into intersecting ring
CN102148733A (en) * 2010-02-04 2011-08-10 华为技术有限公司 Protection method, device and system of intersected ring networks
CN102546425A (en) * 2012-01-31 2012-07-04 华为技术有限公司 Crossed ring network protection method, equipment and system
CN109617777A (en) * 2018-12-24 2019-04-12 新华三技术有限公司 A kind of the business datum retransmission method and device of RPR intersecting ring
CN111510364A (en) * 2020-03-31 2020-08-07 新华三信息安全技术有限公司 Message forwarding method and system
WO2021245909A1 (en) * 2020-06-05 2021-12-09 日本電信電話株式会社 Device, method, system, and program for distributing traffic

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030233579A1 (en) * 2002-06-17 2003-12-18 Gaku Kimura Method of effecting protection control in communication network and RPR apparatus
CN1691629A (en) * 2004-04-30 2005-11-02 华为技术有限公司 Method for implementing layer-2 equipment interconnection in resilient packet ring (RPR) based network
CN1697416A (en) * 2004-05-12 2005-11-16 华为技术有限公司 Ring net and method for realizing service
WO2006131019A1 (en) * 2005-06-06 2006-12-14 Utstarcom Telecom Co., Ltd. A method and site for achieving link aggregation between the interconnected resilient packet ring
CN101317393A (en) * 2006-07-14 2008-12-03 华为技术有限公司 Method and equipment for forwarding elastic packet intersected ring message
CN102148733A (en) * 2010-02-04 2011-08-10 华为技术有限公司 Protection method, device and system of intersected ring networks
CN101841450A (en) * 2010-04-08 2010-09-22 深圳市金宏威实业发展有限公司 Method and topological structure for realizing stable communication by forming multiple ring topologies into intersecting ring
CN102546425A (en) * 2012-01-31 2012-07-04 华为技术有限公司 Crossed ring network protection method, equipment and system
CN109617777A (en) * 2018-12-24 2019-04-12 新华三技术有限公司 A kind of the business datum retransmission method and device of RPR intersecting ring
CN111510364A (en) * 2020-03-31 2020-08-07 新华三信息安全技术有限公司 Message forwarding method and system
WO2021245909A1 (en) * 2020-06-05 2021-12-09 日本電信電話株式会社 Device, method, system, and program for distributing traffic

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LAN/MAN STANDARDS COMMITTEE: "Resilient packet ring (RPR) access method and physical layer specifications", 《IEEE STD 802.17-2011》, 20 December 2011 (2011-12-20), pages 397 - 398 *
吴向军;杨宗凯;曾田;: "一种弹性分组环跨环互连模型", 计算机工程, no. 05, 5 March 2009 (2009-03-05) *

Also Published As

Publication number Publication date
CN115604054B (en) 2025-03-14

Similar Documents

Publication Publication Date Title
US7733812B2 (en) Method for enabling multipoint network services over a ring topology network
US7778162B2 (en) Multiple service ring of N-ringlet structure based on multiple FE, GE and 10GE
CA2843628C (en) Utility communication method and system
US20040208554A1 (en) Packet/TDM integrated node apparatus
US20050105538A1 (en) Switching system with distributed switching fabric
US20080259920A1 (en) Method and apparatus for establishing virtual resilient packet ring (RPR) subrings over a common communications path
EP1863230B1 (en) A method for implementing on-ring process, off-ring process and data forwarding in resilience packet data ringnet and a network device thereof
CN109787895B (en) Dual-homing protection method, access node, equipment and communication network
CN111989895B (en) Network node and arrangement for a data communication network
US20030031177A1 (en) Systems and methods for exchanging information between optical nodes
JP2004194051A (en) Interface device, SONET demultiplexer, transmission system, and frame transmission method
CN103078777B (en) Be applied to loop removing method and device in elastic packet loop network
WO2007098663A1 (en) Binding interface in rpr and its realizing method and apparatus
JP2015119227A (en) Communication system, communication device, and path switching method
CN100589399C (en) Method and system for realizing multicast service on multi-service transmission platform
WO2006046576A1 (en) Packet communication network and packet communication method
JP2006087107A (en) Method and system for bridging traffic in a resilient packet ring network
CN100450063C (en) Resilient packet ring multi-ring interconnection transmission method based on ring identification routing
WO2006094461A1 (en) A transmission method for ethernet service signal in wavelength division multiplexing network
CN115604054A (en) Method and equipment for forwarding message by common link of resilient packet ring
CN111510364B (en) Message forwarding method and system
CN115277543B (en) A message forwarding method and device
CN100407715C (en) Device for realizing network fusion and its method
CN101677281B (en) Ether multiple ring control channel allocation and message transmission method thereof
WO2016086615A1 (en) Ethernet ring network protection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant