Message transmission method and device

By dynamically selecting the transmission interface with the lowest congestion level in the multi-die chip system as the destination node of the message, the problem of unbalanced traffic on the transmission interface in the multi-die chip system is solved, and more efficient bandwidth utilization and routing stability are achieved.

CN118540274APending Publication Date: 2024-08-23HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310188239.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In a multi-die chip system, due to the imbalance of different business traffic, the traffic between transmission interfaces is unbalanced and the bandwidth cannot be fully utilized.

Method used

By obtaining the congestion information of the transmission interface, the transmission interface with the lowest congestion level is dynamically selected as the destination node of the message, thereby achieving traffic balance between transmission interfaces and avoiding the routing livelock problem caused by frequent changes to the destination node.

Benefits of technology

It effectively allocates traffic between transmission interfaces, improves bandwidth utilization, and avoids problems of traffic imbalance and routing livelock.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540274A
    Figure CN118540274A
Patent Text Reader

Abstract

The embodiment of the invention discloses a message transmission method and device, relates to the technical field of chips, and can balance traffic between transmission interfaces. The method comprises the following steps: firstly, obtaining target information, the target information comprising congestion information of a plurality of transmission interfaces, and the congestion information being used for indicating congestion states of the transmission interfaces; and then determining a destination node of the message from a plurality of equivalent destination nodes of the message according to the target information, wherein the plurality of transmission interfaces comprise the plurality of equivalent destination nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of chip technology, and in particular to a message transmission method and device. Background Art

[0002] As technology develops, computing power requirements increase. To cope with the increase in computing power requirements, multi-die chip systems and multi-chip systems came into being.

[0003] In a multi-die chip system, multiple dies can transmit messages to each other. A multi-die chip system includes multiple interfaces. Multiple transmission interfaces can reach the same destination. Transmission interfaces can be called equivalent interfaces. For example, if transmission interface 1, transmission interface 2, and transmission interface 3 can all transmit messages from source node 1 to destination node 1, then transmission interface 1, transmission interface 2, and transmission interface 3 are equivalent interfaces.

[0004] In the related art, due to the imbalance of traffic between different services, the chip system still has traffic imbalance between multiple transmission interfaces, even if they are equivalent interfaces, and the transmission interface bandwidth cannot be fully utilized. Therefore, how to evenly allocate the traffic between transmission interfaces is one of the problems that technicians in this field need to solve urgently. Summary of the invention

[0005] The embodiment of the present application provides a message transmission method and device, which can balance the traffic between transmission interfaces. To achieve the above purpose, the embodiment of the present application adopts the following technical solutions:

[0006] In a first aspect, the present application implements a method for message transmission, the method comprising: first acquiring target information, the target information comprising congestion information of multiple transmission interfaces, the congestion information being used to indicate the congestion status of the transmission interfaces; then determining a destination node of the message from multiple equivalent destination nodes of the message according to the target information, the multiple transmission interfaces comprising the multiple equivalent destination nodes.

[0007] It can be seen that the method provided in the embodiment of the present application can dynamically select a transmission interface from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface. Compared with using a fixed transmission interface as the destination node of the message, dynamically selecting a transmission interface from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface can divert the message from the transmission interface with a higher congestion level that carries more traffic to the transmission interface with a lower congestion level that carries less traffic, thereby balancing the traffic between the transmission interfaces.

[0008] For example, transmission interface 1, transmission interface 2 and transmission interface 3 can all transmit messages from source node 1, source node 2 and source node 3 to destination node 1. Source node 1 uses transmission interface 1 to transmit messages, source node 2 uses transmission interface 2 to transmit messages, and source node 3 uses transmission interface 3 to transmit messages. In this way, if source node 1 sends 200 messages, source node 2 sends 100 messages, and source node 3 does not send messages, transmission interface 1 and transmission interface 2 need to carry the traffic of 200 messages and 100 messages respectively, and transmission interface 3 does not carry traffic, which will cause the traffic imbalance between transmission interface 1, transmission interface 2 and transmission interface 3.

[0009] However, in the embodiment of the present application, source node 1, source node 2 and source node 3 do not use a fixed transmission interface, but dynamically select a transmission interface. In this way, if source node 1 sends 200 messages and source node 2 sends 100 messages, the messages of source node 1 carried by transmission interface 1 will be diverted to transmission interface 3, thereby balancing the traffic between transmission interface 1, transmission interface 2 and transmission interface 3.

[0010] In a possible implementation manner, a first equivalent destination node may be determined as the destination node of the message according to the target information, and the first equivalent destination node is the destination node with the lowest congestion level among multiple equivalent destination nodes of the message.

[0011] It can be seen that the method provided in the embodiment of the present application can dynamically select the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface. Compared with using a fixed transmission interface as the destination node of the message, dynamically selecting the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface can make the message be diverted from the transmission interface with a higher congestion level that carries more traffic to the transmission interface with a lower congestion level that carries less traffic, thereby balancing the traffic between the transmission interfaces.

[0012] In a possible implementation, the first equivalent destination node can be determined as the destination node of the message based on the target information, the first equivalent destination node is the destination node with the lowest congestion level among the available equivalent destination nodes of the message, and the available equivalent destination node is the equivalent destination node among the multiple equivalent destination nodes whose required number of hops is less than or equal to the available number of hops.

