A message forwarding method and device

By setting elastic packet ring distributed aggregation group and broadcast message filtering table entries in the RPR network, the problem of message forwarding interruption in the RPR network node failure is solved, device-level redundancy protection and traffic load sharing are realized, and RPR is ensured. Business continuity between equipment.

CN115277543BActive Publication Date: 2025-01-03新华三技术有限公司合肥分公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210736974.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2025-01-03
Estimated Expiration
2042-06-27

Smart Images

  • Figure CN115277543B_ABST
    Figure CN115277543B_ABST
Patent Text Reader

Abstract

The present application provides a message forwarding method and device, wherein the method comprises: setting a resilient packet ring distributed aggregation group to connect a non-distributed aggregation RPR node of an RPR ring network; setting a distributed aggregation group to connect an external network device of the RPR ring network; setting a broadcast message filtering table entry to prohibit forwarding an Ethernet broadcast message received through an internal control link IPP port through a local member port of the resilient packet ring distributed aggregation group and a local distributed aggregation port of the distributed aggregation group; when an Ethernet broadcast message is received through the distributed aggregation group, learning a first MAC address table entry based on a source MAC address of the received Ethernet broadcast message and the distributed aggregation group; sending the received Ethernet broadcast message through the internal control link IPP port, and broadcasting in a virtual local area network to which the received Ethernet broadcast message belongs; encapsulating the received Ethernet broadcast message into an RPR broadcast message and forwarding it in the RPR ring network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to communication technology, in particular to resilient packet ring network technology, and specifically to a message forwarding method and device. Background Art

[0002] RPR (Resilient Packet Ring) is a MAC (Media Access Control) protocol that can run on SONET (Synchronous Optical Network) / SDH (Synchronous Digital Hierarchy), DWDM (Dense Wavelength Division Multiplexing) and Ethernet. RPR uses RPR MAC layer frame encapsulation to achieve transparent transmission of Ethernet Over RPR. The ring structure and topology protection mechanism of RPR are transparent to the forwarding process and access equipment of the traffic it carries.

[0003] When a link or a node on the RPR network fails, the two nodes adjacent to the fault point first update their own topology databases, and then quickly send TP (Topology Protection) frames to other nodes. Other nodes update their topology databases, and each node sends RPR messages according to the new topology to achieve rapid protection switching. However, the RPR messages of the RPR network are all single RPR node downlinks. Once the paths between the RPR node as a convergence device and the two neighboring nodes on the RPR fail, the messages on the RPR network that need to pass through the RPR node as a convergence device cannot be forwarded.

[0004] DRNI (Distributed Resilient Network Interconnect) is a cross-device link aggregation technology based on the IEEE P802.1AX protocol. DRNI virtualizes two physical devices into one device to achieve cross-device link aggregation, thereby providing device-level redundancy protection and traffic load sharing. DRNI is mainly used in dual-homing access networking, improving reliability from the link level to the device level. Summary of the invention

[0005] The purpose of the present application is to provide message forwarding, and to provide redundancy protection and load sharing for message forwarding of an RPR network through aggregated resilient packet ring nodes.

[0006] To achieve the above-mentioned purpose, the present application provides a message forwarding method, wherein the method includes: setting a resilient packet ring distributed aggregation group to connect the non-distributed aggregation RPR node of the resilient packet ring RPR ring network; setting a distributed aggregation group to connect the external network equipment of the RPR ring network; setting a broadcast message filtering table entry to prohibit the Ethernet broadcast message received through the internal control link IPP port connected to the opposite distributed aggregation RPR node from being forwarded through the local member port of the resilient packet ring distributed aggregation group and the local distributed aggregation port of the distributed aggregation group; receiving the Ethernet broadcast message through the distributed aggregation group; learning a first MAC address table entry based on the source MAC address of the received Ethernet broadcast message and the distributed aggregation group; sending the received Ethernet broadcast message through the internal control link IPP port, and broadcasting it in the virtual local area network to which the received Ethernet broadcast message belongs; encapsulating the received Ethernet broadcast message into an RPR broadcast message and forwarding it in the RPR ring network.

[0007] To achieve the above-mentioned purpose, the present application also provides a message forwarding device, which includes: setting a resilient packet ring distributed aggregation group to connect the non-distributed aggregation RPR node of the resilient packet RPR ring network; setting a distributed aggregation group to connect the external network device of the RPR ring network; setting a broadcast message filtering table entry to prohibit the local member port of the resilient packet ring distributed aggregation group and the local distributed aggregation port of the distributed aggregation group from forwarding the Ethernet broadcast message received through the internal control link IPP port connected to the opposite distributed aggregation RPR node; receiving the Ethernet broadcast message through the distributed aggregation group; learning a first MAC address table entry based on the source MAC address of the received Ethernet broadcast message and the distributed aggregation group; sending the received Ethernet broadcast message through the internal control link IPP port, and broadcasting it in the virtual local area network to which the received Ethernet broadcast message belongs; encapsulating the received Ethernet broadcast message into an RPR broadcast message and forwarding it in the RPR ring network.

