Message processing method and device, ring node and computer readable storage medium

By using ring node tags to process messages in a one-way ring network, the problem of complex network structure of traditional parks is solved, and the normal communication and communication efficiency of messages are improved.

CN119520190APending Publication Date: 2025-02-25HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311063689.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-22
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The traditional three-layer campus network structure is complex and difficult to simplify, and in the new campus network, the message processing method needs to be adjusted to ensure normal communication.

Method used

By introducing ring node tags into the one-way ring network, the ring node processes messages based on the target ring node tags, realizing normal communication of messages within the one-way ring network and improving communication efficiency.

Benefits of technology

It realizes normal communication of messages in a one-way ring network, improves communication efficiency, and simplifies the network structure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520190A_ABST
    Figure CN119520190A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a message processing method and device, a ring node and a computer readable storage medium, and belongs to the technical field of communication. In the method, a first ring node receives a first message through a first type of ports, the first message carries a first target ring node label, the first target ring node label is a ring node label of a ring node associated with a destination node of the first message, and the first ring node is any ring node in a unidirectional ring network; and the first ring node processes the first message based on the first target ring node label. Based on this, when any ring node in the unidirectional ring network receives a message from other ring nodes, whether the ring node itself is a ring node associated with a destination node of the message can be quickly analyzed based on a target ring node label carried by the message, and then whether the message continues to be forwarded in the unidirectional ring network at present is judged. Normal communication of the message in the one-way ring network is realized, and the communication efficiency of the one-way ring network can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a message processing method, device, ring node and computer-readable storage medium. Background Art

[0002] The traditional three-layer campus network includes access switches, aggregation switches, and core switches. The structure of this campus network is relatively complex. Based on this, more and more new campus networks hope to omit the middle-layer aggregation switches to simplify the network structure. In new campus networks, it is usually necessary to adjust the message processing method, such as forwarding rules, to ensure normal communication of the new campus network. Summary of the invention

[0003] The embodiments of the present application provide a message processing method, device, ring node and computer-readable storage medium, which can realize normal communication of messages in a unidirectional ring network and improve the communication efficiency of messages in the unidirectional ring network. The technical solution is as follows:

[0004] In a first aspect, a message processing method is provided, which is applied to a communication system. The communication system includes multiple ring nodes, and the multiple ring nodes are connected to form a unidirectional ring network. Each of the multiple ring nodes includes a first type port and a second type port. The first type port is used to communicate with other ring nodes in the unidirectional ring network, and the second type port is used to communicate with nodes outside the unidirectional ring network. Each of the multiple ring nodes is configured with a ring node label.

[0005] In this method, a first link node receives a first message through a first type port, the first message carries a first target link node label, the first target link node label is a link node label of a link node associated with a destination node of the first message, and the first link node is any link node in a unidirectional ring network; the first link node processes the first message based on the first target link node label.

[0006] In an embodiment of the present application, for messages forwarded within a unidirectional ring network, a ring node label of a ring node associated with the destination node of the message is carried in the message. When any ring node within the unidirectional ring network receives the message, it can quickly analyze whether it is the ring node associated with the destination node of the message based on the ring node label, and then determine whether to continue forwarding the message within the unidirectional ring network. This not only realizes normal communication of messages within the unidirectional ring network, but also improves the communication efficiency of the unidirectional ring network.

[0007] Based on the method provided in the first aspect, in some embodiments, the first link node is based on the first target link node label, and the implementation process of processing the first message can be: the first link node processes the first message based on the comparison result between the first target link node label and the first link node label, and the methods of processing the first message include intra-ring forwarding and intra-ring termination, and the first link node label is the link node label of the first link node.

[0008] Since the first target ring node label is the ring node label of the ring node associated with the destination node of the first message, it is possible to determine whether to continue forwarding within the ring or terminate forwarding of the message within the ring by comparing the first target ring node label with the ring node label of the first ring node itself, thereby improving the communication efficiency of the unidirectional ring network.

[0009] Based on the method provided in the first aspect, in some embodiments, the first message also carries a first destination media access control MAC address, and the first destination MAC address is a unicast address, the first destination MAC address indicates a destination node of the first message, and the first target ring node label is a ring node label of a ring node to which the destination node of the first message is connected. In this scenario, the way of processing the first message includes intra-ring forwarding and intra-ring termination, and the intra-ring termination includes forwarding the first message through a second-class port.

[0010] For unicast traffic, since the destination node of the message is usually an outer node connected to the ring node in the unidirectional ring network, the first target ring node label can be directly set to the ring node label of the ring node in the unidirectional ring network that is connected to the destination node of the first message. In this way, when any subsequent ring node receives the message, it can determine whether the destination node is connected to itself based on the first target ring node label. When it is determined that the destination node is connected to itself, the message is forwarded through the second type port, that is, the message is processed in the next ring, thereby realizing the termination of the message in the ring and improving the communication efficiency of unicast traffic in the unidirectional ring network.

[0011] Based on the method provided in the first aspect, in some embodiments, the first ring node may implement the process of processing the first message based on the comparison result between the first target ring node label and the first ring node label as follows: if the first target ring node label conflicts with the first ring node label, the first message is forwarded to the second ring node through the first type port, and the second ring node is a ring node other than the first ring node in the unidirectional ring network.

[0012] Among them, the conflict between the first target ring point label and the first ring point label can be understood as: the ring point indicated by the first target ring point label and the ring point indicated by the first ring point label are not the same ring point. Since the first target ring point label is the ring point label of the ring point connected to the destination node of the first message in the unidirectional ring network, when the first target ring point label conflicts with the first ring point label, it indicates that the destination node of the first message is not connected to the first ring point, in other words, it is not under the first ring point. Therefore, the first ring point can directly continue to forward the first message in the ring without performing the second-layer forwarding processing outside the ring on the first message, thereby improving the communication efficiency of unicast traffic in the unidirectional ring network.

[0013] Based on the method provided in the first aspect, in some embodiments, the first link node is based on the comparison result between the first target link node label and the first link node label, and the implementation process of processing the first message can be: if the first target link node label is consistent with the first link node label, then delete the first target link node label in the first message to obtain the second message; and forward the second message to the destination node through the second class port based on the first destination MAC address.

[0014] The first target ring point label is consistent with the first ring point label, which can be understood as: the ring point indicated by the first target ring point label is the same as the ring point indicated by the first ring point label. Since the first target ring point label is the ring point label of the ring point connected to the destination node of the first message in the unidirectional ring network, when the first target ring point label is consistent with the first ring point label, it indicates that the destination node of the first message is connected to the first ring point, in other words, it is connected to the first ring point. Therefore, the first ring point terminates the forwarding of the first message in the ring, and performs layer 2 forwarding outside the ring for the first message, so as to forward the first message to the destination node outside the ring connected to itself, thereby improving the communication efficiency of unicast traffic in the unidirectional ring network.

[0015] Based on the method provided in the first aspect, in some embodiments, the first message also carries a first destination media access control MAC address, and the first destination MAC address is a broadcast address, and the first target ring node label is a ring node label of a ring node in a unidirectional ring network that generates the first message. In this scenario, the way of processing the first message includes intra-ring forwarding and intra-ring termination, and the intra-ring termination includes discarding the first message.

[0016] For broadcast traffic, since the destination node of the message is the node outside the ring to which all the ring nodes in the unidirectional ring network are connected, the first target ring node label can be set to the ring node label of the ring node that generates the first message in the unidirectional ring network. Among them, the ring node that generates the first message can be understood as: the traffic goes up the ring from the ring node, and the ring node adds the first target ring node label to the traffic, thereby obtaining the first message. The ring node that generates the first message can also be called the source ring node that broadcasts the first message. In this way, when any subsequent ring node receives the first message, it can determine whether the broadcast traffic has been forwarded in the ring for one circle based on the first target ring node label, and then discard the first message when it is determined that the broadcast traffic has been forwarded in the ring for one circle, thereby avoiding the broadcast storm of the broadcast traffic in the unidirectional ring network and improving the communication efficiency of the broadcast traffic in the unidirectional ring network.

[0017] Based on the method provided in the first aspect, in some embodiments, the first ring node processes the first message based on the comparison result between the first target ring node label and the first ring node label: if the first target ring node label conflicts with the first ring node label, the first message is forwarded to the third ring node through the first type port, and the third ring node is a ring node other than the first ring node in the unidirectional ring network.

[0018] The conflict between the first target ring point label and the first ring point label can be understood as: the ring point indicated by the first target ring point label is not the same as the ring point indicated by the first ring point label. Since the first target ring point label is the ring point label of the ring point that generates the first message in the unidirectional ring network, when the first target ring point label conflicts with the first ring point label, it indicates that it is not the ring point that generates the first message, and therefore needs to continue to forward the message in the ring to achieve the broadcast of the first message in the unidirectional ring network.

[0019] Based on the method provided in the first aspect, in some embodiments, if the first target ring node label conflicts with the first ring node label, the first message is also forwarded to a node outside the unidirectional ring network through the second type port.

[0020] When broadcasting the first message, two forwarding processes are required for the first message. One forwarding process is to continue forwarding the first message in the ring so that other nodes in the ring can receive the first message. The other forwarding process is to broadcast the first message to each node outside the ring to which it is connected, so as to achieve the purpose of broadcasting the first message.

[0021] Based on the method provided in the first aspect, in some embodiments, the first ring node may implement the process of processing the first message based on the comparison result between the first target ring node label and the first ring node label: if the first target ring node label is consistent with the first ring node label, the first message is discarded.

[0022] The first target link node label is consistent with the first link node label, which can be understood as: the link node indicated by the first target link node label is the same as the link node indicated by the first link node label. When the first target link node label is consistent with the first link node label, it indicates that it is the link node that generates the first message, that is, the source link node that broadcasts the first message, indicating that the first message has been transmitted in the unidirectional ring network for a circle and returned to the first link node, so the first message can be stopped from being forwarded in the ring, thereby avoiding the occurrence of broadcast storms.

[0023] Based on the method provided in the first aspect, in some embodiments, the first message also carries a first destination media access control MAC address and a first source MAC address, and the first destination MAC address is a broadcast address, and the first target ring node label is a ring node label of a ring node in a unidirectional ring network that generates the first message. In this scenario, a correspondence between the first source MAC address and the first target ring node label can also be added to the forwarding table, and the forwarding table is used to indicate the correspondence between the ring node label of any ring node and the MAC address of the node outside the ring to which the corresponding ring node is connected.

[0024] In the above manner, the first ring node can learn the correspondence between the ring node labels of each ring node in the unidirectional ring network and the MAC address of the outer ring node connected to the corresponding ring node through broadcast traffic. In this way, when the upper ring traffic that needs to reach the outer ring node is received later, the target ring node label that needs to be added to the upper ring traffic can be found through the forwarding table. That is, the embodiment of the present application provides a MAC learning method based on a unidirectional ring network.

[0025] Based on the method provided in the first aspect, in some embodiments, in the method, the first link node receives the third message through the second class port; the first link node determines the second target link node label from the link node label of each link node in the multiple link nodes, and the second target link node label is the link node label of the link node associated with the destination node of the third message; the first link node adds the second target link node label to the third message to obtain a fourth message; the first link node forwards the fourth message through the first class port.

[0026] In the embodiment of the present application, for the traffic received from the second type port of the ring node in the unidirectional ring network, that is, the upper ring traffic, in order to facilitate the subsequent ring nodes in the ring to quickly determine the processing method of the traffic, when the first ring node receives the upper ring traffic, it can add the node label of the ring node in the ring associated with the destination node of the upper ring traffic, that is, the target ring node label. In this way, other ring nodes in the subsequent ring can quickly determine the processing method of the upper ring traffic based on the target ring node label, thereby improving the communication efficiency of the unidirectional ring network.

[0027] Based on the method provided in the first aspect, in some embodiments, the third message also carries a second destination media access control MAC address, and the second destination MAC address is a unicast address. In this scenario, the first ring node determines the second target ring node label from the ring node label of each ring node in the multiple ring nodes. The implementation process can be: obtaining the ring node label of the ring node to which the destination node of the third message is connected; if the ring node label of the ring node to which the destination node of the third message is connected is obtained, then the obtained ring node label is determined as the second target ring node label.