[0013] It should be noted that the message can only go around the destination node but can never reach the destination node, which is a livelock. Since the method provided by the embodiment of the present application can dynamically select the transmission interface as the destination node. In this way, when the congestion state of each transmission interface changes frequently, the destination node may be frequently changed, resulting in a routing livelock problem. For this reason, the method provided by the embodiment of the present application introduces the available hop count when dynamically selecting the destination node, thereby avoiding the routing livelock problem caused by frequent changes in the destination node.

[0014] In a possible implementation manner, when a congestion state of a first transmission interface changes, the congestion state of the first transmission interface is acquired, where the first transmission interface is any one of the multiple transmission interfaces.

[0015] It can be seen that the method provided in the embodiment of the present application can obtain the congestion status of the transmission interface when the congestion status of the transmission interface changes, and then dynamically select the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface. Compared with using a fixed transmission interface as the destination node of the message, dynamically selecting the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface can divert the message from the transmission interface with a higher congestion level that carries more traffic to the transmission interface with a lower congestion level that carries less traffic, thereby balancing the traffic between the transmission interfaces.

[0016] In a possible implementation manner, target information may be acquired periodically.

[0017] It is understandable that when the congestion state of the transmission interface changes, the congestion state of the transmission interface is obtained. When the congestion state of the transmission interface changes frequently, the congestion state of the transmission interface will be frequently obtained, which will cause a waste of network resources. To this end, the target information can be periodically obtained to prevent the congestion state of the transmission interface from being frequently obtained, causing a waste of network resources.

[0018] In a possible implementation manner, a cache queue utilization rate of a first transmission interface is obtained, where the first transmission interface is any transmission interface among the multiple transmission interfaces; and a congestion state of the first transmission interface is determined according to the cache queue utilization rate.

[0019] It can be seen that the method provided in the embodiment of the present application can obtain the cache queue utilization of the transmission interface, and then determine the congestion state of the transmission interface according to the cache queue utilization of the transmission interface, and then dynamically select the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion state of the transmission interface. Compared with using a fixed transmission interface as the destination node of the message, dynamically selecting the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion state of the transmission interface can divert the message from the transmission interface with a higher congestion level that carries more traffic to the transmission interface with a lower congestion level that carries less traffic, thereby balancing the traffic between the transmission interfaces.

[0020] In a possible implementation, a cache queue utilization of a first transmission interface and status information of the first transmission interface are obtained, where the first transmission interface is any one of the multiple transmission interfaces; a congestion status of the first transmission interface is determined based on the cache queue utilization, and the status information is used to characterize changes in the cache queue utilization.

[0021] It is understandable that determining the congestion state (congestion level) of the transmission interface only by the cache queue utilization of the transmission interface may cause the congestion state of the transmission interface to oscillate and cause traffic fluctuations. To this end, the embodiment of the present application introduces state information to determine whether the cache queue utilization is rising or falling, and then comprehensively determines the congestion state of the transmission interface based on the cache queue utilization of the transmission interface and the state information of the transmission interface, thereby avoiding too frequent congestion state (congestion level) oscillations causing traffic fluctuations.

[0022] For example, the state information of the transmission interface can be used to determine whether the buffer queue utilization of the transmission interface is increasing or decreasing. Then, when the buffer queue utilization of the transmission interface increases, the increasing congestion threshold is used to determine the congestion state of the transmission interface. When the buffer queue utilization of the transmission interface decreases, the decreasing congestion threshold is used to determine the congestion state of the transmission interface.

[0023] In a second aspect, the present application implements a message transmission device, which includes: an acquisition unit and a processing unit. The acquisition unit is used to acquire target information, the target information includes congestion information of multiple transmission interfaces, and the congestion information is used to indicate the congestion status of the transmission interface. The processing unit is used to determine the destination node of the message from multiple equivalent destination nodes of the message according to the target information, and the multiple transmission interfaces include the multiple equivalent destination nodes.

[0024] In a possible implementation, the processing unit is specifically used to: determine a first equivalent destination node as the destination node of the message according to the target information, the first equivalent destination node being the destination node with the lowest congestion level among multiple equivalent destination nodes of the message.

[0025] In a possible implementation, the processing unit is specifically used to: determine, based on the target information, a first equivalent destination node as the destination node of the message, the first equivalent destination node being the destination node with the lowest congestion level among the available equivalent destination nodes of the message, and the available equivalent destination node being an equivalent destination node among the multiple equivalent destination nodes whose required number of hops is less than or equal to the available number of hops.

[0026] In a possible implementation manner, the acquisition unit is specifically used to: when the congestion state of the first transmission interface changes, acquire the congestion state of the first transmission interface, where the first transmission interface is any transmission interface among the multiple transmission interfaces.

[0027] In a possible implementation, the acquisition unit is specifically used to: acquire a cache queue utilization of a first transmission interface, where the first transmission interface is any transmission interface among the multiple transmission interfaces; and determine a congestion state of the first transmission interface according to the cache queue utilization.

[0028] In a third aspect, an embodiment of the present application further provides a message transmission device, which includes: at least one processor, when the at least one processor executes program code or instructions, it implements the method described in the above first aspect or any possible implementation method thereof.

[0029] Optionally, the message transmission device may further include at least one memory, and the at least one memory is used to store the program code or instruction.

