A message forwarding method and device

By switching to the escape link on the RPR network for data packet forwarding, the problem of service interruption when the path between RPR network nodes is unreachable, and rapid switching and continuity of service traffic is achieved.

CN115037679BActive Publication Date: 2024-12-03NEW H3C TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210609814.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-12-03
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

In extreme cases, when both paths between nodes of the RPR network are unreachable, the service will be completely interrupted, and the prior art cannot quickly switch to the escape link for data packet forwarding.

Method used

By determining that the forwarding path to the peer-end escape node on the RPR elastic packet ring network is switched to the escape link, the local escape port connecting the escape link is set from the blocking state to the forwarding state, and the virtual aggregation port associated with the peer-end escape node is modified The member entry of the member table is assigned the exit port matching the destination MAC address of the Ethernet unicast message to be forwarded to the virtual aggregation port of the peer escape node, and the message is sent through the local escape port.

Benefits of technology

It realizes the rapid switching to the escape link when the path between key nodes on the RPR network is unreachable, ensuring that the service traffic is not interrupted.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115037679B_ABST
    Figure CN115037679B_ABST
Patent Text Reader

Abstract

The present application provides a message forwarding method and device. In the method, it is determined that the forwarding path to the opposite escape node on the elastic packet ring network is switched to an escape link; the local escape port connected to the escape link is set from a blocking state to a forwarding state; the member port of the member table item of the virtual aggregation port associated with the opposite escape elastic packet ring node is modified from the virtual port assigned to the opposite escape node to the virtual port assigned to the local escape port; it is determined that the egress port of the MAC address table item matching the destination MAC address of the Ethernet unicast message to be forwarded is the virtual aggregation port assigned to the opposite escape node; the virtual port assigned to the local escape port in the member table item of the virtual aggregation port is selected; and the Ethernet unicast message is sent through the local escape port.
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 technology, and specifically to a message forwarding method and device. Background Art

[0002] RPR (Resilient Packet Ring) is a new type of MAC (Media Access Control) protocol that can run on SONET (Synchronous Optical Network) / SDH (Synchronous Digital Hierarchy), DWDM (Dense Wavelength Division Multiplexing) and Ethernet, providing flexible and efficient networking solutions for broadband IP metropolitan area network operators. 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] Although the RPR network has a fault switching mechanism, when one of the paths between a node and another node on the RPR network fails, the network switching data flow can be switched to another path. However, in extreme cases, if both paths between nodes fail and both paths are unreachable, the service between the nodes will be completely interrupted. Summary of the invention

[0004] The purpose of the present application is to provide a message forwarding method, which can quickly switch Ethernet data messages to be forwarded through an escape link when an important node in a resilient packet ring network is unreachable on a forwarding path on the resilient packet ring network.

[0005] To achieve the above-mentioned purpose, the present application provides a message forwarding method, which includes: determining that the forwarding path reaching the opposite escape node on the RPR elastic packet ring network is switched to an escape link; setting the local escape port connected to the escape link from a blocking state to a forwarding state; modifying the member port of the member table item of the virtual aggregation port associated with the opposite escape node from the virtual port assigned to the opposite escape node to the virtual port assigned to the local escape port; determining that the egress port of the MAC address table item matching the destination MAC address of the first Ethernet unicast message to be forwarded is the virtual aggregation port assigned to the opposite escape node; selecting the virtual port assigned to the local escape port in the member table item of the virtual aggregation port; and sending the first Ethernet unicast message through the local escape port.

[0006] The above-mentioned purpose has not been achieved. The present application also provides a message forwarding device, which can be applied to the nodes of a resilient packet ring network, and the device includes: a setting unit, a switching unit, and a resilient packet ring processing unit; the resilient packet ring processing unit is used to determine that the forwarding path to reach the opposite escape node on the RPR network is switched to an escape link; the local escape port connected to the escape link is set from a blocking state to a forwarding state; the member port of the member table item of the virtual aggregation port associated with the opposite escape node is modified from the virtual port assigned to the opposite escape node to the virtual port assigned to the local escape port; the switching unit is used to determine that the egress port of the MAC address table item matching the destination MAC address of the first Ethernet unicast message to be forwarded is the virtual aggregation port assigned to the opposite escape node; select the virtual port assigned to the local escape port in the member table item of the virtual aggregation port; and send the first Ethernet unicast message through the local escape port.

