CN-122027574-A - Message forwarding method, related device, storage medium and computer program product
Abstract
The embodiment of the application provides a message forwarding method, related equipment, a storage medium and a computer program product, wherein the method is applied to a first node, and comprises the steps that the first node sends neighbor information to control equipment and receives first information sent by the control equipment, wherein the first information at least comprises a path forwarding table, the path forwarding table comprises forwarding paths from one or more source nodes to destination nodes, the neighbor information is at least used for generating the path forwarding table by the control equipment, the first message sent by a second node is received, whether the first message is subjected to discarding processing is judged based on the path forwarding table and a first field carried in a message header of the first message, the first field is used for representing the total hop count and/or the residual hop count of the first message, and the first message is subjected to forwarding processing based on the first field and the path forwarding table under the condition that the first message is not subjected to discarding processing is judged, so that the disorder rate of the message is reduced, and the network performance is improved.
Inventors
- WANG RUIXUE
- Pang Chengguang
Assignees
- 中国移动通信有限公司研究院
- 中国移动通信集团有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241111
Claims (20)
- 1. A method for forwarding a message, wherein the method is applied to a first node, the first node being located in a photoelectric hybrid network, the method comprising: The method comprises the steps of sending neighbor information to control equipment and receiving first information sent by the control equipment, wherein the first information at least comprises a path forwarding table, the path forwarding table comprises forwarding paths from one or more source nodes to destination nodes, and the neighbor information is at least used for the control equipment to generate the path forwarding table; Receiving a first message sent by a second node, and judging whether to discard the first message or not based on the path forwarding table and a first field carried in a message header of the first message, wherein the first field is used for representing the total hop count and/or the residual hop count of the forwarding of the first message; and under the condition that the first message is not subjected to discarding processing, forwarding processing of the first message is performed based on the first field and the path forwarding table.
- 2. The method of claim 1, wherein the determining whether to discard the first message based on the path forwarding table and a first field carried in a header of the first message comprises: Screening the path forwarding table based on the identification information of the second node and the destination node carried in the first message to obtain a first forwarding path, wherein the source node at least comprises the second node, and the first forwarding path comprises one or more forwarding paths; And judging whether to discard the first message or not based on the first forwarding path and the first field.
- 3. The method of claim 2, wherein the determining whether to discard the first message based on the first forwarding path and the first field comprises: When the first forwarding path includes a destination node corresponding to the identification information and the remaining hop count is not 0, determining that the first message is not discarded; Or alternatively And judging that the first message is not subjected to discarding processing under the condition that the first forwarding path comprises the destination node corresponding to the identification information and the residual hop count is 0.
- 4. A method according to claim 3, characterized in that the method further comprises: and under the condition that the first forwarding path does not contain the destination node corresponding to the identification information and the residual hop count is 0, judging that the first message is subjected to discarding processing.
- 5. The method of claim 3, wherein the first information further includes dynamic global schedule queue DGSQ information and forwarding hop count information corresponding to each path in the path forwarding table, and the forwarding processing of the first packet based on the first field and the path forwarding table includes: Judging whether the first message is the first message of the current container or not based on a second field carried in the message header, wherein the second field is at least used for representing the flag bit information of the container; Under the condition that the first message is the first message of the current container, screening the first forwarding path based on the residual hop count in the first field and the forwarding hop count information to obtain a first target forwarding path, wherein the first forwarding path comprises the first target forwarding path; And forwarding the first message based on the first target forwarding path and the DGSQ information, wherein the DGSQ information comprises one or more of identification information, port information and priority information of one or more nodes.
- 6. The method of claim 5, wherein forwarding the first message based on the first target forwarding path and the DGSQ information comprises: And updating the residual hop count in the first field to obtain an updated first message, and forwarding the updated first message through the first target forwarding path and DGSQ information.
- 7. The method of claim 5, wherein the method further comprises: And forwarding the updated first message based on a second forwarding path corresponding to the current container under the condition that the first message is not the first message of the current container, wherein the second forwarding path comprises a history forwarding path of the current container.
- 8. The method of claim 5, wherein the method further comprises: And under the condition that the first message is the last message of the current container, forwarding the updated first message based on a second forwarding path, and discarding the second forwarding path.
- 9. A method for forwarding a message, wherein the method is applied to a second node, the second node being located in a photoelectric hybrid network, the method comprising: The method comprises the steps of sending neighbor information to control equipment and receiving first information sent by the control equipment, wherein the first information at least comprises a path forwarding table, the path forwarding table comprises forwarding paths from one or more source nodes to destination nodes, and the neighbor information is at least used for the control equipment to generate the path forwarding table; Screening the forwarding paths in the path forwarding table based on a first preset strategy to obtain a second target forwarding path; And encapsulating second information corresponding to the second target forwarding path into a first field in a message header of a first message, and sending the encapsulated first message to a first node so that the first node performs forwarding processing of the first message based on the first field, wherein the second information at least comprises the total hop count and/or the residual hop count of the second target forwarding path.
- 10. The method of claim 9, wherein the first information further includes forwarding hop count information corresponding to each path in the path forwarding table, and the filtering the forwarding paths in the path forwarding table based on the first preset policy to obtain the second target forwarding path includes: And distributing the first message to a corresponding target container based on a preset distribution strategy, and screening the forwarding paths in the path forwarding table according to the priority information and the forwarding hop count information of the target container to obtain the second target forwarding path.
- 11. The method according to claim 10, wherein the method further comprises: If the first message is the first message of the target container, setting a second field in a message header of the first message as a start zone bit, wherein the second field is at least used for representing zone bit information of the container; Or alternatively And if the first message is the last message of the target container, setting a second field in a message header of the first message as an end flag bit.
- 12. The method of claim 9, wherein the first information further comprises DGSQ information, and wherein the sending the encapsulated first message to the first node comprises: And sending the packaged first message to the first node through the second target forwarding path and the DGSQ information.
- 13. A method for forwarding a message, wherein the method is applied to a control device, and the method comprises: receiving neighbor information sent by one or more nodes, and generating a path forwarding table based on the neighbor information, wherein the path forwarding table comprises forwarding paths from one or more source nodes to a destination node; and sending the path forwarding table to all nodes in the photoelectric hybrid network so that one or more nodes can forward the message based on the path forwarding table.
- 14. The method of claim 13, wherein the generating a path forwarding table based on the neighbor information comprises: Generating one or more source node-to-destination node link tables based on DGSQ information and the neighbor information; and generating the path forwarding table based on the link table.
- 15. The method of claim 13, wherein the method further comprises: And acquiring forwarding hop count information corresponding to each path in the path forwarding table based on the path forwarding table, and sending the forwarding hop count information and DGSQ information to all nodes in the photoelectric hybrid network.
- 16. A first node is characterized by comprising a first transmitting unit, a first receiving unit, a judging unit and a forwarding unit, wherein, The first sending unit is used for sending neighbor information to the control equipment, wherein the neighbor information is at least used for the control equipment to generate the path forwarding table; the first receiving unit is used for receiving first information sent by the control equipment, wherein the first information at least comprises a path forwarding table, a first message and a second message, wherein the path forwarding table comprises forwarding paths from one or more source nodes to a destination node; The judging unit is used for judging whether to discard the first message or not based on the path forwarding table and a first field carried in a message header of the first message, wherein the first field is used for representing the total hop count and/or the residual hop count of the forwarding of the first message; And the forwarding unit is used for forwarding the first message based on the first field and the path forwarding table under the condition that the first message is judged not to be subjected to discarding processing.
- 17. A first node is characterized in that the first node comprises a first processor and a first memory, wherein, The first memory is used for storing a computer program capable of running on the processor; The first processor being adapted to perform the method of any of claims 1-8 when the computer program is run.
- 18. A second node is characterized by comprising a second sending unit, a second receiving unit, a screening unit and a packaging unit, wherein, The second sending unit is used for sending neighbor information to the control equipment, wherein the neighbor information is at least used for the control equipment to generate the path forwarding table; The second receiving unit is configured to receive first information sent by the control device, where the first information includes at least a path forwarding table, where the path forwarding table includes forwarding paths from one or more source nodes to a destination node; the screening unit is used for screening the forwarding paths in the path forwarding table based on a first preset strategy to obtain a second target forwarding path; The encapsulation unit is configured to encapsulate second information corresponding to the second target forwarding path into a first field in a header of the first packet; The second sending unit is further configured to send the encapsulated first packet to a first node, so that the first node performs forwarding processing of the first packet based on the first field, where the second information at least includes a total hop count and/or a remaining hop count of the second target forwarding path.
- 19. A second node is characterized in that the second node comprises a second processor and a second memory, wherein, The second memory is used for storing a computer program capable of running on the processor; The second processor being adapted to perform the method of any of claims 9-12 when the computer program is run.
- 20. A control device is characterized by comprising a third receiving unit, a generating unit and a third transmitting unit, wherein, The third receiving unit is used for receiving neighbor information sent by one or more nodes; The generating unit is used for generating a path forwarding table based on the neighbor information, wherein the path forwarding table comprises forwarding paths from one or more source nodes to a destination node; And the third sending unit is used for sending the path forwarding table to all nodes in the photoelectric hybrid network so that one or more nodes can forward the message based on the path forwarding table.
Description
Message forwarding method, related device, storage medium and computer program product Technical Field The present application relates to the field of transport and internet protocol (Internet Protocol, IP), and more particularly to a message forwarding method, related devices, storage medium and computer program product. Background In the traditional cloud data center Ethernet, the flow-based load sharing technology can realize link balance, if no change of network paths occurs, all messages of the flow are continuously forwarded on the paths, the intelligent computation center network with smaller flow number and larger flow bandwidth is easy to cause uneven load, a packet-by-packet container load mechanism is required to be introduced, the flow distribution can be changed into packet forwarding, and the problems of high cost, high power consumption and the like are easy to be caused along with the continuous lifting of the scale of the cloud data center Ethernet, the electric switching possibly becomes a scale lifting bottleneck, and the optical switching technology has the characteristics of independence of port rate/modulation mode, low power consumption, low time delay, no time delay jitter and the like, and the intelligent computation center network can bring the advantages of cross-generation fusion networking, power consumption reduction, performance improvement and the like due to the introduction of the optical switching technology. However, in the current packet-by-packet photoelectric hybrid networking scenario, when the data is sprayed by the multipath container-by-container device, the problem of message disorder and the like is easily caused due to the fact that the optical switch is of one-to-one port level switching characteristics, so that the network performance is reduced. Disclosure of Invention The embodiment of the application provides a message forwarding method, related equipment, a storage medium and a computer program product, which can reduce the disorder rate of messages in a photoelectric hybrid network, thereby improving the network performance. The technical scheme of the embodiment of the application is realized as follows: In a first aspect, an embodiment of the present application provides a method for forwarding a packet, where the method is applied to a first node, where the first node is located in a hybrid photovoltaic network, and the method includes: The method comprises the steps of sending neighbor information to control equipment and receiving first information sent by the control equipment, wherein the first information at least comprises a path forwarding table, the path forwarding table comprises forwarding paths from one or more source nodes to destination nodes, and the neighbor information is at least used for the control equipment to generate the path forwarding table; Receiving a first message sent by a second node, and judging whether to discard the first message or not based on the path forwarding table and a first field carried in a message header of the first message, wherein the first field is used for representing the total hop count and/or the residual hop count of the forwarding of the first message; and under the condition that the first message is not subjected to discarding processing, forwarding processing of the first message is performed based on the first field and the path forwarding table. In a second aspect, an embodiment of the present application provides a method for forwarding a packet, where the method is applied to a second node, where the second node is located in a photoelectric hybrid network, and the method includes: The method comprises the steps of sending neighbor information to control equipment and receiving first information sent by the control equipment, wherein the first information at least comprises a path forwarding table, the path forwarding table comprises forwarding paths from one or more source nodes to destination nodes, and the neighbor information is at least used for the control equipment to generate the path forwarding table; Screening the forwarding paths in the path forwarding table based on a first preset strategy to obtain a second target forwarding path; And encapsulating second information corresponding to the second target forwarding path into a first field in a message header of a first message, and sending the encapsulated first message to a first node so that the first node performs forwarding processing of the first message based on the first field, wherein the second information at least comprises the total hop count and/or the residual hop count of the second target forwarding path. In a third aspect, an embodiment of the present application provides a first node, where the first node includes a first sending unit, a first receiving unit, a judging unit, and a forwarding unit, The first sending unit is used for sending neighbor information to the control equipment, wherein the neighbor informati