A method and device for implementing leased line forwarding within a ring network
By setting up VLAN mapping relationships for leased line nodes and replicating RPR encapsulation within the RPR ring network, the problem of RPR ring network relying on leased line protocols is solved, enabling flexible leased line forwarding between nodes and improving the flexibility of user services.
Patent Information
- Application Number
- CN202310640316.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2043-05-31
AI Technical Summary
Existing RPR ring networks rely on leased line protocols such as MPLS for leased line forwarding between nodes, which lacks flexibility.
By setting up VLAN mapping relationships for leased line nodes within the RPR ring network, recording the leased line node mapping table, and copying and encapsulating the mapping table when no matching entry is found in the MAC address table, leased line forwarding between nodes is achieved.
It enables leased line data transmission via RPR ring network without requiring support for leased line protocols, increasing the flexibility of user services.
Smart Images

Figure CN116599794B_ABST
Abstract
Description
Technical Field
[0001] This application relates to communication technology, specifically a method and device for implementing leased line forwarding within a ring network. Background Technology
[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 broadband IP metropolitan area network operators with a flexible and efficient networking solution. RPR uses RPR MAC layer frame encapsulation to achieve transparent Ethernet over RPR transmission. The ring structure and topology protection mechanism of RPR are transparent to the forwarding process of the carried traffic and the access devices.
[0003] Within a single RPR ring, the direction in which an RPR node sends RPR data packets clockwise is ring 0, also known as the Outer Ring; the direction in which an RPR node sends RPR packets counterclockwise is ring 1, also known as the Inner Ring. RPR nodes send RPR data packets on ring 0 and receive them on ring 1 via eastward physical ports; conversely, they receive RPR data packets on ring 0 and send them on ring 1 via westward physical ports.
[0004] The east-west physical ports and west-facing physical ports of each RPR node form the RPR logical port. The RPR chip sends RPR packets to the RPR logical port for lower loop forwarding, and the switching chip sends Ethernet packets to the RPR logical port for upper loop forwarding.
[0005] However, enabling virtual leased lines between some nodes on an RPR ring network requires that the RPR nodes support corresponding leased line protocols, such as MPLS. Therefore, leased line forwarding adapted to the traditional transmission service model of the RPR ring network is necessary. Summary of the Invention
[0006] The purpose of this application is to provide a method and device for implementing leased line forwarding within a ring network, which will enable node-to-node leased line forwarding within an RPR ring network.
[0007] To achieve the above objectives, this application provides a method for implementing leased line forwarding within a ring network. The method includes: recording a leased line node mapping table based on the configured service VLAN mapping relationship of the leased line nodes; wherein the leased line node mapping table records the leased line nodes corresponding to each service VLAN; receiving a Q-in-Q unicast packet; determining that the service VLAN of the Q-in-Q unicast packet is recorded in the leased line node mapping table; finding no matching MAC address entry for the service VLAN and destination MAC address of the Q-in-Q unicast packet in the MAC address table; copying a Q-in-Q unicast packet for each of the more than one leased line nodes corresponding to the service VLAN of the Q-in-Q unicast packet, based on the leased line node mapping table; and performing RPR encapsulation on each copied Q-in-Q unicast packet and sending it, using the RPR MAC address of this device as the source MAC address and the RPR MAC address of each leased line node corresponding to the service VLAN of the Q-in-Q unicast packet as the destination MAC address.
[0008] To achieve the above objectives, this application also provides a device for implementing leased line forwarding within a ring network. The device includes a processor and a memory; the memory stores processor-executable instructions; wherein the processor executes the processor-executable instructions in the memory to perform the following operations: based on setting the service VLAN mapping relationship of leased line nodes, recording a leased line node mapping table; wherein the leased line node mapping table records the leased line node corresponding to each service VLAN; receiving Q-in-Q unicast packets; determining that the service VLAN of the Q-in-Q unicast packet is recorded in the leased line node mapping table; finding no matching MAC address entry for the service VLAN and destination MAC address of the Q-in-Q unicast packet in the MAC address table; based on the leased line node mapping table, copying a Q-in-Q unicast packet for each of the more than one leased line nodes corresponding to the service VLAN of the Q-in-Q unicast packet; using the RPR MAC address of this device as the source MAC address, and using the RPR of each leased line node corresponding to the service VLAN of the Q-in-Q unicast packet... The MAC address is the destination MAC address. Each copied Q-in-Q unicast message is RPR-encapsulated and sent.
[0009] The beneficial effect of this application is that the equipment in the RPR ring network does not need to support the leased line protocol, and can realize leased line data transmission on the RPR ring network through the transmission service model, which increases the flexibility of user services. Attached Figure Description
[0010] Figure 1 A flowchart illustrating an embodiment of the method for implementing leased line forwarding within a ring network provided in this application;
[0011] Figure 2 A schematic diagram illustrating an embodiment of dedicated line forwarding within a ring network provided in this application;
[0012] Figure 3 A schematic diagram illustrating another embodiment of dedicated line forwarding within a ring network provided in this application;
[0013] Figure 4 This is a schematic diagram of an embodiment of a dedicated line forwarding device within a ring network provided in this application. Detailed Implementation
[0014] The following detailed description will be provided with reference to several examples illustrated in the accompanying figures. In this detailed description, numerous 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 obscuring their meaning.
[0015] In the terminology used, the term "including" means including but not limited to; the term "containing" means including but not limited to; the terms "above," "within," and "below" include the number itself; the terms "greater than" and "less than" mean not including the number itself. The term "based on" means based on at least a portion of them.
[0016] Figure 1 The flowchart shown is an embodiment of the method for implementing leased line forwarding within a ring network provided in this application. The method includes the following steps:
[0017] Step 101: Based on the configured service VLAN mapping relationship of the leased line node, record the leased line node mapping table; wherein, the leased line node mapping table records the leased line node corresponding to each service VLAN;
[0018] Step 102: Receive Q-in-Q unicast messages;
[0019] Step 103: Determine that the leased line node mapping table records the service VLAN of the Q-in-Q unicast message;
[0020] Step 104: No matching MAC address entry for the serving VLAN and destination MAC address of the Q-in-Q unicast packet was found in the MAC address table.
[0021] Step 105: Based on the leased line node mapping table, copy a copy of the Q-in-Q unicast message for each of the more than one leased line nodes corresponding to the service VLAN of the Q-in-Q unicast message.
[0022] Step 106: Using the RPR MAC address of this device as the source MAC address and the RPR MAC address of each leased node corresponding to the service VLAN of the Q-in-Q unicast packet as the destination MAC address, perform RPR encapsulation on each copied Q-in-Q unicast packet and send it.
[0023] Figure 2This is a schematic diagram of an embodiment of dedicated line forwarding within a ring network provided in this application.
[0024] Figure 2 In the configuration, the dedicated line node service VLAN mapping relationship set in node 21 includes dedicated line nodes 22 and 24 corresponding to service VLAN 1; and dedicated line node 23 corresponding to service VLAN 2. Based on the dedicated line node service VLAN mapping relationship of this device, node 21 records the dedicated line node mapping table 210.
[0025] The leased line node service VLAN mapping relationship configured in node 22 includes leased line nodes 21 and 24 corresponding to service VLAN 1. Based on the leased line node service VLAN mapping relationship of this device, node 22 records the leased line node mapping table 220.
[0026] The leased line node service VLAN mapping relationship configured in node 23 includes leased line node 21 corresponding to service VLAN2. Based on the leased line node service VLAN mapping relationship of this device, node 23 records the leased line node mapping table 230.
[0027] The leased line node service VLAN mapping relationship configured in node 24 includes leased line nodes 21 and 22 corresponding to service VLAN 1. Based on the leased line node service VLAN mapping relationship of this device, node 24 records the leased line node mapping table 240.
[0028] When terminal T1 sends data to terminal T2, it sends a Q-in-Q unicast message 201 to node 21.
[0029] Node 21 receives Q-in-Q unicast message 201; determines that the leased node mapping table records the service VLAN 1 of the Q-in-Q unicast message; in the MAC address table, no matching MAC address entry is found for the service VLAN 1 and destination MAC address MCT2 of the Q-in-Q unicast message 201; based on the leased node mapping table 210, copies a copy of Q-in-Q unicast message 201 to nodes 22 and 24 corresponding to the service VLAN 1 of the Q-in-Q unicast message 201; using the RPR MAC address MAC21 of this device as the source RPR MAC address, and using the RPR MAC address of each leased node 22 and node 24 corresponding to the service VLAN 1 of the Q-in-Q unicast message as the destination RPR MAC address, each copied Q-in-Q unicast message 201 is encapsulated into an RPR unicast message 202 and sent to nodes 22 and 24 respectively through the eastbound RPR port and the westbound RPR port.
[0030] Node 22 receives RPR unicast message 202, obtains the source RPR MAC address of the received RPR unicast message 202 and the serving VLAN1 of the inner Q-in-Q unicast message 201; determines that the source RPR MAC address of RPR unicast message 202 is the leased node 21 in the leased line mapping table 220; and learns the MAC address table entry based on the source MAC address of the inner Q-in-Q unicast message 201, the serving VLAN1, and the source RPR MAC address of RPR unicast message 202. Node 22 removes the RPR encapsulation of RPR unicast message 202; if the destination MAC address MAC T2 of the inner Q-in-Q unicast message 201 and the corresponding outgoing port of the user VLAN are not found in the MAC address table, it broadcasts through the port of the user VLAN belonging to the inner Q-in-Q unicast message 201.
[0031] Through the dedicated line transmission of the RPR ring network, data services are forwarded to RPR nodes belonging to the same dedicated line network via RPR unicast messages, and will not be flooded to all nodes of the RPR ring network, thus avoiding the eventual flooding to terminals accessing non-dedicated line nodes.
[0032] Node 24 receives RPR unicast message 202, obtains the source RPR MAC address of the received RPR unicast message 202 and the serving VLAN1 of the inner Q-in-Q unicast message 201; determines that the source RPR MAC address of RPR unicast message 202 is the leased node 21 in the leased line mapping table 220; and learns the MAC address table entry based on the source MAC address of the inner Q-in-Q unicast message 201, the serving VLAN1, and the source RPR MAC address of RPR unicast message 202. Node 24 removes the RPR encapsulation of RPR unicast message 202; finds the destination MAC address MAC T2 of the inner Q-in-Q unicast message 201 and the corresponding egress port of the user VLAN in the MAC address table, and sends the inner Q-in-Q unicast message 201 to terminal T2 through the egress port.
[0033] When terminal T2 sends data to terminal T1, it sends a Q-in-Q unicast message 203 to node 24.
[0034] Node 24 receives Q-in-Q unicast message 203; determines that the leased line node mapping table records the serving VLAN 1 of the Q-in-Q unicast message; in the MAC address table, finds the matching MAC address entry of the serving VLAN 1 and the destination MAC address MAC T1 of the Q-in-Q unicast message 203; using the RPR MAC address MAC24 of this device as the source RPR MAC address and RPR MAC21 as the destination RPR MAC address, encapsulates the Q-in-Q unicast message 203 into an RPR unicast message 204, and sends it to Node 21 through the westbound RPR port.
[0035] Node 21 receives RPR unicast message 204, obtains the source RPR MAC address of the received RPR unicast message 204 and the serving VLAN1 of the inner Q-in-Q unicast message 203; determines that the source RPR MAC address of RPR unicast message 203 is the leased node 24 in the leased line mapping table 220; and learns the MAC address table entry based on the source MAC address of the inner Q-in-Q unicast message 203, the serving VLAN1, and the source RPR MAC address of RPR unicast message 203. Node 21 removes the RPR encapsulation from RPR unicast message 204; finds the destination MAC address MAC T1 of the inner Q-in-Q unicast message 203 and the corresponding egress port of the user VLAN in the MAC address table, and sends the inner Q-in-Q unicast message 203 to terminal T1 through the egress port.
[0036] Figure 3 This is a schematic diagram of another embodiment of dedicated line forwarding within a ring network provided in this application.
[0037] Figure 3 In the process, the VLAN mapping relationship of the leased line node in node 23 is modified to the leased line node 24 corresponding to the service VLAN 3; based on the modified VLAN mapping relationship of the leased line node in this device, node 23 sets up leased line node mapping table 231.
[0038] The VLAN mapping relationship of the leased line node in node 24 has been modified to include leased line node 23 corresponding to service VLAN 3. Based on the modified VLAN mapping relationship of the leased line node in this device, node 24 has set up leased line node mapping table 241.
[0039] When terminal T2 sends a Q-in-Q unicast message 301 destined for T1 to node 24, node 24 discards the Q-in-Q unicast message 301 if it does not find the serving VLAN 1 in the leased node mapping table 241. Subsequently, if node 24 receives Q-in-Q broadcast or unicast messages belonging to serving VLAN 1, and does not find the serving VLAN 1 in the leased node mapping table 241, it discards them all.
[0040] When terminal T2 sends a Q-in-Q broadcast message 302 belonging to the serving VLAN 3 to node 24, node 24 looks up the serving VLAN 3 of the Q-in-Q broadcast message 302 in the leased node mapping table 241, uses the RPR MAC address of this device MAC24 as the source RPR MAC address, and uses the RPR MAC address of the leased node 23 corresponding to the serving VLAN 3 as the destination RPR MAC address, encapsulates the Q-in-Q broadcast message 302 into an RPR unicast message 303, and sends it to node 23 through the eastbound RPR port.
[0041] Node 23 receives RPR unicast message 303, removes the RPR encapsulation, and broadcasts it through the port of the user VLAN belonging to the inner Q-in-Q unicast message 302.
[0042] Figure 2 In this embodiment, nodes 21-24 collect the topology of the RPR ring network; and check the leased node mapping table based on the RPR ring network topology and the VLAN mapping relationship of their respective leased nodes.
[0043] When node 24 fails, node 21 removes leased node 24 from the leased node mapping table 210, and only records the leased node 22 corresponding to the service VLAN. Similarly, node 22 removes leased node 24 from the leased node mapping table 220.
[0044] When node 24 recovers from the fault, nodes 21-24 recollect the topology of the RPR ring network based on the topology collection cycle; and check the leased node mapping table based on the RPR ring network topology and the VLAN mapping relationship of their respective leased nodes.
[0045] If node 21 determines that node 24 is not recorded in the leased line node mapping table 210, then according to the VLAN mapping relationship of this device served by the leased line node, it adds the restored leased line node 24 corresponding to service VLAN 1 to the leased line node mapping table 210. Similarly, node 22 adds the restored leased line node 24 corresponding to service VLAN 1 to the leased line node mapping table 220.
[0046] Figure 4 This is a schematic diagram of an embodiment of a dedicated line forwarding device within a ring network provided in this application. The device 40 includes a processor and a memory; the memory stores processor-executable instructions; the processor executes the processor-executable instructions in the memory to perform the following operations: based on the configured dedicated line node service VLAN mapping relationship, record a dedicated line node mapping table; wherein the dedicated line node mapping table records the dedicated line node corresponding to each service VLAN; receive Q-in-Q unicast packets; determine that the dedicated line node mapping table records the service VLAN of the Q-in-Q unicast packet; in the MAC address table, no matching MAC address entry is found for the service VLAN and destination MAC address of the Q-in-Q unicast packet; based on the dedicated line node mapping table, copy a Q-in-Q unicast packet for each of the more than one dedicated line nodes corresponding to the service VLAN of the Q-in-Q unicast packet; using the device's RPR MAC address as the source MAC address and the RPR MAC address of each dedicated line node corresponding to the service VLAN of the Q-in-Q unicast packet as the destination MAC address, perform RPR encapsulation on each copied Q-in-Q unicast packet and send it.
[0047] The processor also performs the following operations by running processor-executable instructions in memory: receiving Q-in-Q broadcast messages; determining that the leased node mapping table records the service VLAN of the Q-in-Q broadcast message; based on the leased node mapping table, copying a Q-in-Q broadcast message for each of the more than one leased nodes corresponding to the service VLAN of the Q-in-Q broadcast message; using the RPR MAC address of this device as the source MAC address and the RPR MAC address of each leased node corresponding to the service VLAN of the first Q-in-Q broadcast message as the destination MAC address, performing RPR encapsulation on each copied first Q-in-Q broadcast message and sending it.
[0048] The processor also performs the following operations by running processor-executable instructions in memory: when the leased node mapping table does not record the service VLAN of a Q-in-Q unicast message or a Q-in-Q broadcast message, discard the Q-in-Q unicast message or Q-in-Q broadcast message.
[0049] The processor also performs the following operations by executing processor-executable instructions in memory: receiving RPR unicast messages; obtaining the source RPR MAC address of the received RPR unicast message and the serving VLAN of the inner Q-in-Q message; when the source RPR MAC address of the received RPR unicast message is a leased node in the leased line mapping table; and learning MAC address entries based on the source MAC address of the inner Q-in-Q message, the serving VLAN, and the source RPR MAC address of the received RPR unicast message.
[0050] The processor also performs the following operations by running processor-executable instructions in memory: stripping the RPR encapsulation from the received RPR unicast message; sending the inner Q-in-Q message when the destination MAC address and the corresponding egress port of the user VLAN of the inner Q-in-Q message are found in the MAC address table; or, when the destination MAC address and the corresponding egress port of the user VLAN of the inner Q-in-Q message are not found in the MAC address table or the message type of the inner Q-in-Q message is broadcast; broadcasting through the port of the user VLAN belonging to the inner Q-in-Q message.
[0051] The processor also performs the following operations by running processor-executable instructions in memory: collecting the topology of the RPR ring network; checking the leased node mapping table based on the topology and the VLAN mapping relationship of the leased node services; deleting leased nodes not included in the topology from the leased node mapping table; and adding the restored leased nodes from the topology to the leased node mapping table.
[0052] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for implementing dedicated line forwarding within a ring network, characterized in that, The method includes: Based on the configuration of the dedicated line node service VLAN mapping relationship, a dedicated line node mapping table is recorded; wherein, the dedicated line node mapping table records the dedicated line node corresponding to each service VLAN; Receive Q-in-Q unicast messages; It was determined that the leased line node mapping table recorded the service VLAN of the Q-in-Q unicast message; No matching MAC address entry was found in the MAC address table for the serving VLAN and destination MAC address of the Q-in-Q unicast message. Based on the leased line node mapping table, for each of the more than one leased line nodes corresponding to the service VLAN of the Q-in-Q unicast packet, a copy of the Q-in-Q unicast packet is made; Using the RPR MAC address of this device as the source MAC address and the RPR MAC address of each leased node corresponding to the service VLAN of the Q-in-Q unicast message as the destination MAC address, RPR encapsulation is performed on each copied Q-in-Q unicast message and then sent.
2. The method according to claim 1, characterized in that, The method further includes: Receive Q-in-Q broadcast messages; It is determined that the leased line node mapping table records the service VLAN of the Q-in-Q broadcast message; Based on the leased line node mapping table, for one or more leased line nodes corresponding to the service VLAN of the Q-in-Q broadcast message, a copy of the Q-in-Q broadcast message is made for each of them; Using the RPR MAC address of this device as the source MAC address and the RPR MAC address of each leased node corresponding to the service VLAN of the Q-in-Q broadcast message as the destination MAC address, RPR encapsulation is performed on each copied Q-in-Q broadcast message and then sent.
3. The method according to claim 1 or 2, characterized in that, The method further includes: When the leased line node mapping table does not record the service VLAN of the Q-in-Q unicast message or the Q-in-Q broadcast message, the Q-in-Q unicast message or the Q-in-Q broadcast message is discarded.
4. The method according to claim 1, characterized in that, The method further includes: Receive RPR unicast messages; Obtain the source RPR MAC address of the received RPR unicast message and the service VLAN of the inner Q-in-Q message; When the source RPR MAC address of the received RPR unicast message is the leased node in the leased line mapping table, the MAC address table entry is learned based on the source MAC address of the inner Q-in-Q message, the serving VLAN, and the source RPR MAC of the received RPR unicast message.
5. The method according to claim 4, characterized in that, The method further includes: Remove the RPR encapsulation from the received RPR unicast message; When the destination MAC address and the corresponding egress port of the user VLAN for the inner Q-in-Q packet are found in the MAC address table, the inner Q-in-Q packet is sent; or When the destination MAC address and the corresponding outgoing port of the user VLAN of the inner Q-in-Q packet are not found in the MAC address table, or when the packet type of the inner Q-in-Q packet is broadcast, the packet is broadcast through the port of the user VLAN belonging to the inner Q-in-Q packet.
6. The method according to claim 1, characterized in that, The method further includes: Collect the topology of the RPR ring network; Based on the topology and the VLAN mapping relationship of the leased line node service, check the leased line node mapping table; Delete the leased line nodes that are not included in the topology from the leased line node mapping table. Add the restored dedicated line node from the topology to the dedicated line node mapping table.
7. A device for dedicated line forwarding within a ring network, characterized in that, The device includes a processor and a memory; the memory stores processor-executable instructions; wherein the processor executes the processor-executable instructions in the memory to implement the method of any one of claims 1-6.
Citation Information
Patent Citations
SDN (Software Defined Network)-based virtual private line service issuing method and device, medium and electronic equipment
CN115776441A
Method for realizing Ethernet virtual special network in elastic grouping ring net
CN1780258A