[0007] The beneficial effect of the present application is that when the forwarding path between key nodes on the RPR network is unreachable, the service traffic between the key nodes is quickly switched to the escape link to ensure that the service between the key nodes is not interrupted. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0009] Figure 2A , Figure 2B This is a schematic diagram of the business quick escape architecture of this application;

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

[0011] 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.

[0012] 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.

[0013] Figure 1 This is a flow chart of an embodiment of a message forwarding method of the present application; the embodiment comprises the following steps:

[0014] Step 101: determine that a forwarding path to a peer escape node on an RPR is switched to an escape link.

[0015] Step 102: Set the local escape port connected to the escape link from a blocking state to a forwarding state.

[0016] Step 103: modify the member port of the member table entry of the virtual aggregation port associated with the peer escape node from the virtual port allocated to the peer escape node to the virtual port allocated to the local escape port.

[0017] Step 104 : Determine that the egress port of the MAC address entry that matches the destination MAC address of the Ethernet unicast message to be forwarded is a virtual aggregation port allocated to the escape node at the opposite end.

[0018] Step 105: Select a virtual port in the member table of the virtual aggregation port that is allocated to the local escape port; and send an Ethernet unicast message through the local escape port.

[0019] Figure 1 The beneficial effect of the embodiment is that when the forwarding path between key nodes on the RPR network is unreachable, the service traffic between the key nodes is quickly switched to the escape link to ensure that the services between the key nodes are not interrupted.

[0020] Figure 2A , 2B The schematic diagram of the service fast escape architecture of the present application; the RPR network 200 includes nodes A to D. The switching units and RPR processing units on each node are connected through internal physical Ethernet ports; wherein the Ethernet port T1 of the switching unit S1 of the node A is connected to the Ethernet port T3 of the switching unit S3 of the node C through an escape link composed of bare optical fibers.

[0021] The switching unit S1 of the node A specifies that the Ethernet port T1 corresponds to the RPR MAC of the destination escape node C; the switching unit S1 of the node C specifies that the Ethernet port T2 corresponds to the RPR MAC of the destination escape node A.

[0022] The internal physical Ethernet port Internal Port A between the switching unit S1 of node A and the RPR processing unit R1 is mapped to virtual ports 1, 2, 3, 4, 5 corresponding to nodes B, C, D, broadcast services and Ethernet port T1 of the destination escape site node C in the RPR network 200 respectively.

[0023] The internal physical Ethernet port Internal Port C between the switching unit S3 of node C and the RPR processing unit R3 is mapped to virtual ports 6, 7, 8, 9, 10 corresponding to nodes A, B, D, broadcast services and Ethernet port T2 of the destination escape site node A in the RPR network 200 respectively.

[0024] The internal physical Ethernet port Internal Port between the switching unit S2 of node B and the RPR processing unit R2 is mapped into four virtual ports corresponding to the nodes A, C, D and the broadcast service in the RPR network 200. Similarly, the internal physical Ethernet port Internal Port between the switching unit S4 of node D and the RPR processing unit R4 is mapped into four virtual ports corresponding to the nodes A, B, C and the broadcast service in the RPR network 200.

[0025] Node A aggregates virtual port 2 and virtual port 5 of node A into a virtual aggregate port VP LAG1, and records virtual port 2 and virtual port 5 as member ports in the member table entry of VPLAG1. Node A first virtually blocks virtual port 5 and deletes virtual port 5 in the member table entry of VP LAG1.

[0026] Node C aggregates virtual port 6 and virtual port 10 into a virtual aggregate port VP LAG2, and records virtual port 6 and virtual port 10 as member ports in the member table entry of VP LAG2. Node C first blocks virtual port 10 and deletes virtual port 10 in the member table entry of VP LAG2.

[0027] Figure 2A In the example, when the RPR network is operating normally, when node C receives a broadcast or Ethernet unknown unicast message, the switching unit S3 encapsulates the broadcast or Ethernet unknown unicast message with an RPR label with a broadcast service identifier (e.g., 0xff), and sends it to the RPR processing unit R3 through the internal port B. The RPR processing unit R3 strips off the RPR label, and according to the RPR label with the broadcast service identifier (e.g., 0xff), the node encapsulates the broadcast or Ethernet unknown unicast message into an RPR broadcast message with the RPR MAC address of the node as the source RPR MAC address and the RPR broadcast MAC address as the destination RPR MAC address, and sends it to the nodes on the inner ring and outer ring of the RPR network 200. Nodes B, D, and A receive the RPR broadcast message, strip off the RPR message header from the RPR broadcast message, and add an RPR label to the broadcast or Ethernet unknown unicast message with the RPR message header stripped off. Nodes B, D, and A each write the uplink node C identifier corresponding to the source RRR MAC into the RPR label. Nodes B, D, and A send Ethernet packets with RPR labels written with the identifier of the upstream node C to their respective switching units through their respective internal physical Ethernet ports. Nodes B, D, and A strip the RPR labels of Ethernet packets received by their internal Ethernet physical interfaces according to their locally configured ACL entries, determine the virtual port of node C corresponding to the upstream node identifier C, and learn the MAC address entry based on the source MAC address and the virtual port of node C. Among them, node A learns the MAC address based on VP LAG1 corresponding to node C.