[0028] For unicast traffic, since the destination node of the third message is usually an outer node connected to the ring node in the unidirectional ring network, the second target ring node label can be directly set to the ring node label of the ring node in the unidirectional ring network that is connected to the destination node of the third message, so that other subsequent ring nodes can quickly determine whether to continue transmitting the fourth message in the ring based on the target ring node label when receiving the fourth message, thereby improving the communication efficiency of unicast traffic in the unidirectional ring network.

[0029] Based on the method provided in the first aspect, in some embodiments, the implementation process of obtaining the ring node label of the ring node to which the destination node of the third message is connected can be: searching for the ring node label corresponding to the second destination MAC address from the forwarding table, and the forwarding table is used to indicate the correspondence between the ring node label of any ring node and the MAC address of the node outside the ring to which the corresponding ring node is connected.

[0030] In an embodiment of the present application, the forwarding table locally stored in the first ring node is used to indicate the correspondence between the ring node label of the ring node in the unidirectional ring network and the MAC address of the node outside the ring to which the corresponding ring node is connected. Therefore, the first ring node can obtain the target ring label that needs to be added to the upper ring traffic based on the destination MAC address of the upper ring traffic, so that other subsequent ring nodes in the ring can quickly determine whether it is necessary to continue to transmit the third message in the ring based on the target ring node label, thereby improving the communication efficiency of unicast traffic in the unidirectional ring network.

[0031] Based on the method provided in the first aspect, in some embodiments, in the method, if the ring node label of the ring node to which the destination node of the third message is connected is not obtained, the first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node. Accordingly, before the first ring node forwards the fourth message through the first class port, the second destination MAC address in the fourth message is also replaced with a broadcast address.

[0032] If the ring node label of the ring node to which the destination node of the third message is connected is not obtained, it means that it is currently impossible to determine at which ring node in the ring the upper ring traffic needs to be left the ring. At this time, the upper ring traffic can be broadcast to each ring node in the ring, so that each ring node in the ring can broadcast the upper ring traffic to the nodes outside the ring to which it is connected.

[0033] Furthermore, when broadcasting the upper ring traffic to each ring node in the ring, the ring node label of the source ring node broadcasting the upper ring traffic can be added to the upper ring traffic. On the one hand, in the subsequent broadcast process, each ring node can determine whether to terminate the transmission of the third message in the ring based on the second target ring node label, thereby avoiding the occurrence of broadcast storms. On the other hand, it can also enable other ring nodes in the ring to learn the correspondence between the source ring node label of the ring node broadcasting the upper ring traffic and the source MAC address of the upper ring traffic, so that when the traffic with the destination node indicated by the source MAC address is received later, the target ring node label can be added based on the learned correspondence.

[0034] Based on the method provided in the first aspect, in some embodiments, the third message also carries a second destination media access control MAC address, and the second destination MAC address is a broadcast address. The implementation process of the first ring node determining the second target ring node label from the ring node label of each ring node in the multiple ring nodes can be: determining the first ring node label as the second target ring node label, and the first ring node label is the ring node label of the first ring node.

[0035] Through the above method, on the one hand, each ring node can determine whether to terminate the transmission of the third message in the ring based on the second target ring node label during the subsequent broadcast process, thereby avoiding the occurrence of broadcast storms. On the other hand, it can facilitate other ring nodes in the ring to learn the correspondence between the source ring node label of the ring node that broadcasts the ring traffic and the source MAC address of the ring traffic, so that when the destination node is the node indicated by the source MAC address, the target ring node label can be added based on the learned correspondence.

[0036] Based on the method provided in the first aspect, in some embodiments, the first message includes a first virtual local area network VLAN tag, and the first VLAN tag carries a first target ring node tag.

[0037] Through the above method, the 802.1Q protocol can be used to carry the first target ring node label in the first message, thereby improving the compatibility between the embodiment of the present application and the 802.1Q protocol.

[0038] In a second aspect, a message processing method is provided, which is applied to a communication system. The communication system includes multiple ring nodes, which form a unidirectional ring network by connection, and each of the multiple ring nodes includes a first type port and a second type port, the first type port is used to communicate with other ring nodes in the unidirectional ring network, and the second type port is used to communicate with nodes outside the unidirectional ring network, and each of the multiple ring nodes is configured with a ring node label.

[0039] In the method, a first ring node receives a third message through a second-class port; the first ring node determines a second target ring node label from the ring node label of each ring node in a plurality of ring nodes, the second target ring node label being a ring node label of a ring node associated with a destination node of the third message; the first ring node adds the second target ring node label to the third message to obtain a fourth message; and the first ring node forwards the fourth message through the first-class port.

[0040] In the embodiment of the present application, for the traffic received from the second type port of the ring node in the unidirectional ring network, that is, the upper ring traffic, in order to facilitate the subsequent ring nodes in the ring to quickly determine the processing method of the traffic, when the first ring node receives the upper ring traffic, it can add the node label of the ring node in the ring associated with the destination node of the upper ring traffic, that is, the target ring node label. In this way, other ring nodes in the subsequent ring can quickly determine the processing method of the upper ring traffic based on the target ring node label, thereby improving the communication efficiency of the unidirectional ring network.

[0041] Based on the method provided in the second aspect, in some embodiments, the first message also carries the first destination media access control MAC address, and the second destination MAC address is a unicast address. In this scenario, the first ring node determines the second target ring node label from the ring node label of each ring node in the multiple ring nodes. The implementation process can be: obtaining the ring node label of the ring node to which the destination node of the third message is connected; if the ring node label of the ring node to which the destination node of the third message is connected is obtained, then the obtained ring node label is determined as the second target ring node label.

[0042] For unicast traffic, since the destination node of the third message is usually an outer node connected to the ring node in the unidirectional ring network, the second target ring node label can be directly set to the ring node label of the ring node in the unidirectional ring network that is connected to the destination node of the third message, so that other subsequent ring nodes can quickly determine whether to continue transmitting the fourth message in the ring based on the target ring node label when receiving the fourth message, thereby improving the communication efficiency of unicast traffic in the unidirectional ring network.

[0043] Based on the method provided in the second aspect, in some embodiments, the implementation process of obtaining the ring node label of the ring node to which the destination node of the third message is connected can be: searching for the ring node label corresponding to the second destination MAC address from the forwarding table, and the forwarding table is used to indicate the correspondence between the ring node label of any ring node and the MAC address of the node outside the ring to which the corresponding ring node is connected.

[0044] In an embodiment of the present application, the forwarding table locally stored in the first ring node is used to indicate the correspondence between the ring node label of the ring node in the unidirectional ring network and the MAC address of the node outside the ring to which the corresponding ring node is connected. Therefore, the first ring node can obtain the target ring label that needs to be added to the upper ring traffic based on the destination MAC address of the upper ring traffic, so that other subsequent ring nodes in the ring can quickly determine whether it is necessary to continue to transmit the third message in the ring based on the target ring node label, thereby improving the communication efficiency of unicast traffic in the unidirectional ring network.

[0045] Based on the method provided in the second aspect, in some embodiments, in the method, if the ring node label of the ring node to which the destination node of the third message is connected is not obtained, the first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node. Accordingly, before the first ring node forwards the fourth message through the first class port, the second destination MAC address in the fourth message is also replaced with a broadcast address.

[0046] If the ring node label of the ring node to which the destination node of the third message is connected is not obtained, it means that it is currently impossible to determine at which ring node in the ring the upper ring traffic needs to be left the ring. At this time, the upper ring traffic can be broadcast to each ring node in the ring, so that each ring node in the ring can broadcast the upper ring traffic to the nodes outside the ring to which it is connected.

[0047] Furthermore, when broadcasting the upper ring traffic to each ring node in the ring, the ring node label of the source ring node broadcasting the upper ring traffic can be added to the upper ring traffic. On the one hand, in the subsequent broadcast process, each ring node can determine whether to terminate the transmission of the third message in the ring based on the second target ring node label, thereby avoiding the occurrence of broadcast storms. On the other hand, it can also enable other ring nodes in the ring to learn the correspondence between the source ring node label of the ring node broadcasting the upper ring traffic and the source MAC address of the upper ring traffic, so that when the traffic with the destination node indicated by the source MAC address is received later, the target ring node label can be added based on the learned correspondence.

[0048] Based on the method provided in the second aspect, in some embodiments, the first message also carries a first destination media access control MAC address, and the second destination MAC address is a broadcast address. The implementation process of the first ring node determining the second target ring node label from the ring node label of each ring node in the multiple ring nodes can be: determining the first ring node label as the second target ring node label, and the first ring node label as the ring node label of the first ring node.

[0049] Through the above method, on the one hand, each ring node can determine whether to terminate the transmission of the third message in the ring based on the second target ring node label during the subsequent broadcast process, thereby avoiding the occurrence of broadcast storms. On the other hand, it can facilitate other ring nodes in the ring to learn the correspondence between the source ring node label of the ring node that broadcasts the ring traffic and the source MAC address of the ring traffic, so that when the destination node is the node indicated by the source MAC address, the target ring node label can be added based on the learned correspondence.

[0050] Based on the method provided in the second aspect, in some embodiments, the fourth message includes a second virtual local area network VLAN tag, and the second VLAN tag carries a second target ring node tag.

[0051] Through the above method, the 802.1Q protocol can be used to carry the second target ring node label in the fourth message, thereby improving the compatibility between the embodiment of the present application and the 802.1Q protocol.

[0052] In a third aspect, a message processing device is provided, wherein the message processing device has the function of implementing the message processing method in the first aspect. The message processing device includes at least one module, and the at least one module is used to implement the message processing method provided in the first aspect.

[0053] In a fourth aspect, a message processing device is provided, wherein the message processing device has the function of implementing the message processing method in the second aspect. The message processing device comprises at least one module, and the at least one module is used to implement the message processing method provided in the second aspect.

[0054] In a fifth aspect, a ring node is provided, wherein the structure of the ring node includes a processor and a memory, wherein the memory is used to store a program that supports the ring node to execute the message processing method provided in the first aspect, and to store data involved in implementing the message processing method provided in the first aspect. The processor is configured to execute the program stored in the memory. The operating device of the storage device may also include a communication bus, which is used to establish a connection between the processor and the memory.

[0055] In a sixth aspect, a ring node is provided, wherein the structure of the ring node includes a processor and a memory, wherein the memory is used to store a program that supports the ring node to execute the message processing method provided in the second aspect, and to store data involved in implementing the message processing method provided in the second aspect. The processor is configured to execute the program stored in the memory. The operating device of the storage device may also include a communication bus, which is used to establish a connection between the processor and the memory.

[0056] In the seventh aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the message processing method described in the first aspect or the message processing method described in the second aspect.

[0057] In an eighth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the message processing method described in the first aspect or the message processing method described in the second aspect.

[0058] The technical effects obtained in the above-mentioned second to eighth aspects are similar to the technical effects obtained by the corresponding technical means in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 This is a schematic diagram of the architecture of a traditional campus network;

[0060] Figure 2 It is a schematic diagram of the architecture of a campus network based on a passive optical access LAN;

[0061] Figure 3 It is a schematic diagram of the architecture of a campus network based on coarse wavelength division multiplexing;

[0062] Figure 4 It is a schematic diagram of the architecture of a communication system provided by an embodiment of the present application;

[0063] Figure 5is a schematic diagram of the architecture of another communication system provided in an embodiment of the present application;

[0064] Figure 6 is a schematic diagram of the architecture of another communication system provided in an embodiment of the present application;

[0065] Figure 7 It is a schematic diagram of the architecture of a dual-homing optical communication network provided in an embodiment of the present application;

[0066] Figure 8 is a schematic diagram of the architecture of another communication system provided in an embodiment of the present application;

[0067] Fig. 9 This is a flow chart of a message processing method provided by an embodiment of the present application;

[0068] Fig.10 It is a flow chart of a message processing method in a unicast scenario provided by an embodiment of the present application;

[0069] Fig.11 This is a flow chart of a message processing method in a broadcast scenario provided by an embodiment of the present application;

[0070] Fig.12 This is the format intention of a third message and a fourth message provided in an embodiment of the present application;

[0071] Fig.13 This is another format intention of the third message and the fourth message provided in the embodiment of the present application;