[0030] In a fourth aspect, an embodiment of the present application further provides a chip, comprising: an input interface, an output interface, and at least one processor. Optionally, the chip further comprises a memory. The at least one processor is used to execute the code in the memory, and when the at least one processor executes the code, the chip implements the method described in the first aspect or any possible implementation thereof.

[0031] Optionally, the above chip may also be an integrated circuit.

[0032] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium for storing a computer program, wherein the computer program includes methods for implementing the method described in the above-mentioned first aspect or any possible implementation thereof.

[0033] In a sixth aspect, an embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to implement the method described in the first aspect or any possible implementation thereof.

[0034] The message transmission device, computer storage medium, computer program product and chip provided in this embodiment are all used to execute the method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the method provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1 A schematic diagram of the structure of a chip system provided in an embodiment of the present application;

[0037] Figure 2 A schematic diagram of the structure of another chip system provided in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of a flow chart of a message transmission method provided in an embodiment of the present application;

[0039] Figure 4 A schematic diagram of the corresponding relationship between the threshold and the congestion level provided in the embodiment of the present application;

[0040] Figure 5 A schematic diagram of a message transmission process provided in an embodiment of the present application;

[0041] Figure 6 A schematic diagram of another message transmission process provided in an embodiment of the present application;

[0042] Figure 7 A schematic diagram of another message transmission process provided in an embodiment of the present application;

[0043] Figure 8 A schematic diagram of another message transmission process provided in an embodiment of the present application;

[0044] Fig. 9 A schematic diagram of another message transmission process provided in an embodiment of the present application;

[0045] Fig.10 A schematic diagram of the structure of a message transmission device provided in an embodiment of the present application;

[0046] Fig.11 A schematic diagram of the structure of a chip provided in an embodiment of the present application;

[0047] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.

[0049] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0050] The terms "first" and "second" and the like in the description and drawings of the embodiments of the present application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0051] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0052] It should be noted that in the description of the embodiments of the present application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as having priority or advantage over other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0053] In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more.

[0054] Equivalent interfaces: Transmission interfaces that can reach the same destination are called equivalent interfaces. For example, if transmission interface 1, transmission interface 2, and transmission interface 3 can all transmit packets from source node 1 to destination node 1, then transmission interface 1, transmission interface 2, and transmission interface 3 are equivalent interfaces.

[0055] Die: Bare crystal, also known as bare wafer, bare chip, grain or bare die, is a small piece of integrated circuit body made of semiconductor material, unpackaged. The established function of the integrated circuit is realized on this small piece of semiconductor.

[0056] Ring: A ring network topology.

[0057] Mesh: A mesh network topology.

[0058] Multi-Ring: A network topology consisting of multiple rings that are interconnected.

[0059] As technology develops, computing power requirements increase. To cope with the increase in computing power requirements, multi-die chip systems and multi-chip systems came into being.

[0060] In a multi-die chip system, multiple dies can transmit messages to each other. A multi-die chip system includes multiple interfaces. Multiple transmission interfaces can reach the same destination. Transmission interfaces can be called equivalent interfaces. For example, if transmission interface 1, transmission interface 2, and transmission interface 3 can all transmit messages from source node 1 to destination node 1, then transmission interface 1, transmission interface 2, and transmission interface 3 are equivalent interfaces.

[0061] In the related art, due to the imbalance of traffic of different services in the chip system, even though multiple transmission interfaces are equivalent interfaces, there will still be a problem of traffic imbalance between them, and the transmission interface bandwidth cannot be fully utilized.

[0062] To this end, the embodiment of the present application provides a message transmission method that can balance the traffic between transmission interfaces. The method is applicable to a chip system. Figure 1 A possible form of the chip system is shown.

[0063] like Figure 1 The chip system shown includes multiple dies, multiple transmission interfaces and multiple routing nodes.

[0064] Among them, multiple dies send messages to each other.

[0065] Routing nodes can forward messages sent by the die.

[0066] Multiple transmission interfaces can reach the same destination. The transmission interfaces can be called equivalent interfaces.

[0067] Figure 2 A possible form of the chip system is shown.

[0068] like Figure 2The chip system shown includes multiple chips, multiple transmission interfaces and multiple routing nodes.

[0069] Among them, multiple chips send messages to each other.

[0070] The plurality of chips may include computing nodes and storage nodes.

[0071] The computing nodes may include various types of intellectual property cores (IP), namely processor cores, such as central processing unit (CPU) core, application processor (AP) core, modem processor core, graphics processor (GPU) core, image signal processor (ISP) core, video codec core, digital signal processor (DSP) core, baseband processor core, and / or neural-network processing unit (NPU) core, etc.

[0072] Storage nodes may include various types of storage units, such as read-only memory (ROM), random access memory (RAM), dynamic random access memory (DRAM), and synchronous dynamic random access memory (SDRAM).

[0073] Figure 3 A message transmission method provided in an embodiment of the present application is shown, and the method includes:

[0074] S301. Obtain target information.

[0075] The target information includes congestion information of multiple transmission interfaces, and the congestion information is used to indicate the congestion status of the transmission interface.

[0076] Exemplarily, the routing node may receive target information sent by the transmission interface.

[0077] In a possible implementation, when the congestion state of a first transmission interface changes, the congestion state of the first transmission interface is acquired, where the first transmission interface is any one of the multiple transmission interfaces.