[0028] When node A receives a broadcast or Ethernet unknown unicast message, it forwards it in the same way as node C. Nodes B, C, and D strip off the RPR label according to their locally configured ACL entries, determine the virtual port of node A corresponding to the node identifier A in the upper ring, and learn the MAC address entry based on the source MAC address and the virtual port of node A. Among them, node C learns the MAC address based on VP LAG2 corresponding to node A.

[0029] When the Ethernet unicast message received by node C needs to be sent to the terminal connected to node A, the switching unit S2 of node C searches for the outbound interface VP LAG2 of the MAC address table entry matching the destination MAC address of the received Ethernet unicast message, and selects the valid member virtual port 6 in the VPLAG2 member table entry.

[0030] The switching unit S2 of node C adds an RPR label (Tag) with a downlink node identifier to the Ethernet unicast message, wherein the downlink node identifier is the identifier of node A corresponding to virtual port 6. The switching unit S2 of node C sends the Ethernet unicast message with the RPR label to the RPR processing unit R2 through Internal Port B. The RPR processing unit R2 of node C strips off the RPR label, uses the RPR MAC address C of the node as the source RPR MAC address, and the RPR MAC address A corresponding to the downlink node identifier as the destination RPR MAC address to encapsulate it into an RPR unicast message, and sends it to node A through the RPR network 200.

[0031] Node A receives the RPR unicast message, and the RPR processing unit R1 strips off the RPR message header, encapsulates the Ethernet message with an RPR label with the uplink node identifier, that is, the uplink node identifier corresponding to the RPRMAC address of node C, and sends it to the switching unit S1 through the internal port Internal Port A. Switching unit S1 strips off the RPR label of the Ethernet unicast message received by Internal Port A according to the ACL table entry and determines the corresponding VP LAG1 according to the uplink node identifier corresponding to node C, then refreshes the learned MAC address table entry, and searches and forwards according to the destination MAC address of the Ethernet unicast message.

[0032] When the Ethernet unicast message received by node A needs to be sent to the terminal connected to node C, the forwarding processing method is the same as the processing of node C mentioned above, and this application will not go into details.

[0033] Figure 2B In the example, when the paths between node A and nodes B and D fail, node A releases the blocked virtual port 5, adds virtual port 5 to the member table entry of VP LAG1, and deletes virtual port 2 from the member table entry of VP LAG1.

[0034] When node C detects that the path between node A and nodes B and D does not contain the escape node A on the other end in the RPR network topology, node C releases the blocked virtual port 10, adds virtual port 10 to the member table entry of VP LAG2, and deletes virtual port 2 from the member table entry of VP LAG2.

[0035] When the Ethernet unicast message 301 received by node C needs to be sent to the terminal connected to node A, the switching unit S3 of node C searches for the outbound interface VP LAG2 of the MAC address table entry matching the destination MAC address of the received Ethernet unicast message 301, and selects the valid member virtual port 10 in the VP LAG2 member table entry.

[0036] Node C sends Ethernet unicast message 301 through the escape port T2 corresponding to virtual port 10, and sends it to the escape port T1 of node A through the escape link.

[0037] Node A receives Ethernet unicast message 301. According to the ACL entry matching item, the inbound port is the escape port T1. According to the escape port T1, the virtual port is VP LAG1. The learned MAC address entry is refreshed, and then the destination MAC address of Ethernet unicast message 301 is searched and forwarded.

[0038] When the Ethernet unicast message 302 received by node A needs to be sent to the terminal connected to node C, the switching unit S1 of node A searches for the outbound interface VP LAG1 of the MAC address table entry matching the destination MAC address of the received Ethernet unicast message 302, and selects the valid member virtual port 6 in the VP LAG1 member table entry.