[0072] Fig.14 This is a flow chart of a flow loop provided by an embodiment of the present application;

[0073] Fig.15 is a flow chart of another message processing method provided in an embodiment of the present application;

[0074] Fig.16 This is a flow chart of another message processing method in a unicast scenario provided by an embodiment of the present application;

[0075] Fig.17 This is a processing flow chart of unicast traffic provided by an embodiment of the present application;

[0076] Fig.18 is another processing flow chart of unicast traffic provided by an embodiment of the present application;

[0077] Fig.19 It is a schematic diagram of a processing flow of unicast traffic from a master ring node to a ring provided by an embodiment of the present application;

[0078] Fig. 20It is a schematic diagram of a processing flow of unicast traffic from a ring node to a ring provided by an embodiment of the present application;

[0079] Fig.21 This is a flow chart of another message processing method in a broadcast scenario provided by an embodiment of the present application;

[0080] Fig. 22 It is a schematic diagram of a processing flow of broadcast traffic from a main ring node to a ring provided by an embodiment of the present application;

[0081] Fig.23 It is another schematic diagram of a processing flow of broadcast traffic from a master ring node provided in an embodiment of the present application;

[0082] Fig.24 It is a structural schematic diagram of a message processing device provided in an embodiment of the present application;

[0083] Fig.25 It is a structural schematic diagram of another message processing device provided in an embodiment of the present application;

[0084] Fig.26 It is a structural diagram of a ring node provided in an embodiment of the present application. DETAILED DESCRIPTION

[0085] In order to make the purpose, technical solutions and advantages of the present application more clear, the implementation mode of the present application will be further described in detail below with reference to the accompanying drawings.

[0086] The method provided in the embodiment of the present application is applied to a campus network by way of example, but is not limited to being applied to a campus network. To facilitate subsequent understanding, several common campus network architectures are explained below.

[0087] Figure 1 This is a schematic diagram of the architecture of a traditional campus network. Figure 1 As shown in the figure, the traditional campus network is usually a tree-type network, and the tree-type network is exemplified as a three-layer network, so the campus network can also be called a three-layer campus network. The three layers are the access layer, the aggregation layer, and the core layer. The switch located in the access layer is called the access switch (or access point (AP) switch), the switch located in the aggregation layer is called the aggregation switch, and the switch located in the core layer is called the core switch (or core point (CP) switch). Each layer completes the aggregation of the next layer of data to the previous layer through the switch.

[0088] like Figure 1As shown, an access switch can be connected to multiple user devices (or end users), such as personal computers (PCs), printers, or monitoring devices. An aggregation switch can be connected to multiple access switches. A core switch can be connected to multiple aggregation switches.

[0089] The access layer can be connected to user devices through network cables or optical fibers. The access layer and the aggregation layer, as well as the aggregation layer and the core layer, are interconnected through optical fibers. The connection between each layer is point-to-point (P2P). Figure 1 In the campus network shown, neither optical fibers nor network cables are converged, and data convergence and exchange are achieved only at the switch.

[0090] In addition, if Figure 1 As shown in the figure, in order to improve the reliability of the entire network, the core switch can be protected by dual-home mode, that is, a main core switch and a backup core switch are used, and when the main core switch fails, it is switched to the backup core switch. Figure 1 As shown, the aggregation switch can also be protected in a dual-home manner, which will not be described in detail here.

[0091] Figure 1 The structure of the campus network shown is complex, and a large number of optical modules are required. In addition, a large number of devices are involved when launching new services in the campus network, resulting in high costs for opening new services. In addition, due to the complex structure of the campus network, it is difficult to locate the fault point when a problem occurs in the campus network.

[0092] Figure 2 This is a schematic diagram of the architecture of a campus network based on a passive optical LAN (POL). POL is a technology that applies access network passive optical network (PON) technology to campus networks. It is a passive optical network with a point-to-multipoint (P2MP) structure.

[0093] like Figure 2As shown in the figure, the campus network based on POL includes a core switch, an optical line terminal (OLT), an optical module on the OLT side, a passive optical splitter, an optical fiber, an optical network unit (ONU / ONT), and an optical module on the ONU side. Among them, the optical line terminal (OLT), the optical module on the OLT side, the passive optical splitter, the optical fiber, the optical network unit (ONU / ONT), and the optical module on the ONU side constitute the POL.

[0094] PON, in a broad sense, refers to passive devices between OLT and ONU, including various PON technologies; in a narrow sense, it refers specifically to time division multiplexing (TDM) PON. Currently, only TDM PON is commercially available on a large scale, so "PON" without a prefix usually refers specifically to TDM PON. In TDM PON, the wavelengths of the upstream and downstream optical signals are different, and wavelength division multiplexing (WDM) technology is used to achieve single-fiber bidirectional transmission.

[0095] Figure 2 The left side is the transmission direction of the downstream optical signal. The downstream adopts the broadcast mode, and each ONU receives the same optical signal. After each ONU recovers the data through optoelectronic conversion, it only extracts its own information (message). Figure 2 The right side is the uplink optical signal transmission direction. The uplink uses TDMA (Time Division Multiple Access) to multiplex time slots. All ONUs are uniformly scheduled by the OLT and emit light in the time slots specified by the OLT, so that different user devices can send uplink data in different time slots. Figure 2 As shown, user equipment 1 sends uplink data in time slot 1, user equipment 2 sends uplink data in time slot 2, and user equipment 3 sends uplink data in time slot 3.

[0096] contrast Figure 1 The campus network shown in Figure 2 In the campus network shown in the figure, POL is used to replace the access and aggregation layers, and the OLT and the core switch are placed together, with passive optical splitters and optical fibers used in the middle to complete the P2MP connection. The PON protocol is transmitted between the OLT and the ONU, and the upstream of the OLT (that is, between the OLT and the core switch) and the downstream of the ONU (that is, between the ONU and the user equipment) communicate through the Ethernet protocol. Since the passive optical splitter does not need to process services, Figure 2Compared with the traditional three-layer campus network, the campus network shown can save the weak-current room required for the aggregation switch.

[0097] but, Figure 2 The campus network shown uses a 1:N passive splitter, where N is the number of ONUs connected to the passive splitter. This will result in a large power attenuation of the optical signal from the OLT to the ONU. In addition, as the splitting ratio of the passive splitter increases, the power loss of the optical signal from the OLT to the ONU also gradually increases. This requires the optical module between the OLT and the ONU to support a larger power budget. Currently, the optical modules on the OLT and ONU generally use high-cost and high-sensitivity avalanche photodiodes (APD) for photoelectric conversion at the receiving end. In addition, in some scenarios, it is also necessary to increase the output power of the laser at the transmitting end of the optical module on the OLT and the ONU, which will correspondingly increase the cost and power consumption of the laser.

[0098] and, Figure 2 The uplink of the campus network shown uses time division multiplexing to send optical signals, which means that the OLT needs to process optical signals in time slots, so that the receiving end of the optical module on the OLT needs special burst devices, which need to be independently developed and are becoming increasingly difficult to evolve. In addition, in this scenario, the higher the optical signal transmission rate, the faster the response time required by the burst device, and the greater the difficulty of preparing the corresponding burst device.

[0099] also, Figure 2 In the campus network shown, bandwidth utilization is low because time slots need to be reserved for TDM bursts.

[0100] Figure 3 This is a schematic diagram of the architecture of a campus network based on coarse wavelength division multiplexing (CWDM). The campus network also has a P2MP architecture.

[0101] like Figure 3As shown, the core switch uses multiple different optical modules to transmit optical signals of different wavelengths. For example, the core switch can transmit optical signals with a wavelength of 1331nm (nanometers), an optical signal with a wavelength of 1351nm, and an optical signal with a wavelength of 1371nm through different optical modules. After the optical signals of different wavelengths pass through the optical wavelength division multiplexer (multiplexer, MUX), the optical signals of multiple wavelengths are multiplexed on one optical fiber for transmission. At similar aggregation switches, a wavelength division multiplexer (demultiplexer, DEMUX) is used to demultiplex the optical signals of multiple wavelengths and send them to different access switches. The access switch also uses wavelength division multiplexing to the core switch upstream. Using different wavelengths for upstream and downstream can also achieve single-fiber bidirectional transmission. Since the MUX / DEMUX does not need to process services, Figure 3 Compared with the traditional three-layer campus network, the campus network shown can also save the weak-current room required for the aggregation switch.

[0102] Figure 3 The campus network shown only converges the optical fibers in the middle link, which means that multiple optical fibers are combined into one optical fiber. The number of optical modules at both ends of the optical fiber is not reduced, and different access switches need to stock optical modules of different wavelengths, which is costly and inconvenient to stock and manage uniformly. In addition, Figure 3 The number of core switch ports required by the campus network shown in the figure corresponds to the number of access switches. The ports are not converged, and a large number of core switch ports are occupied, resulting in high costs.

[0103] Based on this, the embodiment of the present application provides a communication system and a message processing method based on the communication system. On the one hand, the communication system connects multiple ring nodes to a unidirectional ring network, which can not only avoid the uplink using Figure 2 The time division multiplexing method shown in the figure sends optical signals, and there is no need to Figure 3 In that case, too many optical modules and ports are configured at the core switch. On the other hand, the message processing method in the unidirectional ring network can be set, which can not only realize the normal communication of messages in the unidirectional ring network, but also improve the communication efficiency of messages in the unidirectional ring network.

[0104] The communication system, message processing method and related devices provided in the embodiments of the present application are explained in detail below.

[0105] Figure 4 Schematic diagram of the architecture of a communication system provided by an embodiment of the present application. Figure 4As shown, the communication system includes a plurality of ring nodes 10, which are connected to form a unidirectional ring network. Each of the plurality of ring nodes 10 includes a first type port and a second type port, wherein the first type port is used to communicate with other ring nodes 10 in the unidirectional ring network, and the second type port is used to communicate with a node 20 outside the unidirectional ring network.

[0106] The connection between each ring node 10 in the unidirectional ring network can be wired or wireless. For example, each ring node 10 in the unidirectional ring network can be connected by optical fiber to form a unidirectional ring optical path. In this scenario, each ring node 10 can also include an optical module, and each ring node 10 can be connected by an optical module and an optical fiber to form a unidirectional ring optical path. The optical module can be integrated on the ring node 10, or it can be configured on the ring node 10 in a plug-in manner.

[0107] In the embodiment of the present application, the message receiving and sending ports on the ring node 10 in the unidirectional ring network include two types of ports, namely, the first type of port and the second type of port. Among them, the first type of port is used to communicate with other ring nodes 10 in the unidirectional ring network, and the second type of port is used to communicate with the node 20 outside the unidirectional ring network. In other words, two adjacent ring nodes 10 in the unidirectional ring network communicate through the first type of port, and any ring node 10 in the unidirectional ring network communicates with other nodes 20 outside the unidirectional ring network through the second type of port. For the convenience of subsequent explanation, as shown in FIG. Figure 4 As shown, other nodes outside the unidirectional ring network are referred to as out-of-ring nodes 20 for short.

[0108] It should be noted that the number of the first type of ports and the second type of ports can be multiple. For example, the first type of ports can include a port for communicating with a previous hop node in a unidirectional ring network and a port for communicating with a next hop node in a unidirectional ring network. The second type of ports can include a receiving port for receiving a message from an outer ring node 20 and a sending port for sending a message to the outer ring node 20. The embodiment of the present application does not limit the number of the first type of ports and the second type of ports.

[0109] In addition, a ring node 10 in a unidirectional ring network may be connected to one or more out-ring nodes 20 , and the embodiment of the present application also does not limit the number of out-ring nodes 20 connected to the ring node 10 .

[0110] In addition, in the embodiment of the present application, each ring node in the unidirectional ring network is also configured with a ring node label, which is used to uniquely identify the corresponding ring node, so the ring node label can also be called a ring node identifier. The function of the ring node label will be described in detail in subsequent embodiments, and will not be described here.

[0111] In some embodiments, the plurality of ring nodes include at least one master ring node and a plurality of slave ring nodes. Figure 5 Take the communication system in this scenario as an example to describe in detail.

[0112] Figure 5 Schematic diagram of another communication system provided by an embodiment of the present application. Figure 5 As shown, the communication system includes a master ring node and three slave ring nodes, and the three slave ring nodes are marked as slave ring node 1, slave ring node 2 and slave ring node 3 respectively.