[0078] It can be seen that the method provided in the embodiment of the present application can obtain the congestion status of the transmission interface when the congestion status of the transmission interface changes, and then dynamically select the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface. Compared with using a fixed transmission interface as the destination node of the message, dynamically selecting the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface can divert the message from the transmission interface with a higher congestion level that carries more traffic to the transmission interface with a lower congestion level that carries less traffic, thereby balancing the traffic between the transmission interfaces.

[0079] In a possible implementation manner, target information may be acquired periodically.

[0080] It is understandable that when the congestion state of the transmission interface changes, the congestion state of the transmission interface is obtained. When the congestion state of the transmission interface changes frequently, the congestion state of the transmission interface will be frequently obtained, which will cause a waste of network resources. To this end, the target information can be periodically obtained to prevent the congestion state of the transmission interface from being frequently obtained, causing a waste of network resources.

[0081] In a possible implementation, the congestion information may be used to indicate a congestion level of a transmission interface.

[0082] Exemplarily, the congestion level of the transmission interface can be divided into L0, L1, L2, L3 and L4, and the congestion information can be used to indicate that the congestion level of the transmission interface is a certain level among L0, L1, L2, L3 and L4. The higher the congestion level of the transmission interface, the heavier the congestion degree of the transmission interface.

[0083] It should be noted that the above congestion information is expressed as congestion levels and is divided into L0, L1, L2, L3 and L4 only for the convenience of explanation. In practical applications, congestion information can also be expressed in other forms. More or fewer congestion levels are not limited to this embodiment of the present application.

[0084] In a possible implementation, a cache queue utilization rate of a first transmission interface may be obtained, where the first transmission interface is any one of the multiple transmission interfaces; and a congestion state of the first transmission interface may be determined according to the cache queue utilization rate.

[0085] Exemplarily, the congestion level of the first transmission interface can be determined based on a first threshold, a second threshold, a third threshold, a fourth threshold and a cache queue utilization of the first transmission interface. Among them, the first threshold < the second threshold < the third threshold < the fourth threshold. When the cache queue utilization of the first transmission interface is less than the first threshold, the congestion level of the first transmission interface is determined to be L0; when the cache queue utilization of the first transmission interface is greater than the first threshold and less than the second threshold, the congestion level of the first transmission interface is determined to be L1; when the cache queue utilization of the first transmission interface is greater than the second threshold and less than the third threshold, the congestion level of the first transmission interface is determined to be L2; when the cache queue utilization of the first transmission interface is greater than the third threshold and less than the fourth threshold, the congestion level of the first transmission interface is determined to be L3; when the cache queue utilization of the first transmission interface is greater than the fourth threshold, the congestion level of the first transmission interface is determined to be L4.

[0086] For example, the first threshold is 25%, the second threshold is 45%, the third threshold is 65%, and the fourth threshold is 85%. The cache queue utilization of the first transmission interface is 57%, and it can be seen that the cache queue utilization of the first transmission interface is greater than the second threshold and less than the third threshold. Then, the congestion level of the first transmission interface can be determined as L2 according to the cache queue utilization of the first transmission interface.

[0087] It should be noted that the number and values ​​of the above-mentioned first threshold, second threshold, third threshold and fourth threshold are only for the convenience of explanation. In practical applications, more or fewer thresholds may be included, or different thresholds may be used. The embodiments of the present application are not limited to this.

[0088] It can be seen that the method provided in the embodiment of the present application can obtain the cache queue utilization of the transmission interface, and then determine the congestion state of the transmission interface according to the cache queue utilization of the transmission interface, and then dynamically select the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion state of the transmission interface. Compared with using a fixed transmission interface as the destination node of the message, dynamically selecting the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion state of the transmission interface can divert the message from the transmission interface with a higher congestion level that carries more traffic to the transmission interface with a lower congestion level that carries less traffic, thereby balancing the traffic between the transmission interfaces.

[0089] In a possible implementation, a cache queue utilization rate of a first transmission interface and status information of the first transmission interface are obtained, where the first transmission interface is any one of the multiple transmission interfaces. The congestion status of the first transmission interface is determined based on the cache queue utilization rate, and the status information is used to characterize changes in the cache queue utilization rate.

[0090] Exemplarily, whether the cache queue utilization of the transmission interface is increasing or decreasing can be determined through the state information of the transmission interface. Then, when the cache queue utilization of the transmission interface increases, the increasing congestion threshold is used to determine the congestion state of the transmission interface. When the cache queue utilization of the transmission interface decreases, the decreasing congestion threshold is used to determine the congestion state of the transmission interface.

[0091] like Figure 4 As shown, a first rising threshold, a second rising threshold, a third rising threshold and a fourth rising threshold may be set. The first rising threshold < the second rising threshold < the third rising threshold < the fourth rising threshold. If the cache queue utilization of the transmission interface increases, when the cache queue utilization of the first transmission interface is less than the first rising threshold, the congestion level of the first transmission interface is determined to be L0, when the cache queue utilization of the first transmission interface is greater than the first rising threshold and less than the second rising threshold, the congestion level of the first transmission interface is determined to be L1, when the cache queue utilization of the first transmission interface is greater than the second rising threshold and less than the third rising threshold, the congestion level of the first transmission interface is determined to be L2, when the cache queue utilization of the first transmission interface is greater than the third rising threshold and less than the fourth rising threshold, the congestion level of the first transmission interface is determined to be L3, and when the cache queue utilization of the first transmission interface is greater than the fourth threshold, the congestion level of the first transmission interface is determined to be L4.