[0008] The beneficial effect of the present application is that by aggregating the RPR nodes of the RPR ring network into a virtual DRNI virtual device, device-level redundancy protection and traffic load sharing can be provided, site protection of the RPR device can be achieved, and service load sharing between RPR devices can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 A flowchart of an embodiment of a message forwarding method provided by the present application;

[0010] Figure 2 Schematic diagram of the RPR network with distributed elastic network interconnection architecture provided for this application;

[0011] Figure 3 for Figure 2 The broadcast forwarding diagram of the ring network shown;

[0012] Figure 4 for Figure 2 The schematic diagram of unicast forwarding of the ring network shown;

[0013] Figure 5 A schematic diagram of an embodiment of a message forwarding device of the present application. DETAILED DESCRIPTION

[0014] The present invention will be described in detail with multiple examples shown in multiple figures. In the following detailed description, multiple specific details are used to provide a comprehensive understanding of the present application. Known methods, steps, components and circuits are not described in detail in the examples to avoid making these examples difficult to understand.

[0015] Among the terms used, the term "include" means including but not limited to; the term "contain" means including but not limited to; the terms "above", "within" and "below" are inclusive of the number; the terms "greater than" and "less than" are exclusive of the number. The term "based on" means based on at least a part thereof.

[0016] Figure 1 A flowchart of an embodiment of a message forwarding method provided in the present application; the method comprises the following steps:

[0017] Step 101, setting an RPR DR group to connect non-distributed aggregated RPR nodes of a resilient packet RPR ring network;

[0018] Step 102, setting a DR group to connect to an external network device of the RPR ring network;

[0019] Step 103, setting a broadcast message filtering table entry to prohibit forwarding Ethernet broadcast messages received through the IPP port through the local member ports of the RPR DR group and the local distributed aggregation port of the DR group;

[0020] Step 104, receiving Ethernet broadcast messages through the DR group;

[0021] Step 105, learning a MAC address table entry based on the source MAC address of the received Ethernet broadcast message and the DR group;

[0022] Step 106, sending the received Ethernet broadcast message through the IPP port, and broadcasting in the virtual local area network to which the received Ethernet broadcast message belongs;

[0023] Step 107: encapsulate the received Ethernet broadcast message into an RPR broadcast message and forward it in the RPR ring network.

[0024] The beneficial effect of the present application is that by aggregating the RPR nodes of the RPR ring network into a virtual DRNI virtual device, device-level redundancy protection and traffic load sharing can be provided, site protection of the RPR device can be achieved, and service load sharing between RPR devices can be achieved.

[0025] Figure 2 Schematic diagram of an RPR ring network with a distributed resilient network interconnection architecture provided for this application; Node A and Node B are aggregated and virtualized into one device through DRNI (Distributed Resilient Network Interconnect) to achieve cross-device link aggregation, providing device-level redundancy protection and traffic load sharing. Node A and Node B are distributed aggregation (Distributed Relay, DR) RPR nodes on the RPR ring network, and Node C and Node D are non-distributed aggregation RPR nodes of the RPR ring network.

[0026] The Ethernet port of the switching chip S1 of node A and the Ethernet port on the switching chip S2 of node B serve as IPP (Intra-Portal Port) and are connected through a physical Ethernet link as IPL (Intra-Portal Link) to forward DRCP messages and data messages and synchronize MAC address entries and ARP entries. Therefore, there is no need to synchronize all the information of each member device like an IRF (Intelligent Resilient Framework) / stack system. Therefore, the degree of coupling on the control plane is much smaller than that of the stack.

[0027] In addition to the IPL link, there is also a Keep alive link between nodes A and B. Figure 2 Not shown), used to detect the status of the distributed aggregation RPR node at the opposite end, that is, to exchange Keep alive messages to perform dual-active detection when the IPL link fails.

[0028] Port U1 of node A and port U2 of node B are DR (Distributed Relay interface) interfaces, both of which are connected to the same network device E outside the RPR ring network and belong to the same DR group (Distributed-Relay group) 210. Node A is the primary distributed aggregation RPR node device (Primary), and node B is the backup distributed aggregation RPR node (Secondary).