[0113] like Figure 5 As shown, each ring node includes a first-class port ( Figure 5 The first type of port is marked as T1), and the first type of port T1 includes a transmitting end ( Figure 5 The transmitter is marked as Tx) and the receiver is marked as Figure 5 The receiving end is marked as Rx).

[0114] The first type of port T1 is exemplified as an optical module. Figure 5 As shown, the Tx of the first class port T1 of the master ring node is connected to the Rx of the first class port T1 of the slave ring node 1 through an optical fiber. The Tx of the first class port T1 of the slave ring node 1 is connected to the Rx of the first class port T1 of the slave ring node 2 through an optical fiber. The Tx of the first class port T1 of the slave ring node 2 is connected to the Rx of the first class port T1 of the slave ring node 3 through an optical fiber. The Tx of the first class port T1 of the slave ring node 3 is connected to the Rx of the first class port T1 of the master ring node through an optical fiber. Thus, a unidirectional ring optical path is formed between the master ring node and the three slave ring nodes.

[0115] In addition, if Figure 5 As shown, each ring node also includes a second type of port, Figure 5 The second type of port is marked as T2 in FIG. Each ring node communicates with an outer ring node through the second type of port T2. The second type of port can also be an optical module by way of example.

[0116] when Figure 5 When the architecture shown is applied to a campus network, for example, the master node can be a common switch (a switch is used as an example here, but it can also be a router or other device), and the slave node can be an access switch. Figure 5 As shown, the out-of-ring node connected to the master ring node may be a core switch in the core network, and the out-of-ring node connected to the slave ring node may be a user equipment connected to the access switch in the access network.

[0117] Optionally, the master ring node may be a core switch, and the slave ring node may be an access switch. Accordingly, the out-of-ring node connected to the master ring node may be a network device connected to the core switch in the core network, and the out-of-ring node connected to the slave ring node may be a user device connected to the access switch in the access network.

[0118] based on Figure 5 The campus network shown in the figure can not only save the weak current room required for the aggregation switch, but also the access switch does not need to use time division multiplexing to send optical signals uplink. The number of optical modules used to connect to the access switch on the core switch is also reduced, thus solving the problem of Figure 2 and Figure 3 The problem of the campus network shown in the figure is Figure 5 As shown, the core switch can be configured with only one optical module for communicating with all access switches in the unidirectional ring network.

[0119] In addition, in a scenario where each ring node 10 in a unidirectional ring network is connected by an optical fiber to form a unidirectional ring optical path, the communication system may further include an optical switch array, wherein the optical switch array includes a plurality of optical switch units. Each of the plurality of optical switch units is connected to an optical module of a ring node. By controlling the connection state of each optical switch unit, the ring node corresponding to the optical switch unit may be controlled to access or exit the unidirectional ring network.

[0120] The architecture of the communication system in this scenario is explained below.

[0121] Figure 6 Schematic diagram of another communication system provided by an embodiment of the present application. Figure 6 As shown, the communication system includes a plurality of ring nodes and an optical switch array. The optical switch array includes a plurality of optical switch units and a control unit.

[0122] Wherein, a plurality of ring nodes and a plurality of optical switch units are connected through an optical path to form a ring optical path. For example, each of the plurality of optical switch units is connected to an optical module of a ring node. The control unit is used to control the connection state of each optical switch unit to control the ring node corresponding to the optical switch unit to enter or exit the ring optical path.

[0123] In some embodiments, the plurality of ring nodes include at least one master ring node and a plurality of slave ring nodes. The plurality of slave ring nodes are connected to the plurality of optical switch units in a one-to-one correspondence. Figure 7 Take the communication system in this scenario as an example to describe in detail.

[0124] Figure 7 Schematic diagram of another communication system provided by an embodiment of the present application. Figure 7 As shown, the communication system includes at least one main ring node ( Figure 7 Taking one master ring node as an example), N slave ring nodes and an optical switch unit array. The optical switch unit array includes N optical switch units and a control unit (also called an optical control unit).

[0125] Among them, each of the N optical switch units is connected to a slave ring node, the N optical switch units are connected in series, and the input end and the output end of the N optical switch units in series are respectively connected to the two ends of each master ring node, so that the N optical switch units and each master ring node respectively form a ring optical path, which is a unidirectional transmission ring optical path composed of optical fibers, and is therefore also called an optical fiber unidirectional ring. Assuming that at least one master ring node includes a first master ring node and a second master ring node, the input end and the output end of the N optical switch units in series are respectively connected to the two ends of the first master ring node, so that the N optical switch units and the first master ring node form a ring optical path. At the same time, the input end and the output end of the N optical switch units in series are respectively connected to the two ends of the second master ring node, so that the N optical switch units and the second master ring node form a ring optical path.

[0126] For example, a 50:50 optical splitter may be provided at the output end of the N optical switch units connected in series, so as to divide the optical signals outputted from the output end of the N optical switch units connected in series into two paths and send them to the first main ring node and the second main ring node respectively. Correspondingly, a 1:2 optical switch may be provided at the input end of the N optical switch units connected in series, so that the input end of the N optical switch units connected in series selectively receives one of the optical signals sent from the first main ring node and the second main ring node.