[0092] For example, the first rising threshold is 25%, the second rising threshold is 45%, the third rising threshold is 65%, and the fourth rising threshold is 85%. If the cache queue utilization of the first transmission interface increases, the cache queue utilization of the first transmission interface is 57%, it can be seen that the cache queue utilization of the first transmission interface is greater than the second rising threshold and less than the third rising threshold, then the congestion level of the first transmission interface can be determined as L2 according to the cache queue utilization of the first transmission interface.

[0093] It should be noted that the number and values ​​of the above-mentioned first rising threshold, second rising threshold, third rising threshold and fourth rising threshold are only for the convenience of explanation. In practical applications, more or fewer thresholds may be included, or different thresholds may be used. The embodiments of the present application are not limited to this.

[0094] like Figure 4As shown, a first decreasing threshold, a second decreasing threshold, a third decreasing threshold and a fourth decreasing threshold may be set. The first decreasing threshold < the second decreasing threshold < the third decreasing threshold < the fourth decreasing threshold. If the cache queue utilization of the transmission interface decreases, when the cache queue utilization of the first transmission interface is less than the first decreasing threshold, the congestion level of the first transmission interface is determined to be L0, when the cache queue utilization of the first transmission interface is greater than the first decreasing threshold and less than the second decreasing threshold, the congestion level of the first transmission interface is determined to be L1, when the cache queue utilization of the first transmission interface is greater than the second decreasing threshold and less than the third decreasing threshold, the congestion level of the first transmission interface is determined to be L2, when the cache queue utilization of the first transmission interface is greater than the third decreasing threshold and less than the fourth decreasing threshold, the congestion level of the first transmission interface is determined to be L3, and when the cache queue utilization of the first transmission interface is greater than the fourth threshold, the congestion level of the first transmission interface is determined to be L4.

[0095] For example, the first decreasing threshold is 15%, the second decreasing threshold is 35%, the third decreasing threshold is 55%, and the fourth decreasing threshold is 75%. If the cache queue utilization of the first transmission interface decreases, the cache queue utilization of the first transmission interface is 47%, and it can be seen that the cache queue utilization of the first transmission interface is greater than the second decreasing threshold and less than the third decreasing threshold, then the congestion level of the first transmission interface can be determined as L2 according to the cache queue utilization of the first transmission interface.

[0096] It should be noted that the number and values ​​of the above-mentioned first decreasing threshold, second decreasing threshold, third decreasing threshold and fourth decreasing threshold are only for the convenience of explanation. In practical applications, more or fewer thresholds may be included, or different thresholds may be adopted. The embodiments of the present application are not limited to this.

[0097] It is understandable that determining the congestion state (congestion level) of the transmission interface only by the cache queue utilization of the transmission interface may cause the congestion state of the transmission interface to oscillate and cause traffic fluctuations. To this end, the embodiment of the present application introduces state information to determine whether the cache queue utilization is rising or falling, and then comprehensively determines the congestion state of the transmission interface based on the cache queue utilization of the transmission interface and the state information of the transmission interface, thereby avoiding too frequent congestion state (congestion level) oscillations causing traffic fluctuations.

[0098] In a possible implementation, the target device may be decoded according to the access address space corresponding to the message, and then the equivalent destination node of the message may be searched according to the device mask of the decoded target device.

[0099] For example, the target device 1.0.0 may be decoded according to the access address space 128G-256G corresponding to the message, and then the device mask 0.3.F may be used to search for multiple reachable interface destination nodes 0.3 and 3.3.

[0100] S302: Determine a destination node of the message from a plurality of equivalent destination nodes of the message according to the target information.

[0101] Among them, the above-mentioned multiple transmission interfaces include the above-mentioned multiple equivalent destination nodes.

[0102] In a possible implementation, the first equivalent destination node may be determined as the destination node of the message according to the target information, and the first equivalent destination node is the destination node with the lowest congestion level among multiple equivalent destination nodes of the message.

[0103] For example, Figure 5 As shown, transmission interface 1, transmission interface 2, transmission interface 3 and transmission interface 4 are all equivalent destination nodes of the above message. The congestion level of transmission interface 1 is L1, the congestion level of transmission interface 2 is L2, the congestion level of transmission interface 3 is L2 and the congestion level of transmission interface 4 is L3. Since transmission interface 1 is the destination node with the lowest congestion level among the multiple equivalent destination nodes of the above message, that is, transmission interface 1 is the first equivalent destination node of the above message, it can be determined that transmission interface 1 is the destination node of the above message.

[0104] It can be seen that the method provided in the embodiment of the present application can dynamically select the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface. Compared with using a fixed transmission interface as the destination node of the message, dynamically selecting the transmission interface with the lowest congestion level from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface can make the message be diverted from the transmission interface with a higher congestion level that carries more traffic to the transmission interface with a lower congestion level that carries less traffic, thereby balancing the traffic between the transmission interfaces.

