Message transmission method and device, computer equipment and storage medium
By sending micro-ring detection request messages in the metropolitan area network and analyzing the response, we can determine and avoid micro-ring situations, and solve the problem of message transmission caused by link failure, improve transmission efficiency and avoid packet loss and delay question.
Patent Information
- Application Number
- CN202410973050.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-19
AI Technical Summary
In metropolitan area network scenarios, micro-ring situations caused by link failures lead to packet loss, delay jitter and messy messages during message transmission, and the prior art is difficult to effectively prevent these problems.
Avoid micro-ring detection request messages in the message transmission path, receive and analyze response messages to determine the existence of the micro-ring, and select appropriate transmission methods according to the situation, such as using a route list or route search method, to avoid micro-computer Transmission problems caused by rings.
It effectively avoids the packet transmission problems caused by micro-rings, improves transmission efficiency, and avoids the occurrence of packet loss, delay jitter and messy messages.
Smart Images

Figure CN118984298A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a message transmission method, device, computer equipment and storage medium. Background Art
[0002] In the metropolitan area network scenario, due to the different equipment types or business pressures of each network node, when a link failure occurs, the routing convergence time corresponding to each network node is also different. This can be understood as the time for each network node to configure the routing information table is different.
[0003] In this case, whether after the initial path switches to the backup path or after the backup path switches to the initial path, micro-rings will occur during message transmission, resulting in packet loss, delay jitter, and message disorder during message transmission. Summary of the invention
[0004] Based on this, it is necessary to provide a message transmission method, device, computer equipment and storage medium that can effectively prevent the occurrence of micro-rings in response to the above technical problems.
[0005] In a first aspect, the present application provides a message transmission method, which is applied to a source node in a current message transmission path, and the method includes:
[0006] Sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path;
[0007] Receiving a micro-ring detection response message fed back by an intermediate node or a destination node in a current message transmission path based on a micro-ring detection request message;
[0008] Determine the existence of micro-loops in the current message transmission path according to the micro-loop detection response message;
[0009] According to the existence of micro-rings, a target transmission mode of the message to be transmitted is determined, and the message to be transmitted is transmitted to the destination node using the target transmission mode.
[0010] In one of the embodiments, the micro-ring detection request message is used to instruct the intermediate node to determine the existence of a micro-ring in the current message transmission path based on the receiving interface and the output interface of the received micro-ring detection request message, and to generate a micro-ring detection response message when the micro-ring existence status indicates that a micro-ring exists, and to add a micro-ring identifier used to characterize the existence of a micro-ring in the current message transmission path to the micro-ring detection response message.
[0011] In one of the embodiments, the microring detection request message is further used to instruct the destination node to generate a microring detection response message after receiving the microring detection request message, and to add a microring identifier in the microring detection response message to indicate that there is no microring in the current message transmission path.
[0012] In one of the embodiments, the micro-ring identifier is configured in an extension field of a micro-ring detection response message.
[0013] In one of the embodiments, the micro-ring detection response message also carries a micro-ring node identifier; wherein the micro-ring node identifier is used to indicate the identity identifier of an intermediate node where the micro-ring exists.
[0014] In one of the embodiments, the microring detection request message is further used to instruct the intermediate node to send a microring detection request to the next node in the current message transmission path according to the output interface when determining that the microring existence condition is that the microring does not exist.
[0015] In one embodiment, determining a target transmission mode according to the existence of a micro-ring includes:
[0016] If the micro-loop exists, a transmission mode based on a routing list is used as a target transmission mode of the message to be transmitted; wherein the routing list is located in the message to be transmitted;
[0017] If the micro-ring existence condition is that there is no micro-ring, the routing search mode is used as the target transmission mode of the message to be transmitted.
[0018] In one embodiment, sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path includes:
[0019] After the message transmission path of the message to be transmitted is switched from the original message transmission path to the current message transmission path, starting the timer;
[0020] When the timing duration of the timer reaches the anti-microring timing period, a microring detection request message is sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path.
[0021] In one embodiment, the method further comprises:
[0022] When the micro-ring existence condition is that a micro-ring exists, the control timer is reset, and the operation of sending a micro-ring detection request message to a destination node in the current message transmission path is returned to be executed.
[0023] In a second aspect, the present application provides a message transmission device, which is configured at a source node in a current message transmission path, and the device includes:
[0024] A sending module, used to send a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path;
[0025] A receiving module, used to receive a micro-ring detection response message fed back by a micro-ring detection request message from an intermediate node or a destination node in a current message transmission path;
[0026] A first determination module is used to determine the existence of a micro-ring in a current message transmission path according to a micro-ring detection response message;
[0027] The second determination module is used to determine the target transmission mode of the message to be transmitted according to the existence of the micro-ring, and transmit the message to be transmitted to the destination node by adopting the target transmission mode.
[0028] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0029] Sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path;
[0030] Receiving a micro-ring detection response message fed back by an intermediate node or a destination node in a current message transmission path based on a micro-ring detection request message;
[0031] Determine the existence of micro-loops in the current message transmission path according to the micro-loop detection response message;
[0032] According to the existence of micro-rings, a target transmission mode of the message to be transmitted is determined, and the message to be transmitted is transmitted to the destination node using the target transmission mode.
[0033] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0034] Sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path;
[0035] Receiving a micro-ring detection response message fed back by an intermediate node or a destination node in a current message transmission path based on a micro-ring detection request message;
[0036] Determine the existence of micro-loops in the current message transmission path according to the micro-loop detection response message;
[0037] According to the existence of micro-rings, a target transmission mode of the message to be transmitted is determined, and the message to be transmitted is transmitted to the destination node using the target transmission mode.
[0038] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0039] Sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path;
[0040] Receiving a micro-ring detection response message fed back by an intermediate node or a destination node in a current message transmission path based on a micro-ring detection request message;
[0041] Determine the existence of micro-loops in the current message transmission path according to the micro-loop detection response message;
[0042] According to the existence of micro-rings, a target transmission mode of the message to be transmitted is determined, and the message to be transmitted is transmitted to the destination node using the target transmission mode.
[0043] The above-mentioned message transmission method, device, computer equipment and storage medium send a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path; receive a micro-ring detection response message fed back by an intermediate node or a destination node in the current message transmission path based on the micro-ring detection request message; determine the existence of micro-rings in the current message transmission path according to the micro-ring detection response message; determine the target transmission mode of the message to be transmitted according to the existence of the micro-ring, and transmit the message to be transmitted to the destination node using the target transmission mode. In the present application, a micro-ring detection request message can be sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path, and the existence of micro-rings in the current message transmission path can be determined based on the micro-ring detection response message fed back by the intermediate node or the destination node. Based on the existence of micro-rings, the target transmission mode is determined and the target transmission mode is adopted to transmit the messages to be transmitted. This not only improves the message transmission efficiency, but also effectively avoids the problems of packet loss, delay jitter and message disorder caused by the existence of micro-rings in the message transmission path. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 An application environment diagram of a message transmission method provided in this embodiment;
[0045] Figure 2 An application environment diagram of another message transmission method provided in this embodiment;
[0046] Figure 3 A schematic diagram of a flow chart of a first message transmission method provided in this embodiment;
[0047] Figure 4A schematic diagram of the principle of the extended field provided in this embodiment;
[0048] Figure 5 A schematic diagram of the process of sending a microring detection request message provided in this embodiment;
[0049] Figure 6 A schematic diagram of a flow chart of a second message transmission method provided in this embodiment;
[0050] Figure 7 A structural block diagram of a message transmission device provided in this embodiment;
[0051] Figure 8 This is a diagram of the internal structure of the computer device provided in this embodiment. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0053] The message transmission method provided in the embodiment of the present application can be applied to Figure 1 , Figure 2 In the application environment shown.
[0054] Among them, Figure 1 As shown, it can be applied to the anti-microring scenario (i.e., the anti-microring scenario after the original message transmission path is switched to the backup message transmission path), such as Figure 1 As shown, if the original message transmission path is A->B->C, when a failure is detected in the link between the intermediate node B and the destination node C, the backup message transmission path (for example, Figure 1 The TI-LFA backup path in the routing table, i.e., the path A->D->E->F->C) is used to transmit the message. If, if the routing convergence speed of node D is slower than that of node A, when node A sends a message to be transmitted to node D, the next hop node to node C in the node D forwarding table is still node A, so the message to be transmitted will circle between nodes A and D, forming a micro-loop, which will continue until the routing convergence of node D is completed (i.e., node D has configured the routing forwarding table). Only after the routing convergence is completed can node D transmit the message to be transmitted to node E through routing lookup. It should be noted that when the method of the present application is applied to this scenario, the backup message transmission path is the current message transmission path of the present application.
[0055] like Figure 2 As shown, it can be applied to the anti-microloop scenario (i.e., the anti-microloop scenario after the backup message transmission path is switched to the original message transmission path). Figure 1 , Figure 2As shown, when the source node A detects that the link failure between the intermediate node B and the destination node C is restored, it switches to the original message transmission path (i.e. A->B ->C) to transmit the message. If, if the routing convergence speed of node B is slower than that of node A, when node A sends a message to be transmitted to node B, the next hop node to node C in the node B forwarding table is still node A, so the message to be transmitted will circle between node A and node B, forming a micro-loop, which will continue until the routing convergence of node B is completed (i.e. node B has configured the routing forwarding table). Only after the routing convergence is completed can node B transmit the message to be transmitted to node C through routing lookup. It should be noted that when the method of the present application is applied to this scenario, the original message transmission path is the current message transmission path of the present application.
[0056] The message transmission method provided in the embodiment of the present application can be applied to Figure 1 , Figure 2 In the application environment shown. Among them, the source node A sends a micro-ring detection request message to the destination node in the current message transmission path through the intermediate node in the current message transmission path. And receive the micro-ring detection response message fed back by the intermediate node or the target node in the current message transmission path based on the micro-ring detection request message. The source node A determines the existence of the micro-ring in the current message transmission path based on the micro-ring detection response message; and determines the target transmission mode of the message to be transmitted according to the existence of the micro-ring, and transmits the message to be transmitted to the destination node in the target transmission mode.
[0057] The source node refers to the starting routing node in the message transmission path. The intermediate node refers to the intermediate routing node between the source node and the destination node in the current message transmission path. The destination node refers to the final routing node in the current message transmission path.
[0058] It should be noted that the micro-loop of the present application is different from the ordinary loop. The micro-loop of the present application refers to the loop generated by the disorderly convergence of each node due to a change in the state of a link in the message transmission path (for example, a failure or failure recovery). The micro-loop will disappear after all nodes complete the routing convergence. This transient loop is called a micro-loop. Ordinary loops are caused by reasons such as equipment configuration errors. If the errors are not eliminated manually, the loops will always exist.
[0059] In one embodiment, Figure 3 is a flow chart of a message transmission method provided according to an embodiment of the present application, in which the method is applied to Figure 1 Taking the source node in as an example, the method includes the following steps:
[0060] S301, sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path.
[0061] The current message transmission path refers to the message transmission path currently used to transmit the message to be transmitted. The intermediate node refers to the intermediate routing node in the current message transmission path. For example, Figure 1 As shown, when there is a fault between node B and node C, the backup message transmission path (i.e., A->D->E->F->C path) takes over the original message transmission path (i.e., A->B->C path), and nodes D, E, and F in the backup message transmission path are all intermediate nodes. Node A is the source node of the current message transmission path. Node C is the destination node of the current message transmission path. The micro-ring detection request message refers to a request message used to indicate whether there is a micro-ring in the destination node and each intermediate node in the current message transmission path.
[0062] Optionally, in an embodiment of the present application, the source node is configured to generate a micro-ring detection request message, and based on the current message transmission path, the micro-ring detection request message is sent to the destination node in the current message transmission path through the intermediate node in the current message transmission path.
[0063] It should be noted that the transmission mode of the micro-ring detection request message at each node in the current message transmission path is to use the normal transmission mode, that is, to use the routing search mode to transmit the micro-ring detection request message. The routing search mode means that after the routing convergence of each node is completed, the message is transmitted to the next node (i.e., the next hop node) based on the IP (Internet Protocol, a protocol for interconnection between networks) routing search mode. In other words, when the micro-ring detection request message is transmitted, it is not necessary to add a routing list (i.e., Segment List) to the micro-ring detection request message.
[0064] S302, receiving a micro-ring detection response message fed back by an intermediate node or a destination node in the current message transmission path based on the micro-ring detection request message.
[0065] The micro-ring detection response message refers to a response message that an intermediate node or a destination node feeds back to a source node after receiving a micro-ring detection request message and detecting whether a micro-ring exists in itself.
[0066] An optional implementation of this embodiment is to use the source node as the target node, construct a transmission path between the intermediate node or the destination node and the source node, and receive a micro-ring detection response message fed back by the intermediate node or the destination node in the current message transmission path based on the transmission path.
[0067] Another optional implementation of this embodiment is to receive a micro-ring detection response message fed back by an intermediate node or a destination node in the current message transmission path based on the current message transmission path.
[0068] S303: Determine the existence of micro-loops in the current message transmission path according to the micro-loop detection response message.
[0069] The micro-ring existence request refers to whether a micro-ring exists in the current message transmission path.
[0070] Optionally, in this embodiment, the micro-ring detection response message carries information about the existence of micro-rings in the current message transmission path.
[0071] An optional implementation of this embodiment is to parse the micro-ring detection response message and obtain the micro-ring existence status of the current message transmission path from the micro-ring detection response message.
[0072] Another optional implementation of this embodiment is to determine the existence of micro-rings in the current message transmission path according to the micro-ring identifier carried in the micro-ring detection response message.
[0073] S304, determining a target transmission mode of the message to be transmitted according to the existence of the micro-ring, and transmitting the message to be transmitted to the destination node using the target transmission mode.
[0074] Among them, the message to be transmitted refers to the message that needs to be transmitted. The message to be transmitted in this application can be an IPv6 message.
[0075] An optional implementation of the embodiment of the present application is that, if a micro-ring exists, a transmission method based on a routing list is used as the target transmission method of the message to be transmitted; wherein the routing list is located in the message to be transmitted. That is to say, if a micro-ring exists, in order to avoid the situation where the message to be transmitted is cyclically transmitted in the micro-ring, a routing list (i.e., Segment List) is inserted into the message to be transmitted, so that each node in the current message transmission path transmits the message to be transmitted to the destination node based on the routing list, thereby effectively avoiding the message transmission problem caused by the micro-ring. Figure 1 For example, the routing list (ie, Segment List) can be in the form of <2001:db8:3::, ..., 2001:db8:5::6>.
[0076] Another optional implementation of the embodiment of the present application is that if the micro-ring existence condition is that there is no micro-ring, the routing search mode is used as the target transmission mode of the message to be transmitted. That is to say, if the micro-ring existence condition is that there is no micro-ring, each node in the current message transmission path can transmit the message to be transmitted based on the normal transmission mode. The normal transmission mode is the routing search mode, that is, the message is transmitted to the next node based on the IP routing search mode.
[0077] The above-mentioned message transmission method sends a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path; receives a micro-ring detection response message fed back by an intermediate node or a destination node in the current message transmission path based on the micro-ring detection request message; determines the existence of micro-rings in the current message transmission path according to the micro-ring detection response message; determines the target transmission mode of the message to be transmitted according to the existence of the micro-ring, and transmits the message to be transmitted to the destination node using the target transmission mode. In the present application, a micro-ring detection request message can be sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path, and the existence of micro-rings in the current message transmission path can be determined based on the micro-ring detection response message fed back by the intermediate node or the destination node. Based on the existence of the micro-ring, the target transmission mode is determined, and the message to be transmitted is transmitted using the target transmission mode, which not only improves the message transmission efficiency, but also effectively avoids the problems of packet loss, delay jitter, and message disorder when the message is transmitted due to the presence of micro-rings in the message transmission path.
[0078] In one of the embodiments, in order to more accurately detect the existence of microrings, the microring detection request message in the above embodiment is used to instruct the intermediate node to determine the existence of microrings in the current message transmission path based on the receiving interface and output interface of the microring detection request message, and generate a microring detection response message when the microring existence status is that there is a microring, and add a microring identifier used to characterize the existence of a microring in the current message transmission path in the microring detection response message. Among them, the receiving interface refers to the interface of the intermediate node for receiving the microring detection request message. The output interface refers to the interface for forwarding the microring detection request message to the next node. Specifically, after the intermediate node receives the microring detection request message, it forwards the microring detection request message to the output interface of the next node based on the routing search method. If the output interface is the same as the receiving interface for receiving the microring detection request message, it means that the previous node and the next node of the intermediate node are the same node, which means that the intermediate node has a microring. The intermediate node generates a micro-ring detection response message, adds a micro-ring identifier used to indicate that a micro-ring exists in the current message transmission path, and sends the micro-ring detection response message to the source node.
[0079] Optionally, the micro-ring detection response message also carries a micro-ring node identifier, wherein the micro-ring node identifier is used to indicate the identity identifier of the intermediate node where the micro-ring exists. The micro-ring node identifier may be an address field, which is used to record the micro-ring node address corresponding to the destination node address (i.e., the address of the intermediate node where the micro-ring exists). This facilitates rapid location of the node where the micro-ring exists in the current message transmission path.
[0080] On the basis of the above embodiment, when the intermediate node determines that the micro-ring does not exist, it sends a micro-ring detection request message to the next node in the current message transmission path according to the output interface. That is, when the intermediate node determines that there is no micro-ring, it uses a routing search method to find the output interface and sends the micro-ring detection request message to the next node. The next node can be an intermediate node or a destination node.
[0081] In this embodiment, the intermediate node can determine whether the previous node and the next node are the same node based on the receiving interface and the output interface. If they are the same node, it is determined that the intermediate node has a micro-ring. If they are not the same node, it is determined that the intermediate node does not have a micro-ring, and according to the existence of the micro-ring, a corresponding micro-ring identifier is added to the current message transmission path. For example, if there is a micro-ring, the micro-ring identifier is 0, and if there is no micro-ring, the micro-ring identifier is 1.
[0082] In one of the embodiments, if the destination node receives a microring detection request message, the microring detection request message is also used to instruct the destination node to generate a microring detection response message after receiving the microring detection request message, and add a microring identifier used to indicate that there is no microring in the current message transmission path in the microring detection response message. That is to say, when the destination node receives the microring detection request message, it indicates that there is no microring in the current message transmission path. After receiving the microring detection request message, the destination node can directly generate a microring detection response message, add a microring identifier used to indicate that there is no microring in the current message transmission path in the microring detection response message, and send the microring detection response message to the source node.
[0083] In this embodiment, the process of the destination node determining whether a micro-ring exists in the current message transmission path is saved. After receiving the micro-ring detection request message, a micro-ring detection response message can be directly generated, and a micro-ring identifier for characterizing that no micro-ring exists in the current message transmission path is added to the micro-ring detection response message, and the micro-ring detection response message is sent to the source node, which can effectively improve the feedback efficiency of the micro-ring detection response message.
[0084] In one embodiment, the micro-ring identifier may be configured in an extension field, and the extension field also includes a micro-ring node identifier. Figure 4As shown, the micro-ring detection request message and the micro-ring detection response message can both be empty payload messages, for example, empty payload IPv6 messages. The extension field can be a field in the DOH extension header, such as Figure 4 As shown, the extended fields include:
[0085] Next Header: used to indicate the type of the next message header;
[0086] Hdr Ext Len: used to indicate the length of the extended header;
[0087] Option Type: used to indicate the option type. The option type is micro-ring detection message.
[0088] Option Len: used to indicate the length of the micro-ring detection message header;
[0089] DB (Detection Behavior): used to indicate the message type. For example, 1 indicates a micro-ring detection request message, and 0 indicates a micro-ring detection response message.
[0090] Diag ID: used to indicate the micro-ring node identifier, used to indicate the identity of the intermediate node where the micro-ring exists, which can be the intermediate node address;
[0091] F (Flag): used to indicate the micro-loop identification. For example, if it is 00, it means that there is a micro-loop in the current message transmission path; if it is 01, it means that there is no micro-loop in the current message transmission path;
[0092] Rsv: Reserved field.
[0093] In this embodiment, by designing the extended field, the configuration of matters related to the detection message can be realized without making major improvements to the existing message format, without occupying too many message resources. Based on the extended field, it is not only convenient to confirm the existence of micro-rings in the current message transmission path, but also convenient for users to quickly locate micro-ring nodes and reduce operation and maintenance costs.
[0094] In one embodiment, in order to confirm the timing of sending the micro-ring detection request message, Figure 5 As shown, an optional implementation of S301 includes:
[0095] S501, after the message transmission path of the message to be transmitted is switched from the original message transmission path to the current message transmission path, start a timer.
[0096] The original message transmission path refers to the message transmission path before the current message transmission path. Figure 1As shown in FIG. 1 , when a failure is detected in the link between the intermediate node B and the destination node C, the message transmission path is switched from the original message transmission path (i.e., path A->B->C) to the backup message transmission path ( Figure 1 In this case, the original message transmission path is the original message transmission path. The backup message transmission path is the current message transmission path. Figure 2 As shown in Figure 1, when the source node A detects that the link failure between the intermediate node B and the destination node C is restored, the message transmission path is replaced by the backup message transmission path ( Figure 1 The TI-LFA backup path in the MAC address table (i.e., the path A->D->E->F->C) is switched to the original message transmission path (i.e., the path A->B->C) to transmit messages. In this case, the original message transmission path is the current message transmission path. The backup message transmission path is the original message transmission path.
[0097] Optionally, in this embodiment, when it is detected that the message transmission path of the message to be transmitted is switched from the original message transmission path to the current message transmission path, a timer is started to count. Figure 1 As shown, when it is detected that the message transmission path of the message to be transmitted is switched from the original message transmission path to the backup message transmission path, the timer is started to count. Figure 2 As shown, when it is detected that the message transmission path of the message to be transmitted is switched from the backup message transmission path to the original message transmission path, a timer is started to count.
[0098] S502: When the timing duration of the timer reaches the anti-microloop timing period, a microloop detection request message is sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path.
[0099] The anti-microloop timing period refers to a pre-set time period for avoiding the occurrence of microloop situations, and can be determined based on the routing convergence time.
[0100] Optionally, when the timing duration of the timer reaches the anti-microring timing period, a microring detection request message is sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path.
[0101] Optionally, in this embodiment, when the micro-ring exists, the control timer is re-timed, and the operation of sending a micro-ring detection request message to the destination node in the current message transmission path is returned to be executed. That is, when the timing duration of the timer reaches the anti-micro-ring timing period, the micro-ring detection request message is sent to the destination node in the current message transmission path through the intermediate node in the current message transmission path.
[0102] Based on the above embodiment, the extension field also includes a field for recording the number of timer extensions (re-timing once is equal to extending once), such as Figure 4 As shown, the Cycle field in the extended field is used to indicate the number of times the timer is extended.
[0103] In this embodiment, after the message transmission path of the message to be transmitted is switched from the original message transmission path to the current message transmission path, the timer is started. When the timing duration of the timer reaches the anti-microring timing period, a microring detection request message is sent to the destination node in the current message transmission path through the intermediate node in the current message transmission path. Based on this embodiment, not only can the timing of sending the microring detection request message be determined in time, but also the timer can be automatically started. In the case of the existence of a microring, the timer is controlled to re-time, and the operation of sending the microring detection request message to the destination node in the current message transmission path is returned to execute, so as to avoid the inability to completely avoid the influence of the microring due to improper artificial setting of the duration.
[0104] In one embodiment, if Figure 6 As shown, an optional implementation of a message transmission method includes:
[0105] S601, after the message transmission path of the message to be transmitted is switched from the original message transmission path to the current message transmission path, start a timer.
[0106] S602: When the timing duration of the timer reaches the anti-microloop timing period, a microloop detection request message is sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path.
[0107] Among them, the micro-ring detection request message is used to instruct the intermediate node to determine the existence of micro-rings in the current message transmission path based on the receiving interface and the output interface of the micro-ring detection request message, and to generate a micro-ring detection response message when the micro-ring existence is that there is a micro-ring, and to add a micro-ring identifier used to characterize the existence of a micro-ring in the current message transmission path to the micro-ring detection response message. The micro-ring detection request message is also used to instruct the destination node to generate a micro-ring detection response message after receiving the micro-ring detection request message, and to add a micro-ring identifier used to characterize the absence of a micro-ring in the current message transmission path to the micro-ring detection response message. The micro-ring detection request message is also used to instruct the intermediate node to send a micro-ring detection request to the next node in the current message transmission path according to the output interface when it is determined that the micro-ring existence is that there is no micro-ring.
[0108] S603, receiving a micro-ring detection response message fed back by an intermediate node or a destination node in the current message transmission path based on the micro-ring detection request message.
[0109] S604, determining the existence of a micro-ring in the current message transmission path according to the micro-ring identifier in the micro-ring detection response message. The micro-ring identifier is configured in an extension field of the micro-ring detection response message. The extension field also includes a micro-ring node identifier, which is used to indicate the identity of an intermediate node where a micro-ring exists.
[0110] S605: If the micro-ring exists, a transmission mode based on the routing list is used as a target transmission mode of the message to be transmitted, wherein the routing list is located in the message to be transmitted.
[0111] S606, when the micro-ring existence condition is that a micro-ring exists, the control timer is reset, and the operation of sending a micro-ring detection request message to a destination node in the current message transmission path is returned to be executed.
[0112] S607: If the micro-ring existence condition is that there is no micro-ring, the routing search mode is used as the target transmission mode of the message to be transmitted.
[0113] S608, transmitting the message to be transmitted to the destination node in a target transmission mode.
[0114] In this embodiment, a micro-ring detection request message is sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path; a micro-ring detection response message is received from an intermediate node or a destination node in the current message transmission path based on the micro-ring detection request message feedback; the existence of micro-rings in the current message transmission path is determined according to the micro-ring detection response message; the target transmission mode of the message to be transmitted is determined according to the existence of the micro-ring, and the message to be transmitted is transmitted to the destination node using the target transmission mode. In this application, a micro-ring detection request message can be sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path, and the existence of micro-rings in the current message transmission path can be determined based on the micro-ring detection response message fed back by the intermediate node or the destination node. Based on the existence of the micro-ring, the target transmission mode is determined, and the message to be transmitted is transmitted using the target transmission mode, which not only improves the message transmission efficiency, but also effectively avoids the problems of packet loss, delay jitter, and message disorder when the message transmission occurs when there is a micro-ring in the message transmission path.
[0115] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0116] Based on the same inventive concept, the embodiment of the present application also provides a message transmission device for implementing the message transmission method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more message transmission device embodiments provided below can refer to the limitations on the message transmission method above, and will not be repeated here.
[0117] In one embodiment, by Figure 7 FIG. 2 shows a structural block diagram of a message transmission device in an embodiment. Figure 7 As shown, a message transmission device 1 is provided, the device comprising: an acquisition module 10, a first determination module 20 and a calling module 30, wherein:
[0118] The sending module 10 is used to send a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path.
[0119] The receiving module 20 is used to receive a micro-ring detection response message fed back by an intermediate node or a destination node in the current message transmission path based on a micro-ring detection request message.
[0120] The first determination module 30 is used to determine the existence of a micro-ring in the current message transmission path according to the micro-ring detection response message.
[0121] The second determining module 40 is used to determine the target transmission mode of the message to be transmitted according to the existence of the micro-ring, and transmit the message to be transmitted to the destination node using the target transmission mode.
[0122] In one embodiment, the Figure 7The micro-ring detection request message in the sending module 10 is used to instruct the intermediate node to determine the existence of the micro-ring in the current message transmission path based on the receiving interface and the output interface of the micro-ring detection request message, and to generate a micro-ring detection response message when the micro-ring existence is a micro-ring, and to add a micro-ring identifier used to characterize the existence of the micro-ring in the current message transmission path in the micro-ring detection response message. The micro-ring identifier is configured in the extension field of the micro-ring detection response message. The micro-ring detection response message also carries a micro-ring node identifier; the micro-ring node identifier is used to indicate the identity identifier of the intermediate node where the micro-ring exists.
[0123] In one embodiment, the Figure 7 The micro-ring detection request message in the sending module 10 is used to instruct the destination node to generate a micro-ring detection response message after receiving the micro-ring detection request message, and add a micro-ring identifier in the micro-ring detection response message to indicate that there is no micro-ring in the current message transmission path.
[0124] In one embodiment, the Figure 7 The micro-ring detection request message in the sending module 10 is also used to instruct the intermediate node to send a micro-ring detection request to the next node in the current message transmission path according to the output interface when determining that the micro-ring existence condition is that there is no micro-ring.
[0125] In one embodiment, the Figure 7 The second determining module 40 is further specifically configured to:
[0126] If the micro-loop exists, a transmission mode based on a routing list is used as a target transmission mode of the message to be transmitted; wherein the routing list is located in the message to be transmitted;
[0127] If the micro-ring existence condition is that there is no micro-ring, the routing search mode is used as the target transmission mode of the message to be transmitted.
[0128] In one embodiment, the Figure 7 The sending module 10 is also specifically used for:
[0129] After the message transmission path of the message to be transmitted is switched from the original message transmission path to the current message transmission path, starting the timer;
[0130] When the timing duration of the timer reaches the anti-microring timing period, a microring detection request message is sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path.
[0131] Based on the above embodiment, a message transmission device 1 further includes:
[0132] The control module is used to control the timer to re-time when the micro-ring exists, and return to execute the operation of sending a micro-ring detection request message to the destination node in the current message transmission path.
[0133] Each module in the above-mentioned message transmission device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0134] In one embodiment, a computer device is provided. The computer device may be a platform side, and its internal structure diagram may be as shown in FIG. Figure 8 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store information related to detection messages. The network interface of the computer device is used to communicate with an external user side through a network connection. When the computer program is executed by the processor, a message transmission method is implemented.
[0135] Those skilled in the art will understand that Figure 8 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. Specifically, the computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0136] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0137] Sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path;
[0138] Receiving a micro-ring detection response message fed back by an intermediate node or a destination node in a current message transmission path based on a micro-ring detection request message;
[0139] Determine the existence of micro-loops in the current message transmission path according to the micro-loop detection response message;
[0140] According to the existence of micro-rings, a target transmission mode of the message to be transmitted is determined, and the message to be transmitted is transmitted to the destination node using the target transmission mode.
[0141] In one embodiment, the processor further implements the following steps when executing the computer program: the micro-ring detection request message is used to instruct the intermediate node to determine the existence of a micro-ring in the current message transmission path based on the receiving interface and the output interface of the micro-ring detection request message, and to generate a micro-ring detection response message when the micro-ring existence status indicates that a micro-ring exists, and to add a micro-ring identifier used to characterize the existence of a micro-ring in the current message transmission path to the micro-ring detection response message.
[0142] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the micro-ring detection request message is also used to instruct the destination node to generate a micro-ring detection response message after receiving the micro-ring detection request message, and to add a micro-ring identifier in the micro-ring detection response message to indicate that there is no micro-ring in the current message transmission path.
[0143] In one embodiment, when the processor executes the computer program, the following steps are further implemented: the micro-ring identifier is configured in an extension field of the micro-ring detection response message.
[0144] In one embodiment, when the processor executes the computer program, the following steps are further implemented: the micro-ring detection response message also carries a micro-ring node identifier; wherein the micro-ring node identifier is used to indicate the identity identifier of an intermediate node where a micro-ring exists.
[0145] In one embodiment, the processor further implements the following steps when executing the computer program: the microring detection request message is also used to instruct the intermediate node to send a microring detection request to the next node in the current message transmission path according to the output interface when determining that the microring existence condition is that there is no microring.
[0146] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining a target transmission mode according to the existence of the micro-ring, including:
[0147] If the micro-loop exists, a transmission mode based on a routing list is used as a target transmission mode of the message to be transmitted; wherein the routing list is located in the message to be transmitted;
[0148] If the micro-ring existence condition is that there is no micro-ring, the routing search mode is used as the target transmission mode of the message to be transmitted.
[0149] In one embodiment, when the processor executes the computer program, the following steps are further implemented: sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path, including:
[0150] After the message transmission path of the message to be transmitted is switched from the original message transmission path to the current message transmission path, starting the timer;
[0151] When the timing duration of the timer reaches the anti-microring timing period, a microring detection request message is sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path.
[0152] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0153] When the micro-ring existence condition is that a micro-ring exists, the control timer is reset, and the operation of sending a micro-ring detection request message to a destination node in the current message transmission path is returned to be executed.
[0154] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0155] Sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path;
[0156] Receiving a micro-ring detection response message fed back by an intermediate node or a destination node in a current message transmission path based on a micro-ring detection request message;
[0157] Determine the existence of micro-loops in the current message transmission path according to the micro-loop detection response message;
[0158] According to the existence of micro-rings, a target transmission mode of the message to be transmitted is determined, and the message to be transmitted is transmitted to the destination node using the target transmission mode.
[0159] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the micro-ring detection request message is used to instruct the intermediate node to determine the existence of micro-rings in the current message transmission path based on the receiving interface and the output interface of the micro-ring detection request message, and to generate a micro-ring detection response message when the micro-ring existence status indicates that a micro-ring exists, and to add a micro-ring identifier used to characterize the existence of a micro-ring in the current message transmission path to the micro-ring detection response message.
[0160] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the micro-ring detection request message is also used to instruct the destination node to generate a micro-ring detection response message after receiving the micro-ring detection request message, and to add a micro-ring identifier in the micro-ring detection response message to indicate that there is no micro-ring in the current message transmission path.
[0161] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the micro-ring identifier is configured in an extension field of the micro-ring detection response message.
[0162] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the micro-ring detection response message also carries a micro-ring node identifier; wherein the micro-ring node identifier is used to indicate the identity identifier of an intermediate node where a micro-ring exists.
[0163] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the micro-ring detection request message is also used to instruct the intermediate node to send a micro-ring detection request to the next node in the current message transmission path according to the output interface when determining that the micro-ring existence condition is that there is no micro-ring.
[0164] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the target transmission mode according to the existence of the micro-ring, including:
[0165] If the micro-loop exists, a transmission mode based on a routing list is used as a target transmission mode of the message to be transmitted; wherein the routing list is located in the message to be transmitted;
[0166] If the micro-ring existence condition is that there is no micro-ring, the routing search mode is used as the target transmission mode of the message to be transmitted.
[0167] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path, including:
[0168] After the message transmission path of the message to be transmitted is switched from the original message transmission path to the current message transmission path, starting the timer;
[0169] When the timing duration of the timer reaches the anti-microring timing period, a microring detection request message is sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path.
[0170] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0171] When the micro-ring existence condition is that a micro-ring exists, the control timer is reset, and the operation of sending a micro-ring detection request message to a destination node in the current message transmission path is returned to be executed.
[0172] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0173] Sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path;
[0174] Receiving a micro-ring detection response message fed back by an intermediate node or a destination node in a current message transmission path based on a micro-ring detection request message;
[0175] Determine the existence of micro-loops in the current message transmission path according to the micro-loop detection response message;
[0176] According to the existence of micro-rings, a target transmission mode of the message to be transmitted is determined, and the message to be transmitted is transmitted to the destination node using the target transmission mode.
[0177] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the micro-ring detection request message is used to instruct the intermediate node to determine the existence of micro-rings in the current message transmission path based on the receiving interface and the output interface of the micro-ring detection request message, and to generate a micro-ring detection response message when the micro-ring existence status indicates that a micro-ring exists, and to add a micro-ring identifier used to characterize the existence of a micro-ring in the current message transmission path to the micro-ring detection response message.
[0178] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the micro-ring detection request message is also used to instruct the destination node to generate a micro-ring detection response message after receiving the micro-ring detection request message, and to add a micro-ring identifier in the micro-ring detection response message to indicate that there is no micro-ring in the current message transmission path.
[0179] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the micro-ring identifier is configured in an extension field of the micro-ring detection response message.
[0180] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the micro-ring detection response message also carries a micro-ring node identifier; wherein the micro-ring node identifier is used to indicate the identity identifier of an intermediate node where a micro-ring exists.
[0181] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the micro-ring detection request message is also used to instruct the intermediate node to send a micro-ring detection request to the next node in the current message transmission path according to the output interface when determining that the micro-ring existence condition is that there is no micro-ring.
[0182] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining the target transmission mode according to the existence of the micro-ring, including:
[0183] If the micro-loop exists, a transmission mode based on a routing list is used as a target transmission mode of the message to be transmitted; wherein the routing list is located in the message to be transmitted;
[0184] If the micro-ring existence condition is that there is no micro-ring, the routing search mode is used as the target transmission mode of the message to be transmitted.
[0185] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: sending a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path, including:
[0186] After the message transmission path of the message to be transmitted is switched from the original message transmission path to the current message transmission path, starting the timer;
[0187] When the timing duration of the timer reaches the anti-microring timing period, a microring detection request message is sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path.
[0188] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0189] When the micro-ring existence condition is that a micro-ring exists, the control timer is reset, and the operation of sending a micro-ring detection request message to a destination node in the current message transmission path is returned to be executed.
[0190] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0191] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0192] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A message transmission method, characterized in that: Applied to a source node in a current message transmission path, the method comprises: Sending a microring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path; Receiving a micro-ring detection response message fed back by an intermediate node or a destination node in the current message transmission path based on the micro-ring detection request message; Determining the existence of a microring in the current message transmission path according to the microring detection response message; According to the existence of the micro-ring, a target transmission mode of the message to be transmitted is determined, and the message to be transmitted is transmitted to the destination node using the target transmission mode.
2. The method according to claim 1, characterized in that: The microring detection request message is used to instruct the intermediate node to determine the existence of a microring in the current message transmission path based on the receiving interface and the output interface for receiving the microring detection request message, and to generate a microring detection response message when the microring existence status indicates that a microring exists, and to add a microring identifier for characterizing the existence of a microring in the current message transmission path in the microring detection response message.
3. The method according to claim 1, characterized in that The microring detection request message is also used to instruct the destination node to generate a microring detection response message after receiving the microring detection request message, and to add a microring identifier used to indicate that there is no microring in the current message transmission path in the microring detection response message.
4. The method according to claim 2 or 3, characterized in that: The micro-ring identifier is configured in an extension field of the micro-ring detection response message.
5. The method according to claim 2, characterized in that: The micro-ring detection response message also carries a micro-ring node identifier, wherein the micro-ring node identifier is used to indicate the identity identifier of an intermediate node where a micro-ring exists.
6. The method according to claim 2, characterized in that The microring detection request message is also used to instruct the intermediate node to send the microring detection request to the next node in the current message transmission path according to the output interface when determining that the microring existence condition is that there is no microring.
7. The method according to claim 1, characterized in that The determining of the target transmission mode according to the existence of the micro-ring includes: If the micro-ring exists, a transmission mode based on a routing list is used as a target transmission mode of the message to be transmitted; wherein the routing list is located in the message to be transmitted; If the micro-ring existence condition is that there is no micro-ring, the routing search mode is used as the target transmission mode of the message to be transmitted.
8. The method according to claim 1, characterized in that The sending of a microring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path includes: After the message transmission path of the message to be transmitted is switched from the original message transmission path to the current message transmission path, starting a timer; When the timing duration of the timer reaches the anti-microring timing period, a microring detection request message is sent to a destination node in the current message transmission path through an intermediate node in the current message transmission path.
9. The method according to claim 8, characterized in that The method further comprises: When the micro-ring existence condition is that a micro-ring exists, the timer is controlled to re-time, and the operation of sending a micro-ring detection request message to a destination node in the current message transmission path is returned to be executed.
10. A message transmission device, characterized in that: A source node configured in a current message transmission path, the device comprising: A sending module, used to send a micro-ring detection request message to a destination node in the current message transmission path through an intermediate node in the current message transmission path; A receiving module, configured to receive a micro-ring detection response message fed back by an intermediate node or a destination node in the current message transmission path based on the micro-ring detection request message; A first determination module, configured to determine the existence of a micro-ring in the current message transmission path according to the micro-ring detection response message; The second determining module is used to determine a target transmission mode of the message to be transmitted according to the existence of the micro-ring, and transmit the message to be transmitted to the destination node by using the target transmission mode.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