[0127] like Figure 7 As shown, the main ring node includes at least one optical module, and the main ring nodes are respectively connected through the transmitting end ( Figure 7 Tx) and the receiving end ( Figure 7 Each slave node also includes at least one optical module, and each slave node sends an optical signal to the ring optical path and receives an optical signal from the ring optical path through Tx and Rx in the corresponding optical module.

[0128] The control unit is used to control the connection state of each optical switch unit to enable the slave node corresponding to each optical switch unit to access or exit the ring optical path. When the control unit controls the connection state of an optical switch unit to be the access state, the slave node corresponding to the optical switch unit can receive the optical signal from the previous optical switch unit through the optical switch unit, demodulate the optical signal to obtain data, select the data required from the data, and add the data to be sent to the master node to the remaining data, and then modulate the obtained data into an optical signal, and send it to the next optical switch unit through the optical switch unit. When the control unit controls the connection state of an optical switch unit to be the bypass state, the optical switch unit directly sends the optical signal from the previous optical switch unit to the next optical switch unit, and the optical signal does not pass through the slave node connected to the optical switch unit.

[0129] For example, Figure 6 or Figure 7 As shown, when the input port on the upper left side of the optical switch unit is connected to the output port on the lower right side, and the input port on the lower left side is connected to the output port on the upper right side, the optical switch unit is in the access state. Therefore, the access state of the optical switch unit can also be called the cross state. When the input port on the upper left side of the optical switch unit is connected to the output port on the upper right side, and the input port on the lower left side is connected to the output port on the lower right side, the optical switch unit is in the bypass state. Therefore, the bypass state of the optical switch unit can also be called the through state.

[0130] It should be noted that Figure 6 as well as Figure 7 The optical switch unit shown is an optional structure of the switch unit involved in the embodiment of the present application, and the embodiment of the present application does not limit the type of the optical switch unit.

[0131] based on Figure 6 and Figure 7 The system shown, Figure 5 The communication system shown may be evolved into another communication system. Figure 8 It is a schematic diagram of the architecture of another communication system provided in an embodiment of the application.

[0132] like Figure 8 As shown, the communication system includes a master ring node and three slave ring nodes, and the three slave ring nodes are marked as slave ring node 1, slave ring node 2 and slave ring node 3 respectively.

[0133] like Figure 8 As shown, each ring node includes a first-class port ( Figure 8In the figure, the first type of port is marked as T1), and the first type of port T1 is exemplarily an optical module, and the first type of port T1 of each ring node is connected to the unidirectional ring optical path through the optical switch unit. When the optical switch unit is in the connected state, the optical module of the corresponding ring node receives a signal from the unidirectional ring optical path or sends a signal to the unidirectional ring optical path. When the optical switch unit is in the bypass state, the optical module of the corresponding ring node stops receiving a signal from the unidirectional ring optical path and stops sending a signal to the unidirectional ring optical path.

[0134] Fig. 9 is a flow chart of a message processing method provided in an embodiment of the present application. The method is applied to Figures 4 to 8 Any of the communication systems shown. Fig. 9 As shown, the method includes the following steps.

[0135] Step 901: The first ring node receives a third message through a second type port.

[0136] Based on the above Figures 4 to 8 As shown in the system architecture, any ring node in the unidirectional ring network receives traffic from nodes outside the ring through the second-class port. Therefore, when the first ring node receives the third message through the second-class port, it indicates that there is currently traffic that needs to be added to the ring, which is hereinafter referred to as the added-ring traffic.

[0137] In an embodiment of the present application, for the upper ring traffic, in order to facilitate each ring node in the subsequent ring to quickly determine the processing method of the traffic, when the first ring node receives the upper ring traffic, it can first analyze the destination node of the third message, so as to subsequently add the ring node label of the ring node associated with the destination node of the third message, that is, the target node label, to the third message.

[0138] For example, the destination node of the upper ring traffic can be analyzed based on the second destination media access control (MAC) address carried by the third message, so as to subsequently add a ring node label of the ring node in the ring associated with the destination node of the upper ring traffic, that is, the target ring node label, to the upper ring traffic.

[0139] Optionally, the destination node of the upper ring traffic may also be analyzed in other ways. For example, the packet header of the upper ring traffic carries some special fields in addition to the destination MAC address, and the special fields can indicate some attributes of the destination node, such as whether the packet is broadcast traffic, etc. Examples are not given here one by one.

[0140] In addition, the third message may be a unicast message, a multicast message or a broadcast message. In the scenario where the third message is a unicast message, the second destination MAC address carried by the third message is a unicast address, and the destination node of the third message indicated by the second destination MAC address is one node. In the scenario where the third message is a multicast message, the second destination MAC address carried by the third message is a multicast address, and the destination node of the third message indicated by the second destination MAC address is a group of nodes. In the scenario where the third message is a broadcast message, the second destination MAC address carried by the third message is a broadcast address, and the destination nodes of the third message indicated by the second destination MAC address are all nodes in the network.

[0141] Step 902: The first ring node determines a second target ring node label from the ring node label of each ring node in the plurality of ring nodes, where the second target ring node label is the ring node label of the ring node associated with the destination node of the third message.

[0142] In the embodiment of the present application, for the upper ring traffic, in order to facilitate each ring node in the subsequent ring to quickly determine the processing method of the traffic, when the first ring node receives the upper ring traffic, it can add the node label of the ring node in the ring associated with the destination node of the upper ring traffic, that is, the target ring node label. In this way, other ring nodes in the subsequent ring can quickly determine the processing method of the upper ring traffic based on the target ring node label, thereby improving the communication efficiency of the unidirectional ring network.

[0143] Among them, the ring point label of the ring point associated with the destination node of the third message can be understood as: there is a certain association between the ring point indicated by the ring point label and the destination node, so that other ring points can analyze which node is the destination node of the third message based on the ring point indicated by the ring point label. Based on this, any ring point label that can achieve "there is a certain association between the indicated ring point and the destination node" can be applied in the embodiments of the present application. The implementation method of subsequently determining the second target ring point label is used for example description.

[0144] Based on step 901, it can be known that the third message can be a unicast message or a multicast message, or a broadcast message. Considering that the processing methods of unicast messages and multicast messages are basically the same, step 902 is illustrated in two scenarios below.

[0145] Scenario 1: The third message is a unicast message, that is, the second destination MAC address is a unicast address.

[0146] In this scenario, the process of determining the second target link node label from the link node label of each link node in the plurality of link nodes can be achieved by Fig.10 Steps 9021 to 9022 shown are implemented.

[0147] Step 9021: Obtain the ring node label of the ring node to which the destination node of the third message is connected.

[0148] Step 9022: If the ring node label of the ring node to which the destination node of the third message is connected is obtained, the obtained ring node label is determined as the second target ring node label.

[0149] For unicast traffic, since the destination node of the third message is usually an outer node connected to the ring node in the unidirectional ring network, the second target ring node label can be directly set to the ring node label of the ring node connected to the destination node of the third message, so that other subsequent ring nodes can quickly determine whether to continue transmitting the fourth message in the ring based on the target ring node label when receiving the fourth message, thereby improving the communication efficiency of unicast traffic in the unidirectional ring network.

[0150] Step 9023: If the ring node label of the ring node to which the destination node of the third message is connected is not obtained, the first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node. Accordingly, before the first ring node forwards the fourth message through the first class port in step 904, the second destination MAC address in the fourth message is also replaced with a broadcast address.

[0151] If the ring node label of the ring node to which the destination node of the third message is connected is not obtained, it means that it is currently impossible to determine at which ring node in the ring the upper ring traffic needs to be left the ring. At this time, the upper ring traffic can be broadcast to each ring node in the ring, so that each ring node in the ring can broadcast the upper ring traffic to the nodes outside the ring to which it is connected.

[0152] In some embodiments, the third message carries a second destination MAC address, and the implementation method for obtaining the ring node label of the ring node to which the destination node of the third message is connected can be: searching the ring node label corresponding to the second destination MAC address from the forwarding table, and the forwarding table is used to indicate the correspondence between the ring node label of any ring node in the unidirectional ring network and the MAC address of the node outside the ring to which the corresponding ring node is connected.

[0153] In an embodiment of the present application, the routing table locally stored in the first ring node is used to indicate the correspondence between the ring node label of the ring node in the unidirectional ring network and the MAC address of the node outside the ring to which the corresponding ring node is connected. Therefore, the first ring node can obtain the ring node label of the ring node to which the destination node of the third message is connected based on the destination MAC address of the upper ring traffic.

[0154] Correspondingly, if the ring point label corresponding to the second destination MAC address is not found in the forwarding table, that is, the ring point label of the ring point to which the destination node of the third message is connected is not obtained, the first ring point label is determined as the second target ring point label, and the first ring point label is the ring point label of the first ring point.

[0155] In addition, when broadcasting the upper ring traffic to each ring node in the ring, the ring node label of the source ring node broadcasting the upper ring traffic can be added to the upper ring traffic. On the one hand, in the subsequent broadcast process, each ring node can determine whether to terminate the transmission of the third message in the ring based on the second target ring node label, thereby avoiding the occurrence of broadcast storms. On the other hand, it can also enable other ring nodes in the ring to learn the correspondence between the ring node label of the source ring node broadcasting the upper ring traffic and the source MAC address of the upper ring traffic, so that when the destination node is subsequently received as the node indicated by the source MAC address, the target ring node label can be added based on the learned correspondence.

[0156] Optionally, if there is no need for other ring nodes in the ring to learn the correspondence between the ring node label of the source ring node of the broadcast ring traffic and the source MAC address of the ring traffic, in this scenario, when the ring node label corresponding to the second destination MAC address is not found in the forwarding table, since the third message needs to be broadcast to each ring node in the ring except the first ring node, the ring node labels of each ring node except the first ring node can also be used as the second target ring node label. In this scenario, the occurrence of broadcast storms can also be avoided.

[0157] In addition, the above is explained by taking the ring node label of the ring node to which the destination node of the third message is connected through the forwarding table as an example. Optionally, in the embodiment of the present application, the ring node label of the ring node to which the destination node of the third message is connected may also be obtained by other means. For example, a query request is temporarily sent to an upper-layer control device in the network to obtain the ring node label of the ring node to which the destination node of the third message is connected, which will not be described in detail here.

[0158] Scenario 2: The third message is a broadcast message, that is, the second destination MAC address is a broadcast address.

[0159] In the scenario where the third message is a broadcast message, since the destination node of the third message is all nodes, in this scenario, the implementation process of the first ring node determining the second target ring node label from the ring node label of each ring node in the multiple ring nodes can be achieved by Fig.11 Step 9024 shown is implemented.

[0160] Step 9024: Determine the first ring node label as the second target ring node label, where the first ring node label is the ring node label of the first ring node.

[0161] Through the above method, on the one hand, each ring node can determine whether to terminate the transmission of the third message in the ring based on the second target ring node label in the subsequent broadcast process, thereby avoiding the occurrence of broadcast storms. On the other hand, it can facilitate other ring nodes in the ring to learn the corresponding relationship between the ring node label of the source ring node of the broadcast ring traffic and the source MAC address of the ring traffic, so that when the destination node is the node indicated by the source MAC address, the target ring node label can be added based on the learned corresponding relationship.

[0162] Optionally, if it is not necessary for other ring nodes in the ring to learn the correspondence between the ring node label of the source ring node of the broadcast ring traffic and the source MAC address of the ring traffic, in this scenario, since the third message needs to be broadcast to each ring node in the ring except the first ring node, the ring node labels of each ring node except the first ring node can also be used as the second target ring node label. In this scenario, the occurrence of broadcast storms can also be avoided.

[0163] In addition, in the embodiment of the present application, the ring node tag can be carried in a virtual local area network (VLAN) tag in the message. Therefore, in some embodiments, the fourth message includes a second VLAN tag, and the second VLAN tag carries a second target ring node tag. In this way, the second target ring node tag can be added to the fourth message using the 802.1Q protocol, thereby improving the compatibility between the embodiment of the present application and the 802.1Q protocol.

[0164] Among them, the VLAN tag in the 802.1Q protocol includes the following fields.

[0165] Tag protocol identifier (TPID): 2 bytes in length. This field is used to indicate the data frame type in the 802.1Q protocol. When the value is 0x8100, it indicates the IEEE 802.1Q VLAN data frame. If a device that does not support the 802.1Q protocol receives such a frame, it will discard it. In the embodiment of the present application, this field can be used to carry the ring node label.

[0166] Priority (PRI): 3 bits in length. This field in the 802.1Q protocol is used to indicate the priority of a data frame. The value range is 0 to 7. The larger the value, the higher the priority. In the embodiment of the present application, the value of this field can be set to the default value.

[0167] Canonical format indicator (CFI): 1 bit in length. This field in the 802.1Q protocol is used to indicate whether the MAC address is encapsulated in a standard format in different transmission media, and is used for compatibility with Ethernet and Token Ring. In the embodiment of the present application, the value of this field can be set to a default value.

[0168] VLAN ID (VLAN identifier, VID): 12 bits in length, this field in the 802.1Q protocol is used to indicate the ID of the VLAN to which the data frame belongs. In the embodiment of the present application, the value of this field can be set to a default value.

[0169] Optionally, in the embodiment of the present application, the message format in the existing communication protocol can also be improved, for example, a new field can be added to the message to carry the second target ring node label, which is not illustrated one by one here. Optionally, other protocols other than the 802.1Q protocol can also be used to design how to carry the second target ring node label, which is not illustrated one by one here.

[0170] Step 903: The first ring node adds the second target ring node label to the third message to obtain a fourth message.

[0171] The following explains step 903 by taking the ring node label carried in the VLAN label as an example.

[0172] In this scenario, if the third message itself is a common Ethernet message, the first ring node directly adds a VLAN tag to the third message, and carries the second target ring node tag in the VLAN tag.

[0173] Fig.12 Schematic diagram of the format of a third message and a fourth message provided in an embodiment of the present application. Fig.12 As shown, the third message includes fields such as destination MAC address (DA), source MAC address (SA), length / Ethernet type (ET), data, and frame check sequences (FCS).

[0174] based on Fig.12 In the third message shown, the first ring node can add a VLAN tag between SA and ET, and carry the second target ring node tag in the VLAN tag to obtain a fourth message.

[0175] Optionally, if the third message itself is a VLAN message, the third message itself already carries a VLAN tag. In order to add another VLAN tag to the third message to carry the second target ring node tag, the first ring node needs to support the 802.1QinQ protocol.

[0176] Fig.13 FIG. 1 is another format diagram of a third message and a fourth message provided in an embodiment of the present application. Fig.13 As shown, the third message includes fields such as DA, SA, VLAN tag, ET, data, and FCS.

[0177] based on Fig.13 In the third message shown, the first ring node can add an outer VLAN tag between the SA and the VLAN tag, and carry the second target ring node tag in the added outer VLAN tag to obtain a fourth message.

[0178] Step 904: The first ring node forwards the fourth message through the first type port.

[0179] After receiving the fourth message, the first ring node can forward the fourth message to the next hop ring node in the unidirectional ring network through the first type port, thereby achieving traffic on the ring.

[0180] Combine the following Figure 5 The communication system shown is Fig.14 Steps 901 to 904 are described with reference to an example.

[0181] like Fig.14 As shown, it is assumed that the first ring node is a master ring node, the ring node label of the master ring node is marked as an M1 label, and the ring node labels of slave ring node 1, slave ring node 2, and slave ring node 3 are marked as S1 label, S1 label, and S3 label respectively. And the master ring node receives a third message from an off-ring node, and the third message is a VLAN message, that is, the third message carries a VLAN tag.

[0182] like Fig.14 As shown, if the destination MAC address of the third message is the MAC address of the user device connected to the slave ring node 2, that is, the third message is a unicast message. The master ring node finds out based on the forwarding table that the ring node label corresponding to the destination MAC address of the third message is the S2 label. At this time, an outer VLAN label can be added between the SA and VLAN label fields of the third message, and the second target ring node label (that is, the S2 label) is carried by the outer VLAN label to obtain the fourth message.

[0183] like Fig.14 As shown, if the destination MAC address of the third message is a broadcast address ( Fig.14The broadcast address is marked as FFFF in the third message, that is, the third message is a broadcast message. The master node can use its own node tag, that is, the M1 tag, as the second target node tag, add an outer VLAN tag between the SA and VLAN tag fields of the third message, and use the outer VLAN tag to carry the second target node tag (that is, the M1 tag) to obtain the fourth message.

[0184] In summary, in the embodiment of the present application, for the upper ring traffic, in order to facilitate each ring node in the subsequent ring to quickly determine the processing method of the traffic, when the first ring node receives the upper ring traffic, it can add the ring node label of the ring node associated with the destination node of the upper ring traffic, that is, the target ring node label. In this way, other ring nodes in the subsequent ring can quickly determine the processing method of the upper ring traffic based on the target ring node label, thereby improving the communication efficiency of the unidirectional ring network.

[0185] Fig.15 is a flow chart of another message processing method provided in an embodiment of the present application. The method is applied to Figures 4 to 8 Any of the communication systems shown. Fig.15 As shown, the method includes the following steps.

[0186] Step 1501: A first ring node receives a first message through a first type port. The first message carries a first target ring node label. The first target ring node label is a ring node label associated with a destination node of the first message. The first ring node is any ring node in a unidirectional ring network.

[0187] Based on the above Fig. 9 As can be seen from the illustrated embodiment, the traffic that has been put on the ring carries a target ring node label so that each ring node in the ring can quickly determine the processing method of the traffic.

[0188] Step 1502: The first ring node processes the first message based on the first target ring node label.

[0189] In an embodiment of the present application, for messages forwarded within a unidirectional ring network, a ring point label of a ring point associated with the destination node of the message is carried in the message. When any ring point in the unidirectional ring network receives the message, it can quickly analyze whether it is the ring point associated with the destination node of the message based on the ring point label, and then determine whether to continue forwarding the message within the unidirectional ring network. This not only realizes the normal communication of messages within the unidirectional ring network, but also improves the communication efficiency of the unidirectional ring network.

[0190] In some embodiments, the first link node is based on the first target link node label, and the implementation process of processing the first message can be: the first link node processes the first message based on the comparison result between the first target link node label and the first link node label, and the method of processing the first message includes intra-ring forwarding and intra-ring termination, and the first link node label is the link node label of the first link node.

[0191] Since the first target ring node label is the ring node label of the ring node associated with the destination node of the first message, it is possible to determine whether to continue forwarding within the ring or terminate forwarding of the message within the ring by comparing the first target ring node label with the ring node label of the first ring node itself, thereby improving the communication efficiency of the unidirectional ring network.

[0192] Optionally, in the embodiment of the present application, the first message can also be processed based on the first target ring node label in other ways. For example, the location of the destination node of the first message in the unidirectional ring network can be determined based on the first target ring node label, and then the first message can be processed based on its own location, which will not be described in detail here. The following is an example of "processing the first message based on the comparison result between the first target ring node label and the first ring node label".

[0193] based on Fig. 9 As can be seen from the illustrated embodiment, the first message may be a unicast message or a multicast message, or may be a broadcast message. Considering that the processing methods of multicast messages and unicast messages are basically the same, step 1502 is explained in two scenarios below.

[0194] Scenario 1: The first message is a unicast message, that is, the first destination MAC address carried by the first message is a unicast address.

[0195] In scenario 1, the first target ring node label is the ring node label of the ring node connected to the destination node of the first message in the unidirectional ring network. In this scenario, the method of processing the first message includes intra-ring forwarding and intra-ring termination, and the intra-ring termination includes forwarding the first message through the second type port.

[0196] For unicast traffic, since the destination node of the message is usually an outer node connected to the ring node in the unidirectional ring network, the first target ring node label can be directly set to the ring node label of the ring node in the unidirectional ring network that is connected to the destination node of the first message. In this way, when any subsequent ring node receives the message, it can determine whether the destination node is connected to itself based on the first target ring node label. When it is determined that the destination node is connected to itself, the message is forwarded through the second type port, that is, the message is processed in the next ring, thereby realizing the termination of the message in the ring and improving the communication efficiency of unicast traffic in the unidirectional ring network.

[0197] For example, step 1502 may be performed by Fig.16 The steps shown are implemented.

[0198] Step 15021: If the first target ring node label conflicts with the first ring node label, the first message is forwarded to the second ring node through the first type port, and the second ring node is a ring node other than the first ring node in the unidirectional ring network.

[0199] The conflict between the first target ring point label and the first ring point label can be understood as: the ring point indicated by the first target ring point label and the ring point indicated by the first ring point label are not the same ring point. In the scenario where the same rule is used to configure a ring point label for each ring point in a unidirectional ring network, each ring point corresponds to a unique ring point label, so the conflict between the first target ring point label and the first ring point label can specifically mean that the first target ring point label is different from the first ring point label.

[0200] Since the first target ring node label is the ring node label of the ring node connected to the destination node of the first message in the unidirectional ring network, when the first target ring node label conflicts with the first ring node label, it indicates that the destination node of the first message is not connected to the first ring node, in other words, it is not connected to the first ring node. Therefore, the first ring node can directly continue to forward the first message in the ring without performing layer 2 forwarding processing outside the ring on the first message, thereby improving the communication efficiency of unicast traffic in the unidirectional ring network.

[0201] Step 15022: If the first target ring node label is consistent with the first ring node label, delete the first target ring node label in the first message to obtain a second message; forward the second message to the destination node through the second type port based on the first destination MAC address.

[0202] The first target ring node label is consistent with the first ring node label, which can be understood as: the ring node indicated by the first target ring node label and the ring node indicated by the first ring node label are the same ring node. In the scenario where the same rule is used to configure a ring node label for each ring node in a unidirectional ring network, each ring node corresponds to a unique ring node label, so the first target ring node label is consistent with the first ring node label, which can specifically mean: the first target ring node label is the same as the first ring node label.

[0203] Since the first target ring node label is the ring node label of the ring node connected to the destination node of the first message in the unidirectional ring network, when the first target ring node label is consistent with the first ring node label, it indicates that the destination node of the first message is connected to the first ring node, that is, it is suspended under the first ring node. Therefore, the first ring node terminates the forwarding of the first message in the ring, and performs layer 2 forwarding of the first message outside the ring to forward the first message to the node outside the ring to which it is connected, thereby improving the communication efficiency of unicast traffic in the unidirectional ring network.

[0204] Below Figure 5 The communication system shown is taken as an example to illustrate the message processing method in a unicast scenario.

[0205] Fig.17 and Fig.18 The first message is a unicast traffic flow chart of two unicast traffics provided in the embodiment of the present application. The first message is a unicast traffic from the master ring node, and the first message carries a first target ring node label, which is the ring node label of the slave ring node 2, that is, the S2 label.

[0206] like Fig.17 As shown, when the first message is received from ring point 1, since the first target ring point label (i.e., S2 label) carried by the first message is not the ring point label of ring point 1, the first message can be directly forwarded to the next hop of the unidirectional ring network, i.e., from ring point 2.

[0207] like Fig.18 As shown, when the first message is received from ring point 2, since the first target ring point label (that is, the S2 label) carried by the first message is the ring point label of ring point 2, the first target ring point label in the first message can be deleted to obtain the second message, and the second message is forwarded to the node outside the ring to which it is connected, so as to terminate the first message from continuing to be transmitted in the unidirectional ring network.

[0208] Fig.19 It is a schematic diagram of a processing flow of unicast traffic from a main ring node to a ring provided in an embodiment of the present application.

[0209] like Fig.19 As shown, the master node receives the message from the P1 port, performs MAC learning, and obtains the MAC address of the destination MAC address as the MAC address of the user device C connected to the slave node 2. Fig.19 The destination MAC address of the message is marked as user C. The master node adds the ring node label of slave node 2 (ie, S2 label) to the message according to the learned destination MAC address to obtain the first message. Then the first message is sent from the P2 port to put the traffic on the ring.

[0210] When the first message is received from ring node 1 from P3, it determines whether to terminate the unicast according to the outer VLAN tag. If the target ring node tag carried by the outer VLAN tag is its own ring node tag, the unicast in the ring is terminated and the second layer forwarding outside the ring is performed. If the target ring node tag carried by the outer VLAN tag is not its own ring node tag, the first message is directly forwarded from the P3 port.

[0211] When the slave node 2 receives the first message from the P3 port, it finds that the target node tag carried by the outer VLAN tag is its own node tag, and terminates the transmission of the unicast traffic in the ring. It also strips off the outer VLAN tag, queries the forwarding table, and performs Layer 2 forwarding outside the ring to forward the first message to the user device C to which it is connected.

[0212] Fig. 20 It is a schematic diagram of a processing flow of unicast traffic from a ring node to a ring provided in an embodiment of the present application.

[0213] like Fig. 20 As shown, the slave node 3 first receives the message from the P2 port, performs MAC learning, and obtains the destination MAC address as the MAC address of the core switch under the master node. Assuming that the core switch is marked as user X, it can be Fig. 20 The destination MAC address of the message is marked as user X. The slave ring node 3 adds the ring node label (ie, M1 label) of the master ring node according to the destination MAC address to obtain the first message. Then the first message is sent from the P3 port to put the traffic on the ring.

[0214] The master ring node receives the first message from the P2 port and finds that the ring node tag carried by the outer VLAN tag is its own ring node tag, so it terminates the transmission of the unicast traffic within the ring. It also strips off the outer VLAN tag, queries the forwarding table for out-of-ring Layer 2 forwarding, and forwards the first message to the core switch to which it is connected.

[0215] It should be noted that Fig.19 and Fig. 20 It is used to illustrate the message processing method in a unicast scenario and does not constitute a limitation on the embodiments of the present application.

[0216] Scenario 2: The first message is a broadcast message, that is, the first destination MAC address is a broadcast address.

[0217] In scenario 2, the first target ring node label is the ring node label of the ring node that generates the first message in the unidirectional ring network. In this scenario, the way of processing the first message includes intra-ring forwarding and intra-ring termination, and the intra-ring termination includes discarding the first message.

[0218] The ring node for generating the first message can be understood as: traffic is ringed from the ring node, and the ring node adds the first target ring node label to the traffic to obtain the first message. The ring node for generating the first message can also be called the source ring node for broadcasting the first message.

[0219] For broadcast traffic, since the destination node of the message is the node outside the ring to which all the ring nodes in the unidirectional ring network are connected, the first target ring node label can be set to the ring node label of the ring node that generates the first message in the unidirectional ring network. In this way, when any subsequent ring node receives the first message, it can determine whether the broadcast traffic has been forwarded within the ring based on the first target ring node label, and then discard the first message when it is determined that the broadcast traffic has been forwarded within the ring, thereby avoiding broadcast storms in the unidirectional ring network and improving the communication efficiency of broadcast traffic in the unidirectional ring network.

[0220] In scenario 2, step 1502 can be implemented by Fig.21 The steps shown are implemented.

[0221] Step 15023: If the first target ring node label conflicts with the first ring node label, the first message is forwarded to the third ring node through the first type port, and the third ring node is a ring node other than the first ring node in the unidirectional ring network.

[0222] The conflict between the first target ring point label and the first ring point label can be understood as: the ring point indicated by the first target ring point label is not the same as the ring point indicated by the first ring point label. Since the first target ring point label is the ring point label of the ring point that generates the first message in the unidirectional ring network, when the first target ring point label conflicts with the first ring point label, it indicates that it is not the ring point that generates the first message, and therefore needs to continue to forward the message in the ring to achieve the broadcast of the first message in the unidirectional ring network.

[0223] Step 15024: If the first target ring node label conflicts with the first ring node label, the first message is also forwarded to a node outside the unidirectional ring network through the second type port.

[0224] When broadcasting the first message, two forwarding processes are required for the first message. One forwarding process is to continue forwarding the first message in the ring so that other nodes in the ring can receive the first message. The other forwarding process is to broadcast the first message to each node outside the ring to which it is connected, so as to achieve the purpose of broadcasting the first message.

[0225] Optionally, in some scenarios, for example, the first ring node itself may not be connected to any external node. In this scenario, when the first ring node determines that the first target ring node label conflicts with the first ring node label, it only needs to execute step 15023.

[0226] Step 15025: If the first target ring node label is consistent with the first ring node label, discard the first message.

[0227] The first target link node label is consistent with the first link node label, which can be understood as: the link node indicated by the first target link node label is the same as the link node indicated by the first link node label. When the first target link node label is consistent with the first link node label, it indicates that it is the link node that generates the first message, that is, the source link node that broadcasts the first message, indicating that the first message has been transmitted in the unidirectional ring network for a circle and returned to the first link node, so the first message can be stopped from being forwarded in the ring, thereby avoiding the occurrence of broadcast storms. Therefore, the first link node can discard the first message.

[0228] In addition, in the scenario where the first message is a broadcast message, the first message also carries the first source MAC address. At this time, the first ring node can also add the corresponding relationship between the first source MAC address and the first target ring node label in the forwarding table, and the forwarding table is used to indicate the corresponding relationship between the ring node label of any ring node in the unidirectional ring network and the MAC address of the node outside the ring connected to the corresponding ring node.

[0229] In the above manner, the first ring node can learn the correspondence between the ring node labels of each ring node in the unidirectional ring network and the MAC address of the outer ring node connected to the corresponding ring node through broadcast traffic. In this way, when the upper ring traffic that needs to reach the outer ring node is received later, the target ring node label that needs to be added to the upper ring traffic can be found through the forwarding table. That is, the embodiment of the present application provides a MAC learning method based on a unidirectional ring network.

[0230] Optionally, in the embodiment of the present application, the above-mentioned forwarding table may also be configured at each ring node in the unidirectional ring network by manual static configuration, which will not be described in detail here.

[0231] Fig. 22 1 is a schematic diagram of a processing flow of broadcast traffic from a master node to a ring provided by an embodiment of the present application. Fig. 22 As shown, the first message is the broadcast traffic from the master ring node, and the first message carries the first target ring node label, which is the ring node label of the master ring node, that is, the M1 label.

[0232] like Fig. 22As shown in the figure, when the first message is received from ring node 1, since the first target ring node label (i.e., M1 label) carried by the first message is not the ring node label of ring node 1, the first message can be directly forwarded to the next hop of the unidirectional ring network, i.e., from ring node 2. This process can be called direct forwarding. At the same time, the first message is also broadcasted to each node outside the ring to which it is connected. This process can be called down-ring forwarding.

[0233] The processing methods of the other slave ring nodes 2 and 3 for the first message are basically the same as the processing method of the slave ring node 1 for the first message, and are not described one by one here.

[0234] When the master ring node receives the first message, since the first target ring node label (i.e., M1 label) carried by the first message is the ring node label of the master ring node itself, the first message can be directly discarded to terminate the continued transmission of the first message in the ring, thereby avoiding the occurrence of a broadcast storm.

[0235] in, Fig. 22 In the scenario shown, the formats of the messages sent and received by each link can be as follows: Fig.23 As shown, no further examples are given here.

[0236] In summary, in the embodiments of the present application, for messages forwarded within a unidirectional ring network, the ring point label of the ring point associated with the destination node of the message is carried in the message. In this way, when any ring point in the unidirectional ring network receives the message, it can quickly analyze whether it is the ring point associated with the destination node of the message based on the ring point label, and then determine whether to continue forwarding the message within the unidirectional ring network. This not only realizes the normal communication of the message within the unidirectional ring network, but also improves the communication efficiency of the unidirectional ring network.

[0237] Fig.24 This is a structural diagram of a message processing device provided by an embodiment of the present application. The device is deployed in the first ring node of a communication system. The communication system includes multiple ring nodes. The multiple ring nodes are connected to form a unidirectional ring network, and each of the multiple ring nodes includes a first type of port and a second type of port. The first type of port is used to communicate with other ring nodes in the unidirectional ring network, and the second type of port is used to communicate with nodes outside the unidirectional ring network. Each of the multiple ring nodes is configured with a ring node label. Fig.24 As shown, the device 2400 includes the following modules.

[0238] The first receiving module 2401 is used to receive a first message through a first type port, the first message carries a first target ring node label, the first target ring node label is a ring node label associated with the destination node of the first message, and the first ring node is any ring node in a unidirectional ring network. For specific implementation methods, please refer to Fig.15 Step 1501 in an embodiment.

[0239] The processing module 2402 is used to process the first message based on the first target ring node label. For specific implementation methods, please refer to Fig.15 Step 1502 in an embodiment.

[0240] Optionally, the processing module is used to:

[0241] Based on the comparison result between the first target ring node label and the first ring node label, the first message is processed, and the processing method of the first message includes intra-ring forwarding and intra-ring termination. The first ring node label is the ring node label of the first ring node.

[0242] Optionally, the first message further carries a first destination media access control MAC address, and the first destination MAC address is a unicast address, the first destination MAC address indicates a destination node of the first message, and the first target ring node label is a ring node label of a ring node to which the destination node of the first message is connected;

[0243] The manner of processing the first message includes intra-ring forwarding and intra-ring termination, and the intra-ring termination includes forwarding the first message through a second-class port.

[0244] Optionally, the processing module is used to:

[0245] If the first target ring node label conflicts with the first ring node label, the first message is forwarded to the second ring node through the first type port, and the second ring node is a ring node other than the first ring node in the unidirectional ring network.

[0246] Optionally, the processing module is used to:

[0247] If the first target ring node label is consistent with the first ring node label, the first target ring node label in the first message is deleted to obtain a second message;

[0248] The second message is forwarded to the destination node through the second type port based on the first destination MAC address.

[0249] Optionally, the first message further carries a first destination media access control MAC address, and the first destination MAC address is a broadcast address, and the first target ring node label is a ring node label of a ring node generating the first message in the unidirectional ring network;

[0250] The manner of processing the first message includes intra-ring forwarding and intra-ring termination, and the intra-ring termination includes discarding the first message.

[0251] Optionally, the processing module is used to:

[0252] If the first target ring node label conflicts with the first ring node label, the first message is forwarded to the third ring node through the first type port, and the third ring node is a ring node other than the first ring node in the unidirectional ring network.

[0253] Optionally, the processing module is further configured to:

[0254] The first message is forwarded to a node outside the unidirectional ring network through the second type port.

[0255] Optionally, the processing module is used to:

[0256] If the first target ring node label is consistent with the first ring node label, the first message is discarded.

[0257] Optionally, the first message further carries a first destination media access control MAC address and a first source MAC address, and the first destination MAC address is a broadcast address, and the first target ring node label is a ring node label of a ring node generating the first message in the unidirectional ring network;

[0258] The device also includes:

[0259] The first adding module is used to add the correspondence between the first source MAC address and the first target ring node label in the forwarding table, and the forwarding table is used to indicate the correspondence between the ring node label of any ring node and the MAC address of the outer ring node connected to the corresponding ring node.

[0260] Optionally, the device further comprises:

[0261] A second receiving module, used for receiving a third message through a second type port;

[0262] A determination module, configured to determine a second target link node label from a link node label of each link node in the plurality of link nodes, the second target link node label being a link node label of a link node associated with a destination node of a third message;

[0263] A second adding module, used for adding a second target ring node label to the third message to obtain a fourth message;

[0264] The forwarding module is used to forward the fourth message through the first type port.

[0265] Optionally, the third message further carries a second destination media access control MAC address, and the second destination MAC address is a unicast address;

[0266] Determine the module used to:

[0267] Obtaining a ring node label of a ring node to which the destination node of the third message is connected;

[0268] If the ring node label of the ring node to which the destination node of the third message is connected is obtained, the obtained ring node label is determined as the second target ring node label.

[0269] Optionally, the determination module is used to:

[0270] The ring node label corresponding to the second destination MAC address is searched from the forwarding table, and the forwarding table is used to indicate the corresponding relationship between the ring node label of any ring node and the MAC address of the outer ring node connected to the corresponding ring node.

[0271] Optionally, the determination module is further configured to:

[0272] If the ring node label of the ring node to which the destination node of the third message is connected is not obtained, the first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node;

[0273] Before the first ring node forwards the fourth message through the first class port, the method further includes:

[0274] The second destination MAC address in the fourth message is replaced with the broadcast address.

[0275] Optionally, the third message further carries a second destination media access control MAC address, and the second destination MAC address is a broadcast address;

[0276] Determine the module used to:

[0277] The first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node.

[0278] Optionally, the first message includes a first virtual local area network (VLAN) tag, and the first VLAN tag carries a first target ring node tag.

[0279] In an embodiment of the present application, for messages forwarded within a unidirectional ring network, a ring point label of a ring point associated with the destination node of the message is carried in the message. When any ring point in the unidirectional ring network receives the message, it can quickly analyze whether it is the ring point associated with the destination node of the message based on the ring point label, and then determine whether to continue forwarding the message within the unidirectional ring network. This not only realizes the normal communication of messages within the unidirectional ring network, but also improves the communication efficiency of the unidirectional ring network.

[0280] It should be noted that: when the message processing device provided in the above embodiment processes a message, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the message processing device provided in the above embodiment and the message processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0281] Fig.25 This is a structural diagram of another message processing device provided by an embodiment of the present application. The device is deployed in the first ring node of a communication system. The communication system includes multiple ring nodes. The multiple ring nodes are connected to form a ring network, and each of the multiple ring nodes includes a first type of port and a second type of port. The first type of port is used to communicate with other ring nodes in the ring network, and the second type of port is used to communicate with ring nodes outside the ring network. Each of the multiple ring nodes is configured with a ring node label. Fig.25 As shown, the device 2500 includes the following modules.

[0282] The second receiving module 2501 is used to receive the third message through the second type port, and the first ring node is any ring node in the unidirectional ring network. Fig. 9 Step 901 in the embodiment.

[0283] Determination module 2502, used to determine the second target ring node label from the ring node label of each ring node in the multiple ring nodes; the specific implementation method can refer to Fig. 9 Step 902 in an embodiment.

[0284] The second adding module 2503 is used to add the second target ring node label to the third message to obtain a fourth message; the specific implementation method can refer to Fig. 9 Step 903 in the embodiment.

[0285] The forwarding module 2504 is used to forward the fourth message through the first type port. For specific implementation methods, please refer to Fig. 9 Step 904 in an embodiment.

[0286] Optionally, the first message further carries a first destination media access control MAC address, and the second destination MAC address is a unicast address;

[0287] Determine the module used to:

[0288] Obtaining a ring node label of a ring node to which the destination node of the third message is connected;

[0289] If the ring node label of the ring node to which the destination node of the third message is connected is obtained, the obtained ring node label is determined as the second target ring node label.

[0290] Optionally, the determination module is used to:

[0291] The ring node label corresponding to the second destination MAC address is searched from the forwarding table, and the forwarding table is used to indicate the corresponding relationship between the ring node label of any ring node and the MAC address of the outer ring node connected to the corresponding ring node.

[0292] Optionally, the determination module is further configured to:

[0293] If the ring node label of the ring node to which the destination node of the third message is connected is not obtained, the first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node;

[0294] Before the first ring node forwards the fourth message through the first class port, the method further includes:

[0295] The second destination MAC address in the fourth message is replaced with the broadcast address.

[0296] Optionally, the first message further carries a first destination media access control MAC address, and the second destination MAC address is a broadcast address;

[0297] Determine the module used to:

[0298] The first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node.

[0299] Optionally, the fourth message includes a second virtual local area network VLAN tag, and the second VLAN tag carries a second target ring node tag.

[0300] In the embodiment of the present application, for the traffic received from the second type port of the ring node in the unidirectional ring network, that is, the upper ring traffic, in order to facilitate the subsequent ring nodes in the ring to quickly determine the processing method of the traffic, when the first ring node receives the upper ring traffic, it can add the node label of the ring node in the ring associated with the destination node of the upper ring traffic, that is, the target ring node label. In this way, other ring nodes in the subsequent ring can quickly determine the processing method of the upper ring traffic based on the target ring node label, thereby improving the communication efficiency of the unidirectional ring network.

[0301] It should be noted that: when the message processing device provided in the above embodiment processes a message, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the message processing device provided in the above embodiment and the message processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0302] Fig.26 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.26 The computer device shown is implemented. Fig.26 The computer device includes at least one processor 2601, a communication bus 2602, a memory 2603 and at least one communication interface 2604.