[0039] Node A sends Ethernet unicast message 302 through the escape port T1 corresponding to virtual port 6, and sends it to the escape port T2 of node C via the escape link.

[0040] Node C receives Ethernet unicast message 302 , and according to the ACL entry matching entry, the inbound port is the escape port T2 , and according to the escape port T2 , the virtual port is VP LAG2 , so the learned MAC address entry is refreshed, and then forwarding is performed according to the destination MAC address of Ethernet unicast message 302 .

[0041] In the present application, the triggering conditions for nodes A and C to determine that the forwarding path to each other on the RPR network is switched to an escape link are not limited to the fault in Figure 2. The triggering conditions may also include a failure of the RPR board of node A or node C, the RPR ports on the inner ring and the outer ring are closed, the RPR board of the node is unplugged, restarted, etc. When any situation occurs that causes nodes A and C to be unable to carry Ethernet data packets between the two nodes through the RPR network, they can be forwarded by quickly switching to the escape link.

[0042] The present application can quickly switch the service traffic between key nodes to the escape link, because nodes A and C block their respective escape ports and remove the member table entries of the aggregation ports of their respective virtual ports before the failure, and set their respective escape ports to the forwarding state and add the member table entries of the aggregation ports of their respective virtual ports after the failure occurs. During the whole process, nodes A and C do not need to switch the MAC forwarding table entries with VP LAG1 and VP LAG2 as the egress ports, so it can ensure that the service port is quickly switched from the RPR ring to the escape link for forwarding.

[0043] Figure 3 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.

[0044] The elastic packet ring processing unit is used to determine that the forwarding path reaching the opposite escape node on the RPR network is switched to an escape link; the local escape port connected to the escape link is set from a blocking state to a forwarding state; the member port of the member table item of the virtual aggregation port associated with the opposite escape node is modified from the virtual port assigned to the opposite escape node to the virtual port assigned to the local escape port; the switching unit is used to determine that the egress port of the MAC address table item matching the destination MAC address of the first Ethernet unicast message to be forwarded is the virtual aggregation port assigned to the opposite escape node; select the virtual port assigned to the local escape port in the member table item of the virtual aggregation port; and send the first Ethernet unicast message through the local escape port.

[0045] The resilient packet ring processing unit is also used to determine that the forwarding path to the opposite escape node on the RPR network is reachable; set the local escape port from a forwarding state to a blocking state; and modify the member port of the member table entry of the virtual aggregation port associated with the opposite escape node from the virtual port assigned to the local escape port to the virtual port assigned to the opposite escape node.

[0046] The switching unit is also used to determine that the egress port of the MAC address table entry that matches the destination MAC address of the second Ethernet unicast message to be forwarded is the virtual aggregation port assigned to the opposite escape node; select the virtual port assigned to the opposite escape node in the member table entry of the virtual aggregation port; encapsulate the second Ethernet unicast message with an RPR label; wherein the RPR label carries the downlink node identifier corresponding to the virtual port of the opposite escape node; the elastic packet ring processing unit is also used to strip off the RPR label, use the RPR MAC address of the current node as the source RPR MAC address, use the RPR MAC address corresponding to the downlink node identifier as the destination RPR MAC address, encapsulate the second Ethernet unicast message into the first RPR unicast message; and send it through the RPR interface corresponding to the destination RPR MAC address of the first RPR unicast message.

[0047] A setting unit is used to specify an escape port corresponding to the RPR MAC address of the opposite escape node; generate a virtual aggregation port with the virtual port of the opposite escape node and the virtual port of the escape port as members; set the virtual port assigned to the local escape port to a blocked state; delete the virtual port of the local escape port as a member port of the member table entry of the virtual aggregation port associated with the opposite escape node; wherein the escape port is directly connected to the escape port of the opposite escape node through an escape link.

[0048] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A message forwarding method, characterized in that: The method comprises: Determine to switch the forwarding path on the resilient packet ring RPR network to the opposite end escape node to the escape link; Setting the local escape port connected to the escape link from a blocking state to a forwarding state; Modify the member port of the member table entry associated with the virtual aggregation port of the opposite end escape node from the virtual port allocated to the opposite end escape node to the virtual port allocated to the local escape port; Determine that the egress port of the MAC address table entry matching the destination MAC address of the first Ethernet unicast message to be forwarded is a virtual aggregation port allocated to the escape node at the opposite end; Selecting a virtual port allocated to the local escape port in the member table entry of the virtual aggregation port; and sending the first Ethernet unicast message through the local escape port.