[0029] Figure 2In the topology discovery process of RPR, when node A and node B send ATD (Attribute Discovery) frames, the TLV field newly added to the ATD frame is used as the notification field carrying the DRNI member device address to carry the RPP MAC address of the local device.

[0030] The internal physical Ethernet port between the switching unit S1 of node A and the RPR processing unit R1 is Internal Port1, which is mapped to virtual ports 11, 12, 13, 14, 15 corresponding to nodes B, C, D, broadcast service and IPP ports in the RPR network 200 respectively.

[0031] The internal physical Ethernet port between the switching unit S2 of node B and the RPR processing unit R2 is Internal Port2, which is mapped to virtual ports 21, 22, 23, 24, 25 corresponding to nodes A, C, D, broadcast services and IPP ports in the RPR network 200 respectively.

[0032] The internal physical Ethernet port between the switching unit S3 of the node C and the RPR processing unit R3 is Internal Port3, which is mapped to virtual ports 31, 32, 33, and 34, corresponding to nodes A, B, and D in the RPR network 200 and broadcast services, respectively.

[0033] The internal physical Ethernet port between the switching unit S4 and the RPR processing unit R4 of the node D is Internal Port 4, which is mapped to virtual ports 41, 42, 43, and 44, corresponding to the nodes A, B, and C in the RPR network 200 and the broadcast service, respectively.

[0034] Node A sets virtual port 12 assigned by the device to node C and virtual port 22 assigned by node B to node C as DR group 1 (not shown in the figure), and records virtual port 12 and virtual port 15 in the member port table entry of DR group 1; sets virtual port 13 assigned by the device to node D and virtual port 23 assigned by node B to node C as DR group 2, and records virtual port 13 and virtual port 15 in the member port table entry of DR group 2. Node A sets a broadcast message filtering ACL entry, the matching item is that the inbound port is IPP1 and the message type is a broadcast message, and the action is to prohibit forwarding through the local member ports of DR group 210, DR group 1, and DR group 2.

[0035] Node B sets virtual port 12 assigned by the device to node C and virtual port 22 assigned by node A to node C2 to DR group 1, and records virtual port 22 and virtual port 25 in the member port table entry of DR group 1; sets virtual port 23 assigned by the device to node D and virtual port 22 assigned by node A to node D to DR group 2, and records virtual port 23 and virtual port 25 in the member port table entry of DR group 2. Node B sets a broadcast packet filtering ACL table entry, with the matching item that the inbound port is IPP2 and the packet type is broadcast packet, and the action is to prohibit forwarding through the local member ports of DR group 210, DR group 1, and DR group 2.

[0036] Node C sets virtual ports 31 and 32 allocated to nodes A and B as VP LAG3, and records virtual port 31 and virtual port 32 in the member port table entry of VP LAG3.

[0037] Node D sets virtual ports 41 and 42 allocated to nodes A and B as VP LAG4, and records virtual ports 41 and 42 as member ports in the member table entry of VP LAG4.

[0038] In the present application, three DR groups are set up respectively for the two device nodes A and B of the DRNI system. DR group 210 is a distributed aggregation (DR) group used to connect network device E; DR group 1 and DR group 2 are resilient packet ring distributed aggregation (RPR DR) groups, used to connect nodes C and D on the RPR ring.

[0039] Figure 3 The node devices that constitute the DRNI system are Figure 2 The diagram shows the forwarding of uplink broadcast messages and downlink broadcast messages within the ring network.

[0040] Figure 3 In the example, node D receives an Ethernet broadcast message 301 sent by terminal T1 of VLAN 1000, and the switching unit S4 encapsulates the Ethernet broadcast message 301 with an RPR label with a broadcast service identifier (for example, 0xff), and sends it to the RPR processing unit R4 through Internal Port 4. The RPR processing unit R4 strips off the RPR label, and encapsulates the Ethernet broadcast message 301 into an RPR broadcast message 302 with the RPR MAC address of the local node as the source RPR MAC address and the RPR broadcast MAC address as the destination RPR MAC address, and forwards it on the inner ring and outer ring of the RPR network 200.

[0041] The RPR processing unit R3 of node C receives the RPR broadcast message 302, makes a copy of the RPR broadcast message 302 and sends it to node B, strips off the RPR message header of the received RPR broadcast message 302, adds an RPR label with the identifier of the uplink node D to the Ethernet broadcast message 301 based on the source RPRMAC address of the RPR broadcast message 302, and sends the Ethernet message 301 with the RPR label with the identifier of the uplink node D to the switching unit S3 through Internal Port3. The switching unit S3 of node C strips off the RPR label of the Ethernet message received by Internal Port3 according to the locally configured ACL table entry, determines the virtual port 33 corresponding to the uplink node identifier D, learns the MAC address table entry based on the source MAC address MAC T1 and the virtual port 33 of node D, and broadcasts the Ethernet broadcast message 301 in VLAN1000.