[0303] The processor 2601 may be a general-purpose central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0304] Communication bus 2602 may include a pathway for transmitting information between the above-mentioned components.

[0305] The memory 2603 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2603 may exist independently and be connected to the processor 2601 via the communication bus 2602. The memory 2603 may also be integrated with the processor 2601.

[0306] Among them, the memory 2603 is used to store the program code for executing the solution of the present application, and the execution is controlled by the processor 2601. The processor 2601 is used to execute the program code stored in the memory 2603. The program code may include one or more software modules. Any link node in the foregoing embodiment can determine the data used to develop the application through the processor 2601 and one or more software modules in the program code in the memory 2603.

[0307] The communication interface 2604 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.

[0308] In a specific implementation, as an embodiment, a computer device may include multiple processors, such as Fig.26 2601 and processor 2605 shown in . Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0309] In a specific implementation, as an embodiment, the computer device may further include an output device 2606 and an input device 2607. The output device 2606 communicates with the processor 2601 and may display information in a variety of ways. For example, the output device 2606 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 2607 communicates with the processor 2601 and may receive user input in a variety of ways. For example, the input device 2607 may be a mouse, a keyboard, a touch screen device, or a sensor device.

[0310] The above-mentioned computer device can be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present application does not limit the type of computer device.

[0311] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0312] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

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