2. The method according to claim 1, characterized in that The method further comprises: Determining that a forwarding path to a peer escape node on the RPR network is reachable; Setting the local escape port from a forwarding state to a blocking state; The member port of the member table entry associated with the virtual aggregation port of the opposite end escape node is modified from the virtual port allocated to the local escape port to the virtual port allocated to the opposite end escape node.

3. The method according to claim 1, characterized in that: The method further comprises: Determine that the egress port of the MAC address table entry matching the destination MAC address of the second Ethernet unicast message to be forwarded is a virtual aggregation port allocated to the escape node at the opposite end; Selecting a virtual port assigned to the peer escape node in the member table entry of the virtual aggregation port; encapsulating an RPR label for the second Ethernet unicast message; wherein the RPR label carries a downlink node identifier corresponding to the virtual port of the peer escape node; The RPR label 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 downlink node identifier is used as the destination RPR MAC address, and the second Ethernet unicast message is encapsulated as a first RPR unicast message; and the message is sent through the RPR interface corresponding to the destination RPR MAC address of the first RPR unicast message.

4. The method according to claim 3, characterized in that Before determining that the forwarding path reaching the escape node at the opposite end on the RPR network is switched to an escape link, the method further includes: Specifying the RPR MAC address of the opposite escape node to correspond to the escape port; wherein the escape port is directly connected to the escape port of the opposite escape node through an escape link; Generate a virtual aggregation port with the virtual port of the opposite end escape node and the virtual port of the escape port as members; Setting the virtual port assigned to the local escape port to a blocked state; The virtual port of the local escape port as a member port of the member table entry of the virtual aggregation port associated with the opposite escape node is deleted.

5. A message forwarding device, which can be applied to a node of a resilient packet ring network, characterized in that: The device comprises: a setting unit, a switching unit, and a resilient packet ring processing unit; The resilient packet ring processing unit is used to determine that the forwarding path to the opposite escape node on the resilient packet ring RPR network is switched to an escape link; the local escape port connected to the escape link is set from a blocking state to a forwarding state; the member port of the member table entry of the virtual aggregation port associated with the opposite escape node is modified from the virtual port assigned to the opposite escape node to the virtual port assigned to the local escape port; The switching unit is used to determine that the egress port of the MAC address table entry matching the destination MAC address of the first Ethernet unicast message to be forwarded is a virtual aggregation port assigned to the opposite escape node; select the virtual port assigned to the local escape port in the member table entry of the virtual aggregation port; and send the first Ethernet unicast message through the local escape port.

6. The device according to claim 5, characterized in that The resilient packet ring processing unit is also used to determine that the forwarding path to the opposite escape node on the RPR network is reachable; set the local escape port from a forwarding state to a blocking state; and modify the member port of the member table entry of the virtual aggregation port associated with the opposite escape node from the virtual port assigned to the local escape port to the virtual port assigned to the opposite escape node.

7. The device according to claim 5, characterized in that The switching unit is further used to determine that the egress port of the MAC address table entry matching the destination MAC address of the second Ethernet unicast message to be forwarded is a virtual aggregation port assigned to the opposite escape node; select the virtual port assigned to the opposite escape node in the member table entry of the virtual aggregation port; encapsulate the second Ethernet unicast message with an RPR label; wherein the RPR label carries a downlink node identifier corresponding to the virtual port of the opposite escape node; The resilient packet ring processing unit is further used to strip off the RPR label, use the RPR MAC address of the current node as the source RPR MAC address, use the RPR MAC address corresponding to the downlink node identifier as the destination RPR MAC address, and encapsulate the second Ethernet unicast message into a first RPR unicast message; The first RPR unicast message is sent through the RPR interface corresponding to the destination RPR MAC address of the first RPR unicast message.

8. The device according to claim 7, characterized in that The setting unit is used to specify that the RPR MAC address of the opposite escape node corresponds to the escape port; wherein the escape port is directly connected to the escape port of the opposite escape node through an escape link; Generate a virtual aggregation port with the virtual port of the opposite escape node and the virtual port of the escape port as members; Setting the virtual port assigned to the local escape port to a blocked state; The virtual port of the local escape port as a member port of the member table entry of the virtual aggregation port associated with the opposite escape node is deleted.

Citation Information

Patent Citations

  • Message sending method and device

    CN106899507A

  • Method and device for transmitting data message

    CN109495320A

  • Message sending method and network equipment

    CN110166356A

  • Packet transmission apparatus, packet forwarding method and packet transmission system

    US20070263660A1