[0105] In a possible implementation, the first equivalent destination node can be determined as the destination node of the above-mentioned message based on the above-mentioned target information, the above-mentioned first equivalent destination node is the destination node with the lowest congestion level among the available equivalent destination nodes of the above-mentioned message, and the above-mentioned available equivalent destination node is the equivalent destination node among the above-mentioned multiple equivalent destination nodes whose required number of hops is less than or equal to the above-mentioned available number of hops.

[0106] For example, Figure 6As shown, transmission interface 1, transmission interface 2, transmission interface 3 and transmission interface 4 are all equivalent destination nodes of the above message. The available hop count of the message is 2, the congestion level of transmission interface 1 is L1, the required hop count of transmission interface 1 is 3, the congestion level of transmission interface 2 is L2, the required hop count of transmission interface 1 is 2, the congestion level of transmission interface 3 is L2, the required hop count of transmission interface 1 is 4, the congestion level of transmission interface 4 is L3, and the required hop count of transmission interface 1 is 3. It can be seen that the required hop counts of transmission interface 1, transmission interface 3 and transmission interface 4 are greater than the available hop counts of the message, so transmission interface 1, transmission interface 3 and transmission interface 4 cannot be used as available equivalent destination nodes of the message. However, the required hop count of transmission interface 2 is equal to the available hop count of the message, so transmission interface 2 can be used as an available equivalent destination node of the message. And transmission interface 2 is the destination node with the lowest congestion level among the available equivalent destination nodes of the above message, that is, transmission interface 2 is the first equivalent destination node of the above message, then transmission interface 2 is determined to be the destination node of the above message.

[0107] It should be noted that the message can only go around the destination node but can never reach the destination node, which is a livelock. Since the method provided by the embodiment of the present application can dynamically select the transmission interface as the destination node. In this way, when the congestion state of each transmission interface changes frequently, the destination node may be frequently changed, resulting in a routing livelock problem. For this reason, the method provided by the embodiment of the present application introduces the available hop count when dynamically selecting the destination node, thereby avoiding the routing livelock problem caused by frequent changes in the destination node.

[0108] In a possible implementation, the routing weight of each equivalent destination node in multiple equivalent nodes of the message can be determined according to the above target information, and then the destination node of the above message can be determined from the multiple equivalent destination nodes of the message according to the routing weight of each equivalent destination node in multiple equivalent nodes of the message.

[0109] It can be seen that the method provided in the embodiment of the present application can dynamically select a transmission interface from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface. Compared with using a fixed transmission interface as the destination node of the message, dynamically selecting a transmission interface from multiple transmission interfaces as the destination node of the message according to the congestion status of the transmission interface can divert the message from the transmission interface with a higher congestion level that carries more traffic to the transmission interface with a lower congestion level that carries less traffic, thereby balancing the traffic between the transmission interfaces.

[0110] For example, transmission interface 1, transmission interface 2 and transmission interface 3 can all transmit messages from source node 1, source node 2 and source node 3 to destination node 1. Source node 1 uses transmission interface 1 to transmit messages, source node 2 uses transmission interface 2 to transmit messages, and source node 3 uses transmission interface 3 to transmit messages. In this way, if source node 1 sends 200 messages, source node 2 sends 100 messages, and source node 3 does not send messages, transmission interface 1 and transmission interface 2 need to carry the traffic of 200 messages and 100 messages respectively, and transmission interface 3 does not carry traffic, which will cause the traffic imbalance between transmission interface 1, transmission interface 2 and transmission interface 3.

[0111] However, in the embodiment of the present application, source node 1, source node 2 and source node 3 do not use a fixed transmission interface, but dynamically select a transmission interface. In this way, if source node 1 sends 200 messages and source node 2 sends 100 messages, the messages of source node 1 carried by transmission interface 1 will be diverted to transmission interface 3, thereby balancing the traffic between transmission interface 1, transmission interface 2 and transmission interface 3.

[0112] The following describes the method provided in the embodiments of the present application in combination with various scenarios.

[0113] like Figure 7 As shown in the figure, in the mesh topology network on chip, each NoC node acts as a routing node and selects the routing direction according to the congestion status of the multi-interface node. Among them, node 0.3, node 3.0 and node 3.3 are equivalent destination nodes.

[0114] To prevent livelock, the switching is limited by the hop count information. The available hop count information is initialized when each message is sent to the Mesh. The available hop count is reduced by 1 for each node forwarded. When the required hop count of the switching destination node is greater than the available hop count, switching is not allowed.

[0115] like Figure 7 As shown, at node 2.2, the available hop number of the message is 2. At this time, although the congestion levels of nodes 3.0 and 0.3 are lower, since the number of hops required to go to node 3.0 or node 0.3 is 3, there is no change of direction and the message continues to go to node 3.3.

[0116] like Figure 8 As shown in the figure, in the Ring topology, a loopback path is added at a specific node to realize message switching. As shown in the figure, node 4 and node 10 are equivalent destination nodes, and node 1 and node 7 are routing nodes. When the message passes through nodes 1 and 7 on the path to node 10, the destination node can be reselected according to the congestion situation.

[0117] Since the Ring topology is simple, the available hop count (available number of direction changes) can be initialized directly when the message is on the Ring. Each time a direction change occurs, the available hop count is reduced by 1 until it reaches 0, and the destination node direction is not allowed to be changed.