Claims

1. A message processing method, characterized in that: The method is applied to a communication system, the communication system includes a plurality of ring nodes, the plurality of ring nodes are connected to form a unidirectional ring network, and each of the plurality of ring nodes includes a first type port and a second type port, the first type port is used to communicate with other ring nodes in the unidirectional ring network, the second type port is used to communicate with nodes outside the unidirectional ring network, and each of the plurality of ring nodes is configured with a ring node label; the method includes: The first ring node receives a first message through the first type port, the first message carries a first target ring node label, the first target ring node label is a ring node label of a ring node associated with a destination node of the first message, and the first ring node is any ring node in the unidirectional ring network; The first ring node processes the first message based on the first target ring node label.

2. The method according to claim 1, characterized in that The first ring node processes the first message based on the first target ring node label, including: The first ring node processes the first message based on a comparison result between the first target ring node label and the first ring node label, and the processing methods of the first message include intra-ring forwarding and intra-ring termination. The first ring node label is the ring node label of the first ring node.

3. The method according to claim 2, characterized in that The first message also carries a first destination media access control MAC address, and the first destination MAC address is a unicast address, the first destination MAC address indicates a destination node of the first message, and the first target ring node label is a ring node label of a ring node to which the destination node of the first message is connected; The manner of processing the first message includes intra-ring forwarding and intra-ring termination, and the intra-ring termination includes forwarding the first message through the second-type port.

4. The method according to claim 3, characterized in that The first ring node processes the first message based on a comparison result between the first target ring node label and the first ring node label, including: If the first target ring node label conflicts with the first ring node label, the first message is forwarded to a second ring node through the first type port, and the second ring node is a ring node other than the first ring node in the unidirectional ring network.