[0042] The RPR processing unit R2 of the node B receives the RPR broadcast message 302 , reads the device role of the DRNI system, determines that the priority of the device role is low, and discards the received RPR broadcast message 302 .

[0043] The RPR processing unit R1 of node A receives the RPR broadcast message 302, determines that the role priority of this device is high, identifies the upstream node as node D according to the source RPRMAC of the RPR broadcast message 302, strips off the RPR message header of the RPR broadcast message 302, adds an RPR label with the upstream node D identifier to the inner Ethernet broadcast message 301, and sends the inner Ethernet broadcast message 301 with the RPR label added to the switching unit S1 through Internal Port1.

[0044] Switching unit S1 of node A strips the RPR label of inner Ethernet broadcast message 301 received by Internal Port1 according to the locally configured ACL table entry, and determines the virtual port 13 corresponding to the upstream node identifier D. Switching unit S1 of node A learns the MAC address table entry based on source MAC address MAC T1 and DR group 2 of upstream node D.

[0045] The switching unit S1 of node A sends the inner Ethernet broadcast message 301 through DR210 and IPP port 1, and broadcasts the Ethernet broadcast message 301 in VLAN1000 (not shown in the figure); that is, the switching unit S1 of node A copies one copy for the aggregation port of DR group 210, the IPP port IPP1, and each Ethernet port of VLAN1000. Node A selects the local DR interface U1 of DR group 210 to send one copy of the inner Ethernet broadcast message 301 to network device E; sends one copy of the inner Ethernet broadcast message 301 to node B through IPP1; and broadcasts the inner Ethernet broadcast message 301 through VLAN1000 ( Figure 3Each Ethernet port (not shown) sends an inner Ethernet broadcast message 301.

[0046] The switching unit S2 of node B in the figure receives Ethernet broadcast message 301 through IPP2 connected to the IPL link, and copies a copy for the local DR interface U2 of DR group 210, the local DR interface of DR group 1, the local DR interface of DR group 2, and each Ethernet port of VLAN 1000. Node B discards the Ethernet broadcast message 301 copied for the local member port of DR group 210, the local member port of DR group 1, and the local member port of VPLAG2 according to the set broadcast message filtering ACL table entry, and broadcasts it in VLAN 1000.

[0047] Node A sends a DRCP (Distributed Relay Control Protocol) message for synchronously learning a MAC address entry through IPP port 1 of the IPL link, wherein the outgoing interface in the MAC T1 entry is VPLAP 2. Node B records the MAC T1 entry in the local MAC address entry.

[0048] Figure 3 In the example, the upstream network device E receives the Ethernet broadcast message 311 from the terminal T2, selects a member port connected to the member link connected to the node B in the link aggregation group (LAG) connected to the DRNI system, and sends the Ethernet broadcast message 311 to the node B through the selected member port. The switching unit S2 of the node B receives the Ethernet broadcast message 311, and learns the MAC address table entry according to the source MAC address MAC T2 and the aggregation port of the DR group 210.

[0049] Node B sends an Ethernet broadcast message 311 to the opposite node A through IPP port 2, broadcasts the Ethernet broadcast message 311 in VLAN 1000 (not shown in the figure), and broadcasts an RPR broadcast message 312 on the RPR ring network; that is, the switching unit S2 of node B is the IPP port IPP2, and each Ethernet port of VLAN 1000 makes a copy respectively, and sends the Ethernet broadcast message 311 through the IPP port IPP2 and each Ethernet port in VLAN 1000; the switching unit S2 of node B encapsulates the Ethernet broadcast message 311 with an RPR label with a broadcast service identifier, and sends it to the RPR processing unit R2 through Internal Port 2; the RPR processing unit R2 strips off the RPR label, uses the RPR MAC address of this node as the source RPR MAC address and the RPR broadcast MAC address as the destination RPR MAC address, encapsulates the Ethernet broadcast message 311 into an RPR broadcast message 312, and forwards it on the inner ring and outer ring of the RPR network 200.

[0050] The RPR processing unit R3 of node C receives the RPR broadcast message 312, makes a copy of the RPR broadcast message 312 and sends it to node D, strips off the RPR message header of the received RPR broadcast message 312, adds an RPR label with the identifier of the upstream node B to the Ethernet broadcast message 311 stripped of the message based on the source RPRMAC address of the RPR broadcast message 312, and sends the Ethernet message 311 with the RPR label written with the identifier of the upstream node B to the switching unit S3 through Internal Port3. The switching unit S3 of node C strips off the RPR label of the Ethernet message received by Internal Port3 according to the locally configured ACL table entry, determines the virtual port 32 corresponding to the upstream node identifier B, learns the MAC address table entry based on the source MAC address MAC T2 and the virtual port 32, and broadcasts it in VLAN1000.

[0051] The RPR processing unit R4 of node D receives the RPR broadcast message 312, makes a copy of the RPR broadcast message 312 and sends it to node A, strips off the RPR message header of the received RPR broadcast message 312, adds an RPR label with the identifier of the upstream node B to the stripped Ethernet broadcast message 311, and sends the Ethernet message 311 with the RPR label written with the identifier of the upstream node B to the switching unit S4 through Internal Port 4. The switching unit S4 of node D strips off the RPR label of the Ethernet message received by InternalPort 4 according to the locally configured ACL table entry, determines the virtual port 42 corresponding to the upstream node identifier B, learns the MAC address table entry based on the source MAC address MAC T2 and the virtual port 42, and broadcasts it in VLAN 1000.

[0052] The RPR processing unit R1 of node A receives the RPR broadcast message 312, determines that the master device role priority of the device is high, identifies the source RPR MAC address of the RPR broadcast message 312 as the opposite DR node B, and discards the received RPR broadcast message 312.

[0053] Node B sends a DRCP message for synchronously learning a MAC address entry through IPP port 2 of the IPL link, wherein the outgoing interface in the MACT2 entry is DR group 120. Node A records the MACT2 entry whose outgoing interface is DR group 120 in the local MAC address entry.

[0054] Figure 4 The node devices that constitute the DRNI system are Figure 2 The diagram shows the forwarding of uplink unicast messages and downlink unicast messages in a ring network.

[0055] Node D receives Ethernet unicast message 401 sent from terminal T1 to terminal T2. Switching unit S4 of node D finds that the outgoing interface of the MAC address table entry matching destination MAC address MAC T2 of Ethernet unicast message 401 is VP LAG4, selects member virtual port 41 in the VPLAG4 member table entry, and adds an RPR label (Tag) with a downlink node identifier to Ethernet unicast message 401, where the downlink node identifier is the identifier of node A corresponding to virtual port 41.

[0056] The switching unit S4 of the node D sends the Ethernet unicast message 401 with the RPR label to the RPR processing unit R4 through the Internal Port 4. The RPR processing unit R4 of the node D strips off the RPR label, uses the RPR MAC address D of the node as the source RPR MAC address, and the RPR MAC address A corresponding to the following link node identifier as the destination RPR MAC address to encapsulate the RPR unicast message 402, and sends it to the node A through the RPR network 200.

[0057] The RPR processing unit R1 of node A receives the RPR unicast message 402, strips off the RPR message header, encapsulates the Ethernet message with an RPR label with an uplink node identifier, that is, the uplink node identifier corresponding to the RPR MAC address of node D, and sends it to the switching unit S1 through the internal port Internal Port 1. The switching unit S1 of node A strips off the RPR label of the Ethernet unicast message 401 received by Internal Port 1 according to the ACL table entry and determines the corresponding DR group 2 according to the uplink node identifier corresponding to node D, finds the learned MAC address table entry according to the source MAC address MAC T1 and DR group 2, refreshes the aging time, finds the MAC table entry of the destination MAC address MAC T2 in the MAC table, determines that the outgoing interface is the aggregation port of DR group 210, and sends it to the upstream network device through the local DR interface U1 of the aggregation port of DR group 210.

[0058] Network device E receives Ethernet unicast message 401 and sends Ethernet unicast message 401 to terminal T2 according to the egress port of the MAC address table entry that matches the destination MAC address.

[0059] When network device E receives Ethernet unicast message 411 sent from terminal T2 to terminal T1, it selects a member port connected to node B among the aggregation ports of the link aggregation group connected to the DRNI system, and sends Ethernet unicast message 411 to node B.

[0060] The switching unit S2 of node B searches for the outgoing interface DR group 2 of the MAC address table entry that matches the destination MAC address MAC T2 of the received Ethernet unicast message 411, selects the local member virtual port 23 in the DR group 2 member table entry, and adds an RPR label (Tag) with the downlink node identifier to the Ethernet unicast message 411, where the downlink node identifier is the identifier of the node D corresponding to the virtual port 23.

[0061] The switching unit S2 of the node B sends the Ethernet unicast message 411 with the RPR label to the RPR processing unit R2 through the Internal Port 2. The RPR processing unit R2 of the node B strips off the RPR label, uses the RPR MAC address B of the node as the source RPR MAC address, uses the RPR MAC address D corresponding to the following link node identifier as the destination RPR MAC address, encapsulates the Ethernet unicast message 411 into the RPR unicast message 412, and sends the RPR unicast message 412 to the node C through the RPR network 200.

[0062] Node C sends the RPR unicast message 412 to node D according to the destination RPR MAC address of the RPR unicast message 412 .

[0063] Node D receives RPR unicast message 412, and RPR processing unit R4 strips off the RPR message header, and encapsulates Ethernet unicast message 411 with the identifier of the upstream node B based on the source RPR MAC address. RPR switching unit R4 of node D sends Ethernet unicast message 411 with the RPR label to switching unit S4 through internal port Internal Port 4. Switching unit S4 strips off the RPR label of Ethernet unicast message 411 received by Internal Port 4 according to the ACL table entry and determines the corresponding VP LAG 4 according to the identifier of the upstream node B, learns the MAC address table entry of MAC T1 according to the source MAC address MAC T2 and VP LAG 4 or refreshes the aging time of the learned MAC address table entry of MAC T1, finds out that the outgoing interface is the port connected to terminal T1 according to the destination MAC address of Ethernet unicast message 411, and sends Ethernet unicast message 401 to terminal T1.

[0064] Figure 5 The schematic diagram of the message forwarding device embodiment of the present application includes at least: a switching unit, a resilient packet ring processing unit, a CPU and a memory. The switching unit can be implemented by a switching chip, and the resilient packet ring processing unit can be implemented by an FPGA chip. The processor executes the setting module by running the processor executable instructions in the memory.

[0065] A setting module is used to set up an elastic packet ring distributed aggregation group of non-distributed aggregation RPR nodes connected to an elastic packet ring RPR ring network, set up a distributed aggregation group of external network devices connected to the RPR ring network, and set a broadcast message filtering table item to prohibit forwarding of Ethernet broadcast messages received via an internal control link IPP port connected to a distributed aggregation RPR node at the opposite end through local member ports of the elastic packet ring distributed aggregation group and local distributed aggregation ports of the distributed aggregation group; a switching unit is used to receive Ethernet broadcast messages through a distributed aggregation group; learn a first MAC address table item based on the source MAC address of the received Ethernet broadcast message and the distributed aggregation group; send the received Ethernet broadcast message through the internal control link IPP port, and broadcast in the virtual local area network to which the received Ethernet broadcast message belongs; and an elastic packet ring processing unit is used to encapsulate the received Ethernet broadcast message into an RPR broadcast message and forward it in the RPR ring network.

[0066] A resilient packet ring processing unit is used to receive RPR broadcast messages through the RPR ring network; when the role of this device is a backup distributed aggregation RPR node, the received RPR broadcast message is discarded; when the role of this device is a primary distributed aggregation RPR node, the uplink node of the received RPR broadcast message is identified; when the uplink node of the received RPR broadcast message is the opposite distributed aggregation RPR node, the RPR broadcast message is discarded; when the uplink node of the received RPR broadcast message is a non-distributed aggregation RPR node, the received RPR broadcast message is converted into an inner Ethernet broadcast message with an uplink node identifier RPR label; a switching unit is used to learn a second MAC address table entry according to the source MAC address of the inner Ethernet broadcast message and the resilient packet ring distributed aggregation group; the inner Ethernet broadcast message is sent through the distributed aggregation group and the IPP port, and broadcast in the virtual local area network to which the inner Ethernet broadcast message belongs.

[0067] A resilient packet ring processing unit is used to receive RPR unicast messages through an RPR ring network; identify that the uplink node of the received RPR unicast message is a non-distributed aggregation RPR node, and convert the received RPR unicast message into an inner Ethernet unicast message with an uplink node identifier RPR label; a switching unit is used to learn a third MAC address table entry based on the source MAC address of the inner Ethernet unicast message and the resilient packet ring distributed aggregation group; search for a matching MAC address table entry of the destination MAC address of the inner Ethernet unicast message, determine that the outgoing interface of the MAC address table entry of the destination MAC address of the inner Ethernet unicast message is a distributed aggregation group, and then send the inner Ethernet unicast message through the local distributed aggregation interface of the distributed aggregation group.

[0068] A switching unit is used to receive Ethernet unicast messages through the local distributed aggregation interface of the distributed aggregation group; learn a fourth MAC address table entry based on the distributed aggregation group and the source MAC address of the received Ethernet unicast message; find a MAC address table entry that matches the destination MAC address of the received Ethernet unicast message; determine that the outbound interface of the MAC address table entry of the destination MAC address of the received Ethernet unicast message is an elastic packet ring distributed aggregation group; an elastic packet ring processing unit is used to select a local member virtual port of the elastic packet ring distributed aggregation group, add a RPR label with a downlink node identifier of a non-distributed aggregation RPR node to the received Ethernet unicast message; strip off the RPR label of the received Ethernet unicast message, use the RPR MAC address of the local node as the source RPR MAC address, use the RPR MAC address corresponding to the non-distributed aggregation RPR node as the destination RPR MAC address, encapsulate the received Ethernet unicast message into an RPR unicast message, and send it through the RPR ring network.

[0069] The switching unit is used to send table synchronization messages for synchronizing the first, second, third and fourth MAC address table entries through the IPP port, so that the distributed aggregation RPR node at the opposite end records the first MAC address table entry whose outgoing interface is the elastic packet ring distributed aggregation group, records the second MAC address table entry whose outgoing interface is the distributed aggregation group, records the third MAC address table entry whose outgoing interface is the elastic packet ring distributed aggregation group; and records the fourth MAC address table entry whose outgoing interface is the distributed aggregation group.

[0070] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A message forwarding method, characterized in that: The method comprises: A resilient packet ring distributed aggregation group is set up to connect non-distributed aggregation RPR nodes of a resilient packet RPR ring network; Setting a distributed aggregation group to connect an external network device of the RPR ring network; Setting a broadcast message filtering table entry to prohibit forwarding Ethernet broadcast messages received through an internal control link IPP port connected to a peer distributed aggregation RPR node through a local member port of the resilient packet ring distributed aggregation group and a local distributed aggregation port of the distributed aggregation group; Receiving Ethernet broadcast messages through the distributed aggregation group; Learning a first MAC address table entry based on a source MAC address of the received Ethernet broadcast message and the distributed aggregation group; The received Ethernet broadcast message is sent through the IPP port and broadcasted in the virtual local area network to which the received Ethernet broadcast message belongs; the received Ethernet broadcast message is encapsulated as an RPR broadcast message and forwarded in the RPR ring network.

2. The method according to claim 1, characterized in that The method further comprises: Receiving an RPR broadcast message through the RPR ring network; When the device is a standby distributed aggregation RPR node, it discards the received RPR broadcast message; When the device is a master distributed aggregation RPR node, it identifies the uplink node of the received RPR broadcast message; When the uplink node of the received RPR broadcast message is the opposite distributed aggregation RPR node, discard the RPR broadcast message; when the uplink node of the received RPR broadcast message is the non-distributed aggregation RPR node, convert the received RPR broadcast message into an inner Ethernet broadcast message with an uplink node identifier RPR label; learn a second MAC address table entry according to the source MAC address of the inner Ethernet broadcast message and the elastic packet ring distributed aggregation group; send the inner Ethernet broadcast message through the distributed aggregation group and the IPP port, and broadcast in the virtual LAN to which the inner Ethernet broadcast message belongs.

3. The method according to claim 2, characterized in that The method further comprises: Receiving an RPR unicast message through the RPR ring network; The identified uplink node of the received RPR unicast message is the non-distributed aggregation RPR node, and the received RPR unicast message is converted into an inner Ethernet unicast message with an uplink node identifier RPR label; a third MAC address table entry is learned according to the source MAC address of the inner Ethernet unicast message and the elastic packet ring distributed aggregation group; a matching MAC address table entry of the destination MAC address of the inner Ethernet unicast message is searched, and it is determined that the outgoing interface of the MAC address table entry of the destination MAC address of the inner Ethernet unicast message is the distributed aggregation group, and the inner Ethernet unicast message is sent through the local distributed aggregation interface of the distributed aggregation group.

4. The method according to claim 2, characterized in that: The method further comprises: Receiving an Ethernet unicast message through a local distributed aggregation interface of the distributed aggregation group; Learning a fourth MAC address table entry based on the distributed aggregation group and a source MAC address of the received Ethernet unicast message; Find the MAC address table entry that matches the destination MAC address of the received Ethernet unicast message; Determine that the outbound interface of the MAC address table entry of the destination MAC address of the received Ethernet unicast message is the resilient packet ring distributed aggregation group; Select the local member virtual port of the elastic packet ring distributed aggregation group, add an RPR label with the downlink node identifier of the non-distributed aggregation RPR node to the received Ethernet unicast message; use the RPR MAC address of this node as the source RPR MAC address, and the RPR MAC address corresponding to the non-distributed aggregation RPR node as the destination RPR MAC address, and encapsulate the received Ethernet unicast message into an RPR unicast message.

5. The method according to claim 2, 3 or 4, characterized in that: The method further comprises: A table synchronization message for synchronizing the first, second, third and fourth MAC address table entries is sent through the IPP port, so that the opposite distributed aggregation RPR node records the first MAC address table entry whose outgoing interface is the elastic packet ring distributed aggregation group, records the second MAC address table entry whose outgoing interface is the distributed aggregation group, records the third MAC address table entry whose outgoing interface is the elastic packet ring distributed aggregation group; and records the fourth MAC address table entry whose outgoing interface is the distributed aggregation group.

6. A message forwarding device, characterized in that: The device comprises: A setting module is used to set a resilient packet ring distributed aggregation group of a non-distributed aggregation RPR node connected to a resilient packet RPR ring network, set a distributed aggregation group of an external network device connected to the RPR ring network, and set a broadcast message filtering table entry to prohibit forwarding Ethernet broadcast messages received via an internal control link IPP port connected to a peer distributed aggregation RPR node through a local member port of the resilient packet ring distributed aggregation group and a local distributed aggregation port of the distributed aggregation group; A switching unit, configured to receive an Ethernet broadcast message through the distributed aggregation group; learn a first MAC address table entry based on a source MAC address of the received Ethernet broadcast message and the distributed aggregation group; send the received Ethernet broadcast message through the IPP port, and broadcast in the virtual local area network to which the received Ethernet broadcast message belongs; The resilient packet ring processing unit is used to encapsulate the received Ethernet broadcast message into an RPR broadcast message and forward it in the RPR ring network.

7. The device according to claim 6, characterized in that The resilient packet ring processing unit is used to receive RPR broadcast messages through the RPR ring network; when the role of the device is a standby distributed aggregation RPR node, the received RPR broadcast message is discarded; when the role of the device is a primary distributed aggregation RPR node, the uplink node of the received RPR broadcast message is identified; when the uplink node of the received RPR broadcast message is the opposite distributed aggregation RPR node, the RPR broadcast message is discarded; when the uplink node of the received RPR broadcast message is the non-distributed aggregation RPR node, the received RPR broadcast message is converted into an inner Ethernet broadcast message with an uplink node identifier RPR label; The switching unit is used to learn a second MAC address table entry according to the source MAC address of the inner Ethernet broadcast message and the elastic packet ring distributed aggregation group; send the inner Ethernet broadcast message through the distributed aggregation group and the IPP port, and broadcast within the virtual local area network to which the inner Ethernet broadcast message belongs.

8. The device according to claim 7, characterized in that The resilient packet ring processing unit is used to receive an RPR unicast message through the RPR ring network; the upper ring node of the received RPR unicast message is identified as the non-distributed aggregation RPR node, and the received RPR unicast message is converted into an inner Ethernet unicast message having an upper ring node identifier RPR label; The switching unit is used to learn a third MAC address table entry based on the source MAC address of the inner Ethernet unicast message and the elastic packet ring distributed aggregation group; search for a matching MAC address table entry of the destination MAC address of the inner Ethernet unicast message, determine that the outgoing interface of the MAC address table entry of the destination MAC address of the inner Ethernet unicast message is the distributed aggregation group, and then send the inner Ethernet unicast message through the local distributed aggregation interface of the distributed aggregation group.

9. The device according to claim 7, characterized in that The switching unit is used to receive an Ethernet unicast message through a local distributed aggregation interface of the distributed aggregation group; learn a fourth MAC address table entry based on the distributed aggregation group and the source MAC address of the received Ethernet unicast message; find a MAC address table entry that matches the destination MAC address of the received Ethernet unicast message; determine that the outbound interface of the MAC address table entry of the destination MAC address of the received Ethernet unicast message is the resilient packet ring distributed aggregation group; The resilient packet ring processing unit is used to select a local member virtual port of the resilient packet ring distributed aggregation group, and add a downlink node identifier RPR label with the non-distributed aggregation RPR node to the received Ethernet unicast message; The RPR label of the received Ethernet unicast message is stripped off, the RPR MAC address of the current node is used as the source RPR MAC address, the RPR MAC address corresponding to the non-distributed aggregation RPR node is used as the destination RPR MAC address, the received Ethernet unicast message is encapsulated into an RPR unicast message, and sent through the RPR ring network.

10. The device according to claim 7, 8 or 9, characterized in that The switching unit is used to send table synchronization messages for synchronizing the first, second, third and fourth MAC address table entries through the IPP port, so that the opposite distributed aggregation RPR node records the first MAC address table entry whose outgoing interface is the elastic packet ring distributed aggregation group, records the second MAC address table entry whose outgoing interface is the distributed aggregation group, records the third MAC address table entry whose outgoing interface is the elastic packet ring distributed aggregation group; and records the fourth MAC address table entry whose outgoing interface is the distributed aggregation group.