[0118] like Fig. 9 As shown in the figure, under the Multi-Ring topology, the implementation schemes of Mesh topology and Ring topology can be integrated. The ring node is used as the primary routing node, and some nodes on each ring can also be selected to add loopback paths as secondary routing nodes. As shown in the figure, the X pattern node is a primary routing node, which supports the switching of the ring and the switching of the current ring, and the L pattern node is a secondary routing node, which only supports the switching of the current ring.

[0119] To prevent livelock problems, both the number of ring changes and the number of available hops on a single ring need to be limited. Each time a ring is changed at a primary node, the number of available ring changes is reduced by 1; each time a ring is changed at a secondary node, the number of available hops is reduced by 1.

[0120] The following will be combined Fig.10 A message transmission device for executing the above message transmission method is introduced.

[0121] It is understandable that, in order to realize the above functions, the message transmission device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to exceed the scope of the embodiments of the present application.

[0122] The embodiment of the present application can divide the functional modules of the message transmission device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0123] In the case of dividing each functional module into corresponding functional modules, Fig.10 A possible schematic diagram of the composition of the message transmission device involved in the above embodiment is shown. Fig.10 As shown, the message transmission device 1000 may include: an acquisition unit 1001 and a processing unit 1002.

[0124] The acquisition unit 1001 is used to acquire target information, where the target information includes congestion information of multiple transmission interfaces, and the congestion information is used to indicate the congestion status of the transmission interface.

[0125] The processing unit 1002 is configured to determine a destination node of the message from a plurality of equivalent destination nodes of the message according to the target information, and the plurality of transmission interfaces include the plurality of equivalent destination nodes.

[0126] In a possible implementation, the processing unit 1002 is specifically used to: determine a first equivalent destination node as the destination node of the message according to the target information, and the first equivalent destination node is the destination node with the lowest congestion level among multiple equivalent destination nodes of the message.

[0127] In a possible implementation, the processing unit 1002 is specifically used to: determine, based on the target information, that the first equivalent destination node is the destination node of the message, the first equivalent destination node is the destination node with the lowest congestion level among the available equivalent destination nodes of the message, and the available equivalent destination node is the equivalent destination node among the multiple equivalent destination nodes whose required number of hops is less than or equal to the available number of hops.

[0128] In a possible implementation, the acquisition unit 1001 is specifically used to: when the congestion state of the first transmission interface changes, acquire the congestion state of the first transmission interface, where the first transmission interface is any one of the multiple transmission interfaces.

[0129] In a possible implementation, the acquisition unit 1001 is specifically used to: acquire a cache queue utilization rate of a first transmission interface, where the first transmission interface is any one of the multiple transmission interfaces; and determine a congestion state of the first transmission interface based on the cache queue utilization rate.

[0130] The embodiment of the present application also provides a chip. Fig.11 1 shows a schematic diagram of the structure of a chip 400. The chip 1100 includes one or more processors 1101 and an interface circuit 1102. Optionally, the chip 1100 may also include a bus 1103.

[0131] The processor 1101 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above message transmission method may be completed by an integrated logic circuit of hardware in the processor 1101 or by instructions in the form of software.

[0132] Optionally, the processor 1101 may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods and steps disclosed in the embodiments of the present application may be implemented or executed. The general purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0133] The interface circuit 1102 can be used to send or receive data, instructions or information. The processor 1101 can use the data, instructions or other information received by the interface circuit 1102 to process, and can send the processing completion information through the interface circuit 1102.

[0134] Optionally, the chip also includes a memory, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory (NVRAM).

[0135] Optionally, the memory stores executable software modules or data structures, and the processor can perform corresponding operations by calling operation instructions stored in the memory (the operation instructions can be stored in the operating system).

[0136] Optionally, the chip can be used in the message transmission device involved in the embodiment of the present application. Optionally, the interface circuit 1102 can be used to output the execution result of the processor 1101. The message transmission method provided by one or more embodiments of the embodiment of the present application can refer to the aforementioned embodiments, which will not be repeated here.

[0137] It should be noted that the corresponding functions of the processor 1101 and the interface circuit 1102 can be implemented through hardware design, software design, or a combination of hardware and software, and there is no limitation here.

[0138] Fig.12This is a structural schematic diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a message transmission device, or a chip or functional module in a message transmission device.

[0139] For example, Fig.12 1 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0140] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0141] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modulation and demodulation processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0142] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0143] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0144] Among them, the I2C interface is a bidirectional synchronous serial bus. The processor 110 can couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100. The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to realize the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the electronic device 100.

[0145] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0146] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.

[0147] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0148] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0149] The electronic device 100 can realize the shooting function through ISP, camera 193, touch sensor, video codec, GPU, display screen 194 and application processor.

[0150] Among them, ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0151] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. It should be understood that in the description of the embodiments of the present application, an image in RGB format is used as an example for introduction, and the embodiments of the present application do not limit the image format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0152] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0153] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0154] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area.

[0155] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0156] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device 100 can receive button input and generate key signal input related to the user settings and function control of the electronic device 100. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card.

[0157] It should be noted that the electronic device 100 may be a chip system or a Fig.12Devices with similar structures in the chip system. Among them, the chip system can be composed of chips, or it can include chips and other discrete devices. The actions, terms, etc. involved in the various embodiments of this application can refer to each other without limitation. The message name or parameter name in the message exchanged between the various devices in the embodiment of this application is only an example, and other names can also be used in the specific implementation without limitation. In addition, Fig.12 The components shown in the figure do not constitute a limitation on the electronic device 100. Fig.12 In addition to the components shown, the electronic device 100 may include Fig.12 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.

[0158] The processor and transceiver described in the present application can be implemented in an integrated circuit (IC), an analog IC, a radio frequency integrated circuit, a mixed signal IC, an application specific integrated circuit (ASIC), a printed circuit board (PCB), an electronic device, etc. The processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal oxide semiconductor (CMOS), N-type metal oxide semiconductor (NMOS), P-type metal oxide semiconductor (positive channel metal oxide semiconductor, PMOS), bipolar junction transistor (BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.

[0159] An embodiment of the present application also provides a message transmission device, which includes: at least one processor, when the at least one processor executes program code or instructions, it implements the above-mentioned related method steps to implement the message transmission method in the above embodiment.

[0160] Optionally, the device may further include at least one memory, and the at least one memory is used to store the program code or instruction.

[0161] An embodiment of the present application also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on a message transmission device, the message transmission device executes the above-mentioned related method steps to implement the message transmission method in the above-mentioned embodiment.

[0162] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the message transmission method in the above-mentioned embodiment.

[0163] The embodiment of the present application also provides a message transmission device, which can be a chip, an integrated circuit, a component or a module. Specifically, the device may include a connected processor and a memory for storing instructions, or the device includes at least one processor for obtaining instructions from an external memory. When the device is running, the processor can execute instructions so that the chip executes the message transmission method in the above-mentioned method embodiments.

[0164] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0165] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0166] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0167] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0168] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0169] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0170] If the above functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above methods in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0171] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A message transmission method, characterized in that: include: Acquire target information, where the target information includes congestion information of a plurality of transmission interfaces, where the congestion information is used to indicate a congestion state of the transmission interface; The destination node of the message is determined from a plurality of equivalent destination nodes of the message according to the target information, and the plurality of transmission interfaces include the plurality of equivalent destination nodes.

2. The method according to claim 1, characterized in that The determining the destination node of the message from a plurality of equivalent destination nodes of the message according to the target information comprises: A first equivalent destination node is determined as the destination node of the message according to the target information, and the first equivalent destination node is a destination node with the lowest congestion level among multiple equivalent destination nodes of the message.

3. The method according to claim 1, characterized in that: The target information also includes the number of available hops of the message, and determining the destination node of the message from a plurality of equivalent destination nodes of the message according to the target information includes: According to the target information, a first equivalent destination node is determined as the destination node of the message, the first equivalent destination node is the destination node with the lowest congestion level among the available equivalent destination nodes of the message, and the available equivalent destination node is an equivalent destination node among the multiple equivalent destination nodes whose required number of hops is less than or equal to the available number of hops.

4. The method according to any one of claims 1 to 3, characterized in that The obtaining of target information includes: When a congestion state of a first transmission interface changes, the congestion state of the first transmission interface is acquired, where the first transmission interface is any one of the multiple transmission interfaces.

5. The method according to any one of claims 1 to 4, characterized in that The obtaining of target information includes: Obtaining a cache queue utilization rate of a first transmission interface, where the first transmission interface is any transmission interface among the multiple transmission interfaces; The congestion state of the first transmission interface is determined according to the cache queue utilization.

6. A message transmission device, characterized in that: include: Acquisition unit and processing unit; The acquisition unit is used to acquire target information, where the target information includes congestion information of multiple transmission interfaces, and the congestion information is used to indicate the congestion status of the transmission interface; The processing unit is used to determine the destination node of the message from multiple equivalent destination nodes of the message according to the target information, and the multiple transmission interfaces include the multiple equivalent destination nodes.

7. The device according to claim 6, characterized in that The processing unit is specifically used for: A first equivalent destination node is determined as the destination node of the message according to the target information, and the first equivalent destination node is a destination node with the lowest congestion level among multiple equivalent destination nodes of the message.

8. The device according to claim 6, characterized in that The processing unit is specifically used for: According to the target information, a first equivalent destination node is determined as the destination node of the message, the first equivalent destination node is the destination node with the lowest congestion level among the available equivalent destination nodes of the message, and the available equivalent destination node is an equivalent destination node among the multiple equivalent destination nodes whose required number of hops is less than or equal to the available number of hops.

9. The device according to any one of claims 6 to 8, characterized in that The acquisition unit is specifically used for: When a congestion state of a first transmission interface changes, the congestion state of the first transmission interface is acquired, where the first transmission interface is any one of the multiple transmission interfaces.

10. The device according to any one of claims 6 to 9, characterized in that The acquisition unit is specifically used for: Obtaining a cache queue utilization rate of a first transmission interface, where the first transmission interface is any transmission interface among the multiple transmission interfaces; The congestion state of the first transmission interface is determined according to the cache queue utilization.

11. A message transmission device, comprising at least one processor and a memory, characterized in that: The at least one processor executes a program or instruction stored in the memory so that the message transmission device implements the method described in any one of claims 1 to 5.

12. A computer-readable storage medium for storing a computer program, characterized in that: When the computer program is executed on a computer or a processor, the computer or the processor is enabled to implement the method according to any one of claims 1 to 5.

13. A computer program product, comprising instructions, characterized in that: When the instructions are executed on a computer or a processor, the computer or the processor is enabled to implement the method according to any one of claims 1 to 5.