5. The method according to claim 3, characterized in that The first ring node processes the first message based on a comparison result between the first target ring node label and the first ring node label, including: If the first target ring node label is consistent with the first ring node label, deleting the first target ring node label in the first message to obtain a second message; The second message is forwarded to the destination node through the second type port based on the first destination MAC address.

6. The method according to claim 2, characterized in that The first message also carries a first destination media access control MAC address, and the first destination MAC address is a broadcast address, and the first target ring node label is a ring node label of a ring node in the unidirectional ring network that generates the first message; The manner of processing the first message includes intra-ring forwarding and intra-ring termination, and the intra-ring termination includes discarding the first message.

7. The method according to claim 6, characterized in that The first ring node processes the first message based on a comparison result between the first target ring node label and the first ring node label, including: If the first target ring node label conflicts with the first ring node label, the first message is forwarded to a third ring node through the first type port, and the third ring node is a ring node other than the first ring node in the unidirectional ring network.

8. The method according to claim 7, characterized in that If the first target ring node label conflicts with the first ring node label, the method further includes: The first message is forwarded to a node outside the unidirectional ring network through the second-type port.

9. The method according to claim 6, characterized in that The first ring node processes the first message based on a comparison result between the first target ring node label and the first ring node label, including: If the first target ring node label is consistent with the first ring node label, the first message is discarded.

10. The method according to any one of claims 1 to 9, characterized in that: The first message also carries a first destination media access control MAC address and a first source MAC address, and the first destination MAC address is a broadcast address, and the first target ring node label is a ring node label of a ring node in the unidirectional ring network that generates the first message; The method further comprises: The correspondence between the first source MAC address and the first target ring node label is added in the forwarding table, and the forwarding table is used to indicate the correspondence between the ring node label of any ring node and the MAC address of the outer ring node connected to the corresponding ring node.

11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: The first ring node receives the third message through the second type port; The first ring node determines a second target ring node label from the ring node label of each ring node in the multiple ring nodes, and the second target ring node label is the ring node label of the ring node associated with the destination node of the third message; The first ring node adds the second target ring node label to the third message to obtain a fourth message; The first ring node forwards the fourth message through the first type port.

12. The method according to claim 11, characterized in that The third message also carries a second destination media access control MAC address, and the second destination MAC address is a unicast address; The first ring node determines a second target ring node label from the ring node label of each ring node in the plurality of ring nodes, including: Obtaining a ring node label of a ring node to which the destination node of the third message is connected; If the ring node label of the ring node to which the destination node of the third message is connected is obtained, the obtained ring node label is determined as the second target ring node label.

13. The method according to claim 12, characterized in that The step of obtaining the ring node label of the ring node to which the destination node of the third message is connected includes: The ring node label corresponding to the second destination MAC address is searched in the forwarding table, where the forwarding table is used to indicate the corresponding relationship between the ring node label of any ring node and the MAC address of the outer ring node connected to the corresponding ring node.

14. The method according to claim 12 or 13, characterized in that After obtaining the ring node label of the ring node to which the destination node of the third message is connected, the method further includes: If the ring node label of the ring node to which the destination node of the third message is connected is not obtained, the first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node; Before the first ring node forwards the fourth message through the first type port, the method further includes: The second destination MAC address in the fourth message is replaced with a broadcast address.

15. The method according to claim 11, characterized in that The third message also carries a second destination media access control MAC address, and the second destination MAC address is a broadcast address; The first ring node determines a second target ring node label from the ring node label of each ring node in the plurality of ring nodes, including: The first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node.

16. The method according to any one of claims 1 to 15, characterized in that: The first message includes a first virtual local area network (VLAN) tag, and the first VLAN tag carries the first target ring node tag.

17. A message processing method, characterized in that: The method is applied to a communication system, the communication system includes a plurality of ring nodes, the plurality of ring nodes are connected to form a ring network, and each of the plurality of ring nodes includes a first type port and a second type port, the first type port is used to communicate with other ring nodes in the ring network, the second type port is used to communicate with ring nodes outside the ring network, and each of the plurality of ring nodes is configured with a ring node label; the method includes: The first ring node receives the third message through the second type port, and the first ring node is any ring node in the unidirectional ring network; The first ring node determines a second target ring node label from the ring node label of each ring node in the multiple ring nodes, and the second target ring node label is the ring node label of the ring node associated with the destination node of the third message; The first ring node adds the second target ring node label to the third message to obtain a fourth message; The first ring node forwards the fourth message through the first type port.

18. The method according to claim 17, characterized in that The third message also carries a second destination media access control MAC address, and the second destination MAC address is a unicast address; The first ring node determines a second target ring node label from the ring node label of each ring node in the plurality of ring nodes, including: Obtaining a ring node label of a ring node to which the destination node of the third message is connected; If the ring node label of the ring node to which the destination node of the third message is connected is obtained, the obtained ring node label is determined as the second target ring node label.

19. The method according to claim 18, characterized in that The step of obtaining the ring node label of the ring node to which the destination node of the third message is connected includes: The ring node label corresponding to the second destination MAC address is searched in the forwarding table, where the forwarding table is used to indicate the corresponding relationship between the ring node label of any ring node and the MAC address of the outer ring node connected to the corresponding ring node.

20. The method according to claim 18 or 19, characterized in that After obtaining the ring node label of the ring node to which the destination node of the third message is connected, the method further includes: If the ring node label of the ring node to which the destination node of the third message is connected is not obtained, the first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node; Before the first ring node forwards the fourth message through the first type port, the method further includes: The second destination MAC address in the fourth message is replaced with a broadcast address.

21. The method of claim 17, wherein: The third message also carries a second destination media access control MAC address, and the second destination MAC address is a broadcast address; The first ring node determines a second target ring node label from the ring node label of each ring node in the plurality of ring nodes, including: The first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node.

22. The method according to any one of claims 17 to 21, characterized in that: The fourth message includes a second virtual local area network (VLAN) tag, and the second VLAN tag carries the second target ring node tag.

23. A message processing device, characterized in that: The device is deployed at a first ring node in a communication system, the communication system includes a plurality of ring nodes, the plurality of ring nodes are connected to form a unidirectional ring network, and each of the plurality of ring nodes includes a first type port and a second type port, the first type port is used to communicate with other ring nodes in the unidirectional ring network, the second type port is used to communicate with nodes outside the unidirectional ring network, and each of the plurality of ring nodes is configured with a ring node label; the device includes: A first receiving module, configured to receive a first message through the first type port, the first message carrying a first target ring node label, the first target ring node label being a ring node label of a ring node associated with a destination node of the first message, the first ring node being any ring node in the unidirectional ring network; A processing module is used to process the first message based on the first target ring node label.

24. The device according to claim 23, characterized in that The processing module is used for: Based on the comparison result between the first target ring node label and the first ring node label, the first message is processed, and the processing method of the first message includes intra-ring forwarding and intra-ring termination. The first ring node label is the ring node label of the first ring node.

25. The device according to claim 24, characterized in that The first message also carries a first destination media access control MAC address, and the first destination MAC address is a unicast address, the first destination MAC address indicates a destination node of the first message, and the first target ring node label is a ring node label of a ring node to which the destination node of the first message is connected; The manner of processing the first message includes intra-ring forwarding and intra-ring termination, and the intra-ring termination includes forwarding the first message through the second-type port.

26. The device according to claim 25, characterized in that The processing module is used for: If the first target ring node label conflicts with the first ring node label, the first message is forwarded to a second ring node through the first type port, and the second ring node is a ring node other than the first ring node in the unidirectional ring network.

27. The device according to claim 25, characterized in that The processing module is used for: If the first target ring node label is consistent with the first ring node label, deleting the first target ring node label in the first message to obtain a second message; The second message is forwarded to the destination node through the second type port based on the first destination MAC address.

28. The device according to claim 24, characterized in that The first message also carries a first destination media access control MAC address, and the first destination MAC address is a broadcast address, and the first target ring node label is a ring node label of a ring node in the unidirectional ring network that generates the first message; The manner of processing the first message includes intra-ring forwarding and intra-ring termination, and the intra-ring termination includes discarding the first message.

29. The device according to claim 28, characterized in that The processing module is used for: If the first target ring node label conflicts with the first ring node label, the first message is forwarded to a third ring node through the first type port, and the third ring node is a ring node other than the first ring node in the unidirectional ring network.

30. The device according to claim 29, characterized in that The processing module is also used for: The first message is forwarded to a node outside the unidirectional ring network through the second-type port.

31. The device according to claim 28, characterized in that The processing module is used for: If the first target ring node label is consistent with the first ring node label, the first message is discarded.

32. The device according to any one of claims 23 to 31, characterized in that: The first message also carries a first destination media access control MAC address and a first source MAC address, and the first destination MAC address is a broadcast address, and the first target ring node label is a ring node label of a ring node in the unidirectional ring network that generates the first message; The device also includes: The first adding module is used to add the correspondence between the first source MAC address and the first target ring node label in the forwarding table, and the forwarding table is used to indicate the correspondence between the ring node label of any ring node and the MAC address of the outer ring node connected to the corresponding ring node.

33. The device according to any one of claims 23 to 32, characterized in that: The device also includes: A second receiving module, used for receiving a third message through the second type port; a determining module, configured to determine a second target ring node label from the ring node label of each ring node of the plurality of ring nodes, wherein the second target ring node label is the ring node label of the ring node associated with the destination node of the third message; A second adding module, configured to add the second target ring node label to the third message to obtain a fourth message; A forwarding module is used to forward the fourth message through the first type port.

34. The device according to claim 33, characterized in that The third message also carries a second destination media access control MAC address, and the second destination MAC address is a unicast address; The determination module is used for: Obtaining a ring node label of a ring node to which the destination node of the third message is connected; If the ring node label of the ring node to which the destination node of the third message is connected is obtained, the obtained ring node label is determined as the second target ring node label.

35. The device according to claim 34, characterized in that The determination module is used for: The ring node label corresponding to the second destination MAC address is searched in the forwarding table, where the forwarding table is used to indicate the corresponding relationship between the ring node label of any ring node and the MAC address of the outer ring node connected to the corresponding ring node.

36. The device according to claim 34 or 35, characterized in that The determining module is also used for: If the ring node label of the ring node to which the destination node of the third message is connected is not obtained, the first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node; Before the first ring node forwards the fourth message through the first type port, the method further includes: The second destination MAC address in the fourth message is replaced with a broadcast address.

37. The device according to claim 33, characterized in that The third message also carries a second destination media access control MAC address, and the second destination MAC address is a broadcast address; The determination module is used for: The first ring node label is determined as the second target ring node label, and the first ring node label is the ring node label of the first ring node.

38. The device according to any one of claims 23 to 37, characterized in that: The first message includes a first virtual local area network (VLAN) tag, and the first VLAN tag carries the first target ring node tag.

39. A message processing device, characterized in that: The device is deployed at a first ring node of a communication system, the communication system includes a plurality of ring nodes, the plurality of ring nodes are connected to form a ring network, and each of the plurality of ring nodes includes a first type port and a second type port, the first type port is used to communicate with other ring nodes in the ring network, the second type port is used to communicate with ring nodes outside the ring network, and each of the plurality of ring nodes is configured with a ring node label; the device includes: A second receiving module, used for receiving a third message through the second type port; a determining module, configured to determine a second target ring node label from the ring node label of each ring node of the plurality of ring nodes, wherein the second target ring node label is the ring node label of the ring node associated with the destination node of the third message; A second adding module, configured to add the second target ring node label to the third message to obtain a fourth message; A forwarding module is used to forward the fourth message through the first type port.

40. A ring node, characterized in that The ring nodes include a memory and a processor; The memory is used to store a program that supports the ring node to execute the method according to any one of claims 1 to 16, and to store data involved in implementing the method according to any one of claims 1 to 16; The processor is configured to execute the program stored in the memory.

41. A ring node, characterized in that The ring nodes include a memory and a processor; The memory is used to store a program that supports the ring node to execute the method described in any one of claims 17 to 22, and to store data involved in implementing the method described in any one of claims 17 to 22; The processor is configured to execute the program stored in the memory.

42. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in any one of claims 1 to 16, or to execute the method described in any one of claims 17 to 22.

Citation Information

Cited By

  • Data transmission control method, device and system based on OLT cascade

    CN120786209A