Routing request transmission method and system, storage medium and electronic device

By formulating different scheduling strategies for the first-level routing nodes and the second-level routing nodes in the on-chip interconnection network, the formation of closed loops is avoided, the deadlock problem of the adaptive routing algorithm is solved when the network topology contains loops, and the normal routing requests are realized. Transmission and network stability.

CN118413475BActive Publication Date: 2024-09-06SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410884208.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-06
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

The adaptive routing algorithm used in the existing technology is prone to deadlock when the network topology contains loops, causing routing request transmission to fail.

Method used

A routing scheduling strategy is designed. By formulating different scheduling strategies for the first-level routing node and the second-level routing node in the on-chip interconnection network, a closed loop is avoided and deadlock is prevented.

Benefits of technology

It effectively avoids the occurrence of deadlock, ensures the normal transmission of routing requests, and improves the reliability and stability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118413475B
    Figure CN118413475B
Patent Text Reader

Abstract

The embodiment of the present application provides a method and system for transmitting a routing request, a storage medium and an electronic device, and relates to the field of on-chip network technology, wherein the method comprises: receiving a target routing request, wherein the target routing request is a routing request with a first source node as a starting node and a second source node as an end node; determining a target transmission path of the target routing request based on a target routing scheduling policy corresponding to the level of the target routing node, wherein the routing scheduling policy corresponding to the first level among the multiple levels and the routing scheduling policy corresponding to the second level among the multiple levels are at least partially different; based on the target transmission path, transmitting the target routing request to the second source node. Through the present application, the problem that a routing request transmission method in the related art is prone to deadlock when using an adaptive routing algorithm is solved.
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 on-chip network technology, and in particular to a method and system for transmitting a routing request, a storage medium, and an electronic device. Background Art

[0002] At present, routing algorithms are divided into shortest path algorithms and adaptive algorithms. If the shortest path algorithm is used, the algorithm is simple and will not cause deadlock, but it cannot adjust the routing path according to the busy situation of the network. If the adaptive routing algorithm is used, the path diversity is increased, but if the network topology contains a "ring", it is easy to cause deadlock. It can be seen that the transmission method of routing requests in the related art has the problem that the adaptive routing algorithm is easy to cause deadlock. Summary of the invention

[0003] The embodiments of the present application provide a method and system for transmitting a routing request, a storage medium, and an electronic device, so as to at least solve the problem that a method for transmitting a routing request in the related art is prone to deadlock when using an adaptive routing algorithm.

[0004] According to an embodiment of the present application, a method for transmitting a routing request is provided, which is applied to a target routing node in an on-chip interconnect network, wherein the on-chip interconnect network includes at least one group of source nodes and a group of routing nodes divided into multiple levels, each group of source nodes in the at least one group of source nodes is connected to a first-level routing node in the group of routing nodes, and in the group of routing nodes, other routing nodes except the first-level routing node are connected to at least two next-level routing nodes, and there is a transmission path between different first-level routing nodes connected to the same second-level routing node, and the transmission paths in the on-chip interconnect network are all bidirectional transmission paths, and the target routing node is a routing node in the group of routing nodes; the method includes: receiving a target routing request, wherein the target routing request is a routing request with a first source node as a starting node and a second source node as an end node; determining a target transmission path of the target routing request based on a target routing scheduling policy corresponding to the level of the target routing node, wherein the routing scheduling policy corresponding to the first level of the multiple levels and the routing scheduling policy corresponding to the second level of the multiple levels are at least partially different; based on the target transmission path, transmitting the target routing request to the second source node.

[0005] According to another embodiment of the present application, a transmission system for a routing request is provided, comprising: an on-chip interconnect network, wherein the on-chip interconnect network comprises at least one group of source nodes and a group of routing nodes divided into multiple levels, each group of source nodes in the at least one group of source nodes is connected to a first-level routing node in the group of routing nodes, and in the group of routing nodes, at least two next-level routing nodes are connected to other routing nodes except the first-level routing node, and there is a transmission path between different first-level routing nodes connected to the same second-level routing node, and the transmission paths in the on-chip interconnect network are all bidirectional transmission paths, and the target routing node is a routing node in the group of routing nodes; the target routing node in the on-chip interconnect network is used to receive a target routing request, wherein the target routing request is a routing request with a first source node as a starting node and a second source node as an end node; based on a target routing scheduling policy corresponding to the level of the target routing node, determining a target transmission path of the target routing request, wherein the routing scheduling policy corresponding to the first level of the multiple levels and the routing scheduling policy corresponding to the second level of the multiple levels are at least partially different; based on the target transmission path, transmitting the target routing request to the second source node.

[0006] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the steps of any of the above method embodiments are executed when the program is run.

[0007] According to another aspect of the embodiments of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the steps in any one of the above method embodiments through the computer program.

[0008] Through the embodiments of the present application, a method is adopted in which the routing scheduling strategy corresponding to the routing node of the first level (first-level routing node) is designed to be at least partially different from the routing scheduling strategy corresponding to the routing node of the second level (second-level routing node). Since there is a transmission path between different first-level routing nodes connected to the same second-level routing node, at least two first-level routing nodes and the second-level routing nodes to which they are connected can form a "ring". By designing the routing scheduling strategy corresponding to the first-level routing node to be at least partially different from the routing scheduling strategy corresponding to the second-level routing node, it is possible to avoid multiple routing requests from forming a "closed loop" and thus avoid deadlock. This solves the problem that the transmission method of routing requests in the related art is prone to deadlock when using an adaptive routing algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1It is a hardware structure block diagram of a server device of a method for transmitting a routing request according to an embodiment of the present application.

[0010] Figure 2 It is a flow chart of a method for transmitting a routing request according to an embodiment of the present application.

[0011] Figure 3 It is a schematic diagram of a “ring” in a network topology structure according to an embodiment of the present application.

[0012] Figure 4A It is a schematic diagram of the shortest path routing according to an embodiment of the present application.

[0013] Figure 4B It is a schematic diagram of an adaptive routing according to an embodiment of the present application.

[0014] Figure 5 It is a schematic diagram of a deadlock generated in a clockwise direction according to an embodiment of the present application.

[0015] Figure 6 It is a schematic diagram of a counterclockwise deadlock according to an embodiment of the present application.

[0016] Figure 7 This is a schematic diagram of a “+” path and a “-” path between routing nodes according to an embodiment of the present application.

[0017] Figure 8 It is a schematic diagram of another method for transmitting a routing request according to an embodiment of the present application.

[0018] Fig. 9 It is a schematic diagram of another method for transmitting a routing request according to an embodiment of the present application.

[0019] Fig.10 It is a schematic diagram of another method for transmitting a routing request according to an embodiment of the present application.

[0020] Fig.11 It is a schematic diagram of another method for transmitting a routing request according to an embodiment of the present application.

[0021] Fig.12 It is a schematic diagram of another method for transmitting a routing request according to an embodiment of the present application.

[0022] Fig.13 It is a schematic diagram of an on-chip interconnect network according to an embodiment of the present application.

[0023] Fig.14 It is a schematic diagram of another method for transmitting a routing request according to an embodiment of the present application.

[0024] Fig.15It is a structural block diagram of a computer system of an optional electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0026] It should be noted that the terms "first", "second", etc. in the description and claims of the embodiments of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0028] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Figure 1 1 is a hardware structure block diagram of a server device of a method for transmitting a routing request according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0029] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the transmission method of the routing request in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0030] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a NIC (Network Interface Controller), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be an RF (Radio Frequency) module, which is used to communicate with the Internet wirelessly.

[0031] In this embodiment, a method for transmitting a routing request is provided. Figure 2 is a flow chart of a method for transmitting a routing request according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0032] Step S202: receiving a target routing request, wherein the target routing request is a routing request with the first source node as the starting node and the second source node as the end node.

[0033] The transmission method of the routing request in this embodiment can be applied to an on-chip interconnect network, which includes at least one group of source nodes and a group of routing nodes divided into multiple levels. Each group of source nodes in the at least one group of source nodes is connected to a first-level routing node in a group of routing nodes. The transmission paths in the on-chip interconnect network are all bidirectional transmission paths, and the target routing node is a routing node in a group of routing nodes. The source nodes are responsible for sending and collecting data packets, and can send data packets to each other; the routing nodes are responsible for forwarding data packets. A first-level routing node will connect to multiple source nodes, and each first-level routing node also has a bidirectional transmission network connection line with the corresponding multiple source nodes.

[0034] Here, the on-chip network, as a subset of the broader Internet, can be regarded as a programmable system to facilitate data transmission between nodes. The on-chip network is a means for communication between subsystems in digital circuits, that is, to build a circuit structure similar to a "computer network" at the hardware level to exchange data between components. The on-chip network consists of channels and router nodes, and the network topology determines the physical layout and connection between these nodes and channels. Given a topology, the routing algorithm will determine the network path that the message needs to take to send to the destination. The ability of the routing algorithm to balance the traffic (or load) will directly affect the throughput and performance of the network.

[0035] Routing algorithms are divided into shortest path algorithms and adaptive algorithms. The principle of adaptive routing algorithms is: give priority to the shortest path during the routing process, and select the routing path according to network conditions and rules when the shortest path is occupied. If the shortest path algorithm is used, the algorithm is simple and will not cause deadlock, but it cannot adjust the routing path according to the busy situation of the network. If the adaptive routing algorithm is used, the path diversity is increased, but if the network topology contains "rings", deadlock is likely to occur.

[0036] Optionally, at least two first-level routing nodes are connected to the second-level routing node, and there is a transmission path between different first-level routing nodes connected to the same second-level routing node. In this embodiment, taking the example of two first-level routing nodes being connected to a second-level routing node, the first-level routing node is connected to a second-level routing node through two links upward, and is connected to another first-level routing node under the same second-level routing node through two links. Each link can transmit data in both directions, that is, it is full-duplex. Figure 3 shows a "ring" in the network topology, Figure 4A shows the shortest path routing, Figure 4B Adaptive routing is shown.

[0037] for Figure 3, is a ring topology, and deadlock is likely to occur if an adaptive routing algorithm is used. For example, suppose there are three routing requests at the same time: Request 1: Level 1 routing node 0 to Level 1 routing node 1; Request 2: Level 2 routing node 0 to Level 1 routing node 0; Request 3: Level 1 routing node 1 to Level 2 routing node 0; when the shortest paths of these three routing requests are all occupied, clockwise routing is selected, and the intermediate routing nodes are occupied, a deadlock occurs. Figure 5 A schematic diagram showing a deadlock caused by clockwise routing is shown. For another example, suppose there are three routing requests at the same time: Request 1: Level 1 routing node 0 to Level 2 routing node 0; Request 2: Level 1 routing node 1 to Level 1 routing node 0; Request 3: Level 2 routing node 0 to Level 1 routing node 1; when the shortest paths of these three routing requests are all occupied and counterclockwise routing is selected, and the intermediate routing nodes are all occupied, a deadlock occurs. Figure 6 The schematic diagram of the counterclockwise deadlock is shown. For general Internet networks, deadlock is usually solved by virtual paths. However, for on-chip networks, once deadlock occurs, it will cause the on-chip Internet network to be completely paralyzed.

[0038] In order to at least partially solve the above problems, in this embodiment, different routing scheduling strategies can be designed based on the hierarchy of routing nodes. The routing scheduling strategy corresponding to the first hierarchy is at least partially different from the routing scheduling strategies corresponding to other hierarchies. The routing nodes of the first hierarchy are first-level routing nodes that are connected to multiple source nodes downward and second-level routing nodes upward. The routing scheduling strategy of the first-level routing nodes is designed to be at least partially different from the routing scheduling strategies corresponding to other hierarchies, that is, a routing algorithm that avoids deadlock is designed to achieve the goal of preventing a "closed loop" from being generated, and therefore preventing deadlock.

[0039] For a routing node, a target routing request can be received, and the target routing request can be used to request that a data packet (message) be transmitted from a first source node to a second source node, that is, the target routing request is a routing request with the first source node as the starting node and the second source node as the end node.

[0040] Step S204, determining a target transmission path of a target routing request based on a target routing scheduling policy corresponding to a level of a target routing node, wherein a routing scheduling policy corresponding to a first level among multiple levels and a routing scheduling policy corresponding to a second level among multiple levels are at least partially different.

[0041] In this embodiment, taking the on-chip interconnect network including at least one group of source nodes and a group of routing nodes divided into three levels as an example, the level of the first-level routing node is the first level, the level of the second-level routing node is the second level, the level of the third-level routing node is the third level, at least two second-level routing nodes are connected to the third-level routing node, and there is a bidirectional transmission link between the first-level routing node and the corresponding multiple source nodes. When a target routing request sent by the first source node is received, for the first-level routing node where the first source node is located, when the first source node and the second source node are source nodes under the same first-level routing node, the target routing request can be directly transmitted based on the output port corresponding to the second source node. Forward downward to the second source node; when the first source node and the second source node are source nodes under different first-level routing nodes, the target routing request can be forwarded upward to the second-level routing node. Here, when the first source node and the second source node correspond to the same second-level routing node, the target routing request can be forwarded downward to the first-level routing node, and then forwarded to the second source node. When the first source node and the second source node belong to different second-level routing nodes, the target routing request can continue to be forwarded upward to the third-level routing node, and then forwarded downward to the second-level routing node, and then forwarded downward to the first-level routing node, and then forwarded downward to the second source node.

[0042] The routing scheduling strategy corresponding to the first level among the multiple levels is designed to be at least partially different from the routing scheduling strategy corresponding to the second level among the multiple levels, so as to avoid the generation of a "closed loop".

[0043] Considering that each first-level routing node is connected to a second-level routing node through two links, and is connected to another first-level routing node under the same second-level routing node through two links, in an exemplary embodiment, before determining the target transmission path of the target routing request based on the target routing scheduling policy corresponding to the level of the target routing node, the method further includes:

[0044] In the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the first routing node, it is determined whether the two transmission paths between the target routing node and the secondary routing node to which the target routing node is connected are both occupied, wherein there are two transmission paths between different primary routing nodes belonging to the same secondary routing node, and there are also two transmission paths between a secondary routing node and its subordinate primary routing node.

[0045] Step S206: transmitting the target routing request to the second source node based on the target transmission path.

[0046] Based on the positional relationship between the first source node and the second source node in the on-chip interconnect network, and based on the target routing scheduling policies corresponding to the target routing nodes of different levels that receive the target routing requests, a set of target transmission paths for the target routing requests are determined to transmit the target routing requests from the first source node to the second source node.

[0047] Through the above steps of the embodiment provided by the present application, a target routing request is received, wherein the target routing request is a routing request with the first source node as the starting node and the second source node as the end node; based on the target routing scheduling policy corresponding to the level of the target routing node, a target transmission path of the target routing request is determined, wherein the routing scheduling policy corresponding to the first level among the multiple levels and the routing scheduling policy corresponding to the second level among the multiple levels are at least partially different; based on the target transmission path, the target routing request is transmitted to the second source node, thereby solving the problem that the routing request transmission method in the related art is prone to deadlock when using an adaptive routing algorithm, thereby avoiding deadlock.

[0048] In an exemplary embodiment, the primary routing node to which the first source node is connected is a first routing node, and the primary routing node to which the second source node is connected is a second routing node;

[0049] Determining a target transmission path of the target routing request based on a target routing scheduling policy corresponding to the level of the target routing node includes:

[0050] S11, in a case where the first routing node and the second routing node are connected to different first-level routing nodes of the same second-level routing node, when the target routing node is the first routing node, based on the target routing scheduling policy, determining a transmission path from the target routing node to the second routing node as a target transmission path;

[0051] The target routing scheduling strategy includes: only the shortest transmission path is allowed between different primary routing nodes connected to the same secondary routing node.

[0052] Similar to the aforementioned embodiment, the target routing request is a routing request with the first source node as the starting node and the second source node as the end node. The first-level routing node to which the first source node is connected is the first routing node, and the first-level routing node to which the second source node is connected is the second routing node.

[0053] In the case where the first routing node and the second routing node are different first-level routing nodes connected to the same second-level routing node, for the first routing node, a transmission path from the first routing node to the second routing node is determined as a target transmission path for the target routing request.

[0054] for Figure 3, each link between routing nodes is bidirectional. Figure 7 , two paths with the same starting and ending nodes are recorded as "+" path and "-" path respectively, the source starting node of the data packet (i.e., the first source node) is recorded as S, and the destination end node of the data packet (i.e., the second source node) is recorded as D. For the first-level routing node, if S and D belong to the same second-level routing node, then only the shortest path can be taken, that is, directly from the first routing node to the second routing node. For example, the first-level routing node 0 routes to the first-level routing node 1, and the shortest path is as follows Figure 8 shown.

[0055] Through this embodiment, different primary routing nodes connected to the same secondary routing node are designed to only allow the shortest transmission path to be used, thereby avoiding the occurrence of deadlock.

[0056] In an exemplary embodiment, determining a target transmission path of a target routing request based on a target routing scheduling policy corresponding to a level of a target routing node further includes:

[0057] S21, in the case where the first routing node and the second routing node are connected to different first-level routing nodes of the same second-level routing node, when the target routing node is the second routing node, based on the target routing scheduling policy, determine the transmission path from the target routing node to the second source node as the target transmission path.

[0058] In the case where the first routing node and the second routing node are connected to different first-level routing nodes of the same second-level routing node, for the second routing node, the transmission path from the second routing node to the second source node is determined as the target transmission path of the target routing request. For example, the second routing node can forward downward according to the output port corresponding to D.

[0059] Through this embodiment, when the starting node (first source node) and the end node (second source node) are connected to different first-level routing nodes of the same second-level routing node, the first-level routing node where the end node (source node) is located is designed to receive the target routing request and directly forward it downward to the end node.

[0060] In an exemplary embodiment, the primary routing node to which the first source node is connected is a first routing node, and the primary routing node to which the second source node is connected is a second routing node;

[0061] Determining a target transmission path of the target routing request based on a target routing scheduling policy corresponding to the level of the target routing node includes:

[0062] S31, when the first routing node and the second routing node are the same routing node, and the target routing node is the first routing node, based on the target routing scheduling policy, determine the transmission path of the output port corresponding to the second source node as the target transmission path.

[0063] Similar to the aforementioned embodiment, the target routing request is a routing request with the first source node as the starting node and the second source node as the end node. The first-level routing node to which the first source node is connected is the first routing node, and the first-level routing node to which the second source node is connected is the second routing node.

[0064] When the first routing node and the second routing node are the same routing node, that is, the first source node and the second source node are source nodes under the same first-level routing node, for the first routing node, the transmission path from the first-level routing node to the second source node can be determined as the target transmission path based on the output port corresponding to the second source node.

[0065] Through this embodiment, when the starting node (first source node) and the end node (second source node) are source nodes under the same first-level routing node, the first-level routing node is designed to directly forward the target routing request sent by the starting node to the end node.

[0066] In an exemplary embodiment, the primary routing node to which the first source node is connected is a first routing node, and the primary routing node to which the second source node is connected is a second routing node;

[0067] Determining a target transmission path of the target routing request based on a target routing scheduling policy corresponding to the level of the target routing node includes:

[0068] S41, in the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the first routing node, based on the target routing scheduling policy, if the transmission path between the target routing node and the secondary routing node to which the target routing node is connected is not occupied, determine the transmission path between the target routing node and the secondary routing node to which the target routing node is connected as the target transmission path; if the transmission path between the target routing node and the secondary routing node to which the target routing node is connected is occupied, determine the transmission path from the target routing node to the secondary routing node to which the target routing node is connected via a third routing node as the target transmission path, wherein the third routing node is a primary routing node connected to the same secondary routing node as the target routing node;

[0069] Among them, the target routing scheduling strategy includes: the transmission path from the first-level routing node to the connected second-level routing node gives priority to the shortest transmission path, and when the shortest transmission path is occupied, it is allowed to use the transmission path routed via the same-level routing node to the connected second-level routing node.

[0070] Similar to the aforementioned embodiment, the target routing request is a routing request with the first source node as the starting node and the second source node as the end node. The first-level routing node to which the first source node is connected is the first routing node, and the first-level routing node to which the second source node is connected is the second routing node.

[0071] In the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the first routing node, that is, for the first-level routing node, if S and D do not belong to the same secondary routing node, when the first step needs to be routed to the secondary routing node where S is located, the shortest path is given priority. If the shortest paths are all occupied, the non-shortest path can be taken.

[0072] For example, if the first-level routing node 0 routes to the first-level routing node 2, and the first-level routing node 0 and the first-level routing node 2 are connected to different second-level routing nodes, the first step is to route to the second-level routing node 0 where the first-level routing node 0 is located, and the shortest path is preferred. Fig. 9 As shown; if both ports of the shortest path are occupied, you can take a non-shortest path such as Fig.10 As shown, the transmission path from the target routing node via the third routing node (primary routing node 1) to the secondary routing node (secondary routing node 0) to which the target routing node is connected is determined as the target transmission path.

[0073] In an exemplary embodiment, determining a target transmission path of a target routing request based on a target routing scheduling policy corresponding to a level of a target routing node further includes:

[0074] S51, in the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is a primary routing node connected to the same secondary routing node as the first routing node, based on the target routing scheduling policy, a transmission path between the target routing node and the secondary routing node to which the target routing node is connected is determined as the target transmission path.

[0075] Similar to the aforementioned embodiment, in the case where the first routing node and the second routing node are connected to different secondary routing nodes, if the first routing node adopts a non-shortest path transmission to the secondary routing node where the first routing node is located, it can be forwarded to the secondary routing node to which the first routing node is connected via a third routing node. The third routing node is a first-level routing node connected to the same secondary routing node as the first routing node. For the third routing node, it is directly forwarded upward to the secondary routing node, that is, the third routing node and the same secondary routing node to which the first routing node is connected.

[0076] For example, for the aforementioned third routing node (primary routing node 1), the transmission path from the third routing node (primary routing node 1) to the secondary routing node (secondary routing node 0) to which the first routing node is connected is determined as the target transmission path.

[0077] In an exemplary embodiment, determining a target transmission path of a target routing request based on a target routing scheduling policy corresponding to a level of a target routing node further includes:

[0078] S61, in the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the secondary routing node connected to the first routing node, based on the target routing scheduling strategy, determine the shortest transmission path from the target routing node to the secondary routing node connected to the second routing node as the target transmission path;

[0079] The target routing scheduling strategy includes: allowing the shortest transmission path to be used between different secondary routing nodes.

[0080] In this embodiment, taking the example that at least two second-level routing nodes are connected to a third-level routing node and there is no transmission path between different second-level routing nodes connected to the same third-level routing node, when the first routing node and the second routing node are connected to different second-level routing nodes, when the target routing node is the second-level routing node connected to the first routing node, the shortest transmission path from the target routing node to the second-level routing node connected to the second routing node is determined as the target transmission path.

[0081] Optionally, in this embodiment, different secondary routing nodes can be forwarded through a third-level routing node. When the first routing node is connected to the second-level routing node and the second routing node is connected to the second-level routing node and are simultaneously connected to at least two third-level routing nodes, the third-level routing node corresponding to the shortest path is selected for forwarding. It can also be forwarded directly upward to any third-level routing node, which is not limited in this embodiment.

[0082] In an exemplary embodiment, determining a target transmission path of a target routing request based on a target routing scheduling policy corresponding to a level of a target routing node further includes:

[0083] S71, in the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the secondary routing node to which the second routing node is connected, based on the target routing scheduling policy, if the transmission path between the target routing node and the second routing node is not occupied, determine the transmission path between the target routing node and the second routing node as the target transmission path; if the transmission path between the target routing node and the second routing node is occupied, determine the transmission path from the target routing node to the second routing node via a fourth routing node as the target transmission path, wherein the fourth routing node is a primary routing node connected to the same secondary routing node as the target routing node;

[0084] Among them, the target routing scheduling strategy includes: the transmission path from the secondary routing node to a subordinate primary routing node gives priority to the shortest transmission path, and when the shortest transmission path is occupied, it is allowed to use the transmission path routed to a primary routing node via other subordinate primary routing nodes.

[0085] In the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the secondary routing node connected to the second routing node, it is preferentially routed to the second routing node via the shortest path. If all ports of the shortest path connecting the second routing node are occupied, it is transferred to another first-level routing node (the fourth routing node) connected to the secondary routing node where the second routing node is located, so as to be forwarded to the second routing node via another first-level routing node.

[0086] Here, similar to the above-mentioned embodiment, each first-level routing node is connected to a second-level routing node through two upward links, and is connected to another first-level routing node under the same second-level routing node through two lines.

[0087] For example, when the secondary routing node 0 routes to the primary routing node 0 where D is located, the shortest path is preferred, such as Fig.11 As shown; if all shortest paths are occupied, you can take a non-shortest path, such as Fig.12 shown.

[0088] Through this embodiment, for the secondary routing node connected to the second routing node, when routing to the primary routing node (second routing node) where D is located, the shortest path is preferred. If all shortest paths are occupied, a non-shortest path can be taken.

[0089] In an exemplary embodiment, determining a target transmission path of a target routing request based on a target routing scheduling policy corresponding to a level of a target routing node further includes:

[0090] S81, in the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the second routing node, based on the target routing scheduling policy, determine the transmission path from the target routing node to the second source node as the target transmission path.

[0091] In the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the second routing node, the traffic is directly forwarded downward from the output port corresponding to the second source node to the second source node.

[0092] In an exemplary embodiment, determining a target transmission path of a target routing request based on a target routing scheduling policy corresponding to a level of a target routing node further includes:

[0093] S91, in a case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is a primary routing node connected to the same secondary routing node as the second routing node, based on a target routing scheduling policy, determining a transmission path between the target routing node and the second routing node as a target transmission path;

[0094] The target routing scheduling strategy includes: only the shortest transmission path is allowed between different primary routing nodes connected to the same secondary routing node.

[0095] Similar to the above-mentioned embodiment, when the transmission path between the secondary routing node where the second routing node is located and the second routing node is occupied, the transmission path forwarded to the second routing node via the fourth routing node is determined as the target transmission path, wherein the fourth routing node is a primary routing node connected to the same secondary routing node as the target routing node.

[0096] For the fourth routing node, the transmission path between the fourth routing node and the second routing node is determined as the target transmission path.

[0097] In an exemplary embodiment, determining a target transmission path of a target routing request based on a target routing scheduling policy corresponding to a level of a target routing node includes:

[0098] S101, when the target routing node is a routing node of a layer other than the first layer and the second layer in multiple layers, based on the target routing scheduling policy, determine a transmission path for transmitting the target routing request through an output port matching the second source node as the target transmission path;

[0099] The target routing scheduling strategy includes: routing nodes at other levels except the first level and the second level transmit routing requests via output ports that match the terminal nodes of the routing requests.

[0100] For example, for the routing node of the third level, that is, the third-level routing node, after receiving the routing request from the lower port, it transmits the routing request downward from the output port corresponding to D to the second-level routing node to transmit the target routing request to the second source node.

[0101] In an exemplary embodiment, the node identifier of each source node in a group of source nodes is a binary number of target bits, wherein the node identifiers of the source nodes connected to the same first-level routing node have the same binary bits except for a group of designated bits, and the node identifiers of the source nodes connected to the same second-level routing node have the same binary bits except for a group of designated bits and a previous binary bit of the group of designated bits;

[0102] Before determining the target transmission path of the target routing request based on the target routing scheduling policy corresponding to the level of the target routing node, the method further includes:

[0103] S111, judging whether the first routing node and the second routing node are connected to the same secondary routing node according to the node identifier of the first source node and the node identifier of the second source node.

[0104] In order to identify a group of source nodes, each source node in the group of source nodes can be identified by a binary number of a target number of bits, and the node identifiers of the source nodes connected to the same first-level routing node have the same binary bits except a group of designated bits, and the node identifiers of the source nodes connected to the same second-level routing node have the same binary bits except a group of designated bits and a group of designated bits.

[0105] For example, a total of 48 source nodes (port nodes) from 000000 (port0) to 101111 (port47) can be represented by a 6-bit (byte) binary number. Four source nodes are connected to a first-level routing node. The node identifiers of the source nodes connected to the same first-level routing node are the same except for the lower two bits. The node identifiers of the source nodes connected to the same second-level routing node are the same except for a group of specified bits and the previous binary bits of a group of specified bits, that is, the binary bits except for the lower three bits are the same. Here, a group of specified bits are the lower two bits of the node identifier of the source node. For example, the lower two bits of the node identifier 000111 of the source node 7 are "11", and the lower three bits are "111".

[0106] Optionally, in this embodiment, the on-chip interconnection network includes 12 first-level routing nodes (node ​​identifiers are 0 to 11), which are connected to 4 ports downward, connected to a second-level routing node through two links upward, and connected to another first-level routing node under the same second-level routing node through two lines; there are 6 second-level routing nodes (node ​​identifiers are 0 to 5), which are connected to two first-level routing nodes downward; there are 4 third-level routing nodes (node ​​identifiers are 0 to 3), which are connected to 6 second-level routing nodes downward.

[0107] Based on the fact that the node identifiers of the source nodes connected to the same first-level routing node are the same except for a group of designated bits, and the fact that the node identifiers of the source nodes connected to the same second-level routing node are the same except for a group of designated bits and the previous binary bits of a group of designated bits, it can be determined whether the first routing node and the second routing node are connected to the same second-level routing node based on the node identifier of the first source node and the node identifier of the second source node.

[0108] Through this embodiment, the positional relationship between the routing nodes to which different source nodes are connected can be determined through the node identifier of the source node, thereby improving the efficiency of determining the routing scheduling strategy.

[0109] In an exemplary embodiment, judging whether the first routing node and the second routing node are connected to the same secondary routing node according to the node identifier of the first source node and the node identifier of the second source node includes:

[0110] S121, performing a bitwise exclusive OR operation on the node identifier of the first source node and the node identifier of the second source node to obtain a target operation result;

[0111] S122, in the target operation result, when all binary bits except a group of designated bits are 0, determining that the first routing node and the second routing node are the same routing node;

[0112] S123, when in the target operation result, except for a group of designated bits and a binary bit preceding a group of designated bits, all other binary bits are 0, determining that the first routing node and the second routing node are different first-level routing nodes connected to the same second-level routing node.

[0113] XOR operation, if the values ​​of a and b are different, the XOR result is 1, if the values ​​of a and b are the same, the XOR result is 0. Perform a bitwise XOR operation on the node identifier of the first source node and the node identifier of the second source node to obtain the target operation result M.

[0114] Considering that the node identifiers of the source nodes connected to the same first-level routing node have the same binary bits except a set of specified bits, when the binary bits except a set of specified bits in the target operation result M are all 0, it can be determined that the first routing node and the second routing node are the same routing node, that is, the first source node and the second source node are connected to the same first-level routing node;

[0115] Considering that the node identifiers of the source nodes connected to the same secondary routing node have the same binary bits except a group of designated bits and the previous binary bits of the group of designated bits, in the target operation result M, when the binary bits except a group of designated bits and the previous binary bits of the group of designated bits are all 0, it can be determined that the first routing node and the second routing node are different first-level routing nodes connected to the same second-level routing node; otherwise, it can be determined that the first routing node and the second routing node are different first-level routing nodes connected to different second-level routing nodes.

[0116] For example, the upper four bits of S and D are XORed to obtain M. If the upper three bits of M are not 000, it means that S and D are not in the same secondary routing node. If the result is 000, it means that S and D are in the same secondary routing node. Check the upper four bits of M. If the upper four bits of M are 0001, it means that S and D are in different primary routing nodes in the same secondary routing node. If the upper four bits of M are 0000, it means that S and D are two ports connected in the same primary routing node.

[0117] In an exemplary embodiment, on each first-level routing node in a group of routing nodes, a port identifier of an output port corresponding to a source node subordinate to each first-level routing node corresponds to a binary value on a set of designated bits in a node identifier of the source node subordinate to each first-level routing node;

[0118] On each secondary routing node in a group of routing nodes, the port identifier of the output port corresponding to the primary routing node under each secondary routing node corresponds to the binary value of the previous binary bit of a group of designated bits in the node identifier of the source node under each primary routing node;

[0119] On each third-level routing node in a group of routing nodes, the port identifier of the output port corresponding to the second-level routing node under each third-level routing node corresponds to the binary value of the other binary bits in the node identifier of the source node under each second-level routing node, except for the previous binary bit of a group of specified bits.

[0120] For example, in this embodiment, for the first-level routing node where the terminal node D is located, the binary value on a set of designated bits of D (i.e., the lower two bits) is forwarded downward to the output port corresponding to the lower bit. Optionally, four source nodes are connected in sequence under one first-level routing node. The lower two bits 00 of D can represent the first source node connected in sequence from left to right, the lower two bits 01 of D can represent the second source node connected in sequence from left to right, the lower two bits 10 of D can represent the third source node connected in sequence from left to right, and the lower two bits 11 of D can represent the fourth source node connected in sequence from left to right.

[0121] For the secondary routing node where the primary routing node where the terminal node D is located is located, forward it downward according to the output port corresponding to the binary value of the previous binary bit (the highest bit of the lower three bits) of a group of specified bits of D. If it is 0, it means that D is on the primary routing node on the left side of the link on the secondary routing node. If it is 1, it means that D is on the primary routing node on the right side of the link on the secondary routing node.

[0122] For the third-level routing node, after receiving the routing request from the port below, the binary values ​​of the other binary bits of D except the first binary bit of a group of specified bits (i.e., the upper three bits) represent the output port corresponding to D. For example, D=101000, the upper three bits are 101, that is, the output port of the second-level routing node corresponding to D is port 5.

[0123] In an exemplary embodiment, the target routing request carries a target routing identifier, wherein the target routing identifier is used to identify the type of transmission path adopted before the target routing request is routed to the target routing node;

[0124] After receiving the target routing request, the method further includes:

[0125] S131, extracting the identification value of the target route identification from the target route request to obtain a target identification value;

[0126] S132, when the target identification value is a first preset value, determining that a transmission path used before the target routing request is routed to the target routing node is the shortest transmission path;

[0127] S133, when the target identification value is a second preset value, determining that a transmission path used before the target routing request is routed to the target routing node is a non-shortest transmission path;

[0128] Among them, the target routing scheduling strategy includes: on the first-level routing node, when the target identification value is a first preset value, the shortest transmission path or a non-shortest transmission path is allowed to be used; when the target identification value is a second preset value, only the shortest transmission path is allowed to be used.

[0129] In order to enable the intermediate routing node to select the correct routing path for subsequent transmission when non-shortest path routing is adopted, the target routing identifier can be carried in the routing request. The target routing identifier is used to identify the type of transmission path adopted before the target routing request is routed to the target routing node.

[0130] For example, a one-bit flag bit of the target routing identifier is added to the routing path, the first preset value "0" indicates that the shortest path is taken, and the second preset value "1" indicates that it is not the shortest path; when the routing node receives the routing request, it first checks the identifier value of the target routing identifier, and determines whether the transmission path adopted before the target routing request is routed to the target routing node is the shortest transmission path based on the target identifier value; when the target identifier value is the first preset value, the shortest transmission path or the non-shortest transmission path is allowed to be adopted; when the target identifier value is the second preset value, it indicates that the current routing node is an intermediate routing node of the non-shortest transmission path, and only the shortest transmission path is allowed to be adopted at this time, that is, if it is "1", it indicates that the first segment of the non-shortest path was taken in the previous step, and currently only the second segment of the non-shortest path can be taken.

[0131] Through this embodiment, the transmission path selection strategy is determined according to the identification value of the target route identifier, which can improve the accuracy of transmission path determination.

[0132] In an exemplary embodiment, before transmitting the target routing request to the second source node based on the target transmission path, the method further includes:

[0133] S141, when the target identifier value is the second preset value, adjusting the identifier value of the target route identifier from the second preset value to the first preset value;

[0134] S142: When the target identifier value is the first preset value and the target transmission path is not the shortest transmission path, adjust the identifier value of the target route identifier from the first preset value to a second preset value.

[0135] For example, if the target identifier value is "1", it means that the first segment of the non-shortest path was taken in the previous step, and currently only the second segment of the non-shortest path can be taken, and the identifier value of the target route identifier is changed to "0"; if the target identifier value is "0", you can choose to take the shortest path or the non-shortest path; if the shortest path is taken, the identifier value of the target route identifier is still "0", and if the non-shortest path is taken, the identifier value of the target route identifier is marked as "1".

[0136] In an exemplary embodiment, each source node in a group of source nodes is only allowed to connect to one first-level routing node, each first-level routing node in a group of routing nodes is only allowed to connect to one second-level routing node, each second-level routing node is allowed to connect to multiple third-level routing nodes, each third-level routing node is allowed to connect to multiple second-level routing nodes, and there is no transmission path between routing nodes of the same level except the first-level routing nodes.

[0137] That is, in this embodiment, the on-chip interconnect network can be connected to a first-level routing node through a group of source nodes, a first-level routing node is connected to a second-level routing node, a second-level routing node is connected to multiple third-level routing nodes, each third-level routing node is allowed to connect to multiple second-level routing nodes, a second-level routing node is allowed to connect to two first-level routing nodes, and there is no transmission path between other routing nodes of the same level except the first-level routing node, that is, the second-level routing nodes are not connected to each other, the third-level routing nodes are not connected to each other, the first-level routing nodes under the same second-level routing node are connected to each other, and the first-level routing nodes under different second-level routing nodes are not connected to each other.

[0138] In an exemplary embodiment, the number of source nodes that each primary routing node is allowed to connect to is 2. N The number of first-level routing nodes that each second-level routing node is allowed to connect to is 2, where N is a positive integer greater than or equal to 1.

[0139] In an exemplary embodiment, the routing and scheduling algorithm for avoiding deadlock in the packet-based on-chip network proposed in this embodiment is explained by taking the implementation on a general server and a storage server of a PCIe switch as an example.

[0140] In this embodiment, the on-chip interconnect network can be as follows Fig.13 As shown, Fig.13 Each link can transmit data in both directions, that is, it is full-duplex. Fig.13 The boxes in the middle represent ports, and there are 48 ports in total, which can be represented by 6-bit binary numbers from 000000 (port0) to 101111 (port47); Fig.13 The circles in the figure are routing nodes, of which there are 12 first-level routing nodes, which are connected to 4 ports downwards, and to a second-level routing node through two links upwards, and are connected to another first-level routing node under the same second-level routing node through two lines; there are 6 second-level routing nodes, which are connected to two first-level routing nodes downwards; there are 4 third-level routing nodes, which are connected to 6 second-level routing nodes downwards.

[0141] In this application, we mainly discuss how to avoid deadlock under non-shortest paths. The source node of the data packet is denoted as S, and the destination node of the data packet is denoted as D. The specific routing scheduling is as follows:

[0142] Rule 1: For a first-level routing node, if S and D belong to the same second-level routing node, only the shortest path can be used;

[0143] Rule 2: For a first-level routing node, if S and D do not belong to the same second-level routing node, when the first step is to route to the second-level routing node where S is located, the shortest path is preferred. If all shortest paths are occupied, a non-shortest path can be used.

[0144] Rule 3: For the secondary routing node, when routing to the primary routing node where D is located, the shortest path is preferred. If all shortest paths are occupied, a non-shortest path can be used.

[0145] Rule 4: Add a one-bit target route identifier to the routing path: "0" indicates the shortest path, and "1" indicates not the shortest path. When a routing node receives a routing request, it first checks the target route identifier:

[0146] (1) If it is "0", you can choose to take the shortest path or the non-shortest path; if you take the shortest path, the identification value of the target route identifier is still "0", and if you take the non-shortest path, the identification value of the target route identifier is marked as "1";

[0147] (2) If it is "1", it means that the first segment of the non-shortest path was taken in the previous step, and now only the second segment of the non-shortest path can be taken, and the identification value of the target route identifier is changed to "0".

[0148] Assume that there are three routing requests at the same time: Request 1: Level 1 routing node 0 to Level 1 routing node 1; Request 2: Level 2 routing node 0 to Level 1 routing node 0; Request 3: Level 1 routing node 1 to Level 2 routing node 0. Based on the routing scheduling strategy designed by the present invention, possible routing methods are as follows: Fig.14 As shown, no "closed loop" can be created, so no deadlock will occur.

[0149] Specifically, in the on-chip interconnect network in this embodiment:

[0150] 1. For the first-level routing node

[0151] (1) Receive a routing request from the following port:

[0152] The upper four bits of S and D are XORed to obtain M. If the upper three bits of M are not 000___, it means that S and D are not in the same secondary routing node. Then the shortest path is preferred, that is, it is directly forwarded to the secondary routing node. If both ports of the shortest path are occupied, it can be forwarded to another connected primary routing node. The identification value of the target routing identifier is marked according to rule 4. If the result is 000___, it means that S and D are under the same secondary routing node. Check the upper four bits of M. If the upper four bits of M are 0001__, it means that S and D are on different primary routing nodes under the same secondary routing node. It can only be forwarded to another connected primary routing node through the shortest path. If the two shortest path ports connecting another connected primary routing node are occupied, it can only choose to wait; if the upper four bits of M are 0000__, it means that S and D are two ports connected on the same primary routing node, and forwarded downward according to the output port corresponding to the lower two bits of D.

[0153] For example, S is port 10, the binary number is 001010, D is port 7, the binary number is 000111. After the first-level routing node 2 receives the routing request, it performs XOR on the upper three bits of S and D. The result is 001, which means that S and D are not under the same second-level routing node. In this case, the shortest path is preferred, that is, it is forwarded directly to the second-level routing node. If both ports of the shortest path are occupied, it can be forwarded to another connected first-level routing node. The identification value of the target routing identifier is marked according to rule 4.

[0154] (2) Receive a routing request from a secondary routing node:

[0155] Check the identification value of the target routing identifier. If the identification value of the target routing identifier is "0", forward it downward from the corresponding output port according to the lower two bits of D; if the identification value of the target routing identifier is "1", the previous step is not the shortest path, and it can only be forwarded to another first-level routing node connected to it by the shortest path.

[0156] For example, S is port 10, the binary number is 001010, D is port 7, the binary number is 000111, after the first-level routing node 1 receives the routing request, its transfer flag must be "0", then it will be directly forwarded from the port corresponding to the lower two bits 11 of D to port 7.

[0157] For example, S is port 10, the binary number is 001010, D is port 7, the binary number is 000111, after the first-level routing node 0 receives the routing request, its transfer flag must be "1", and currently it can only be forwarded to another first-level routing node 1 connected to it by the shortest path.

[0158] (3) Receive a routing request from the connected first-level routing node port:

[0159] Check the identification value of the target routing identifier. If the identification value of the target routing identifier is "0", forward it downward from the corresponding output port according to the lower two bits of D; if the identification value of the target routing identifier is "1", it means that the previous step is not the shortest path, and it can only be forwarded to the secondary routing node connected to it by the shortest path.

[0160] For example, S is port 1, the binary number is 000001, D is port 7, the binary number is 000111, after the first-level routing node 1 receives the routing request, the identification value of its target routing identifier must be "0", then it is directly forwarded downward from the port corresponding to the lower two bits 11 of D to port 7.

[0161] For example, S is port 1, the binary number is 000001, D is port 10, the binary number is 001010, after the first-level routing node 1 receives the routing request, its transfer flag must be "1", and currently it can only be forwarded to the second-level routing node 0 by the shortest path.

[0162] 2. For secondary routing nodes:

[0163] (1) Receive a routing request from a primary routing node:

[0164] Directly forward upward to the third-level routing node.

[0165] (2) Receive a routing request from a third-level routing node:

[0166] Check the highest bit of the three lowest bits of D. If it is 0__, it means that D is on the left primary routing node linked to the secondary routing node, and it is preferentially routed to the left primary routing node through the shortest path. If the ports of the shortest path connecting the left primary routing node are all occupied, it is transferred to the right primary routing node, and the identification value of the target routing identifier is marked according to rule 4; if it is 1__, it means that D is on the right primary routing node linked to the secondary routing node, and it is preferentially transferred to the right primary routing node through the shortest path. If the ports of the right primary routing node are all occupied, it is transferred to the left primary routing node, and the identification value of the target routing identifier is marked according to rule 4.

[0167] For example, S is port 1, the binary number is 000001, D is port 10, the binary number is 001010, after the secondary routing node 1 receives the routing request, it checks the highest bit of the three lower bits of D, which is 0__, indicating that D is on the left primary routing node 2 linked to the secondary routing node, then it is preferentially routed to the left primary routing node 2 through the shortest path, if the ports of the shortest path connecting the left primary routing node 2 are all occupied, it is transferred to the right primary routing node 3, and the identification value of the target routing identifier is marked according to rule 4.

[0168] For example, S is port 1, the binary number is 000001, D is port 12, the binary number is 001100, after the secondary routing node 1 receives the routing request, it checks the highest bit of the three lower bits of D, which is 1__, indicating that D is on the first-level routing node 3 on the right linked to the second-level routing node, then it is preferentially routed to the first-level routing node 3 on the right through the shortest path. If the ports of the shortest path connecting the first-level routing node 3 on the right are all occupied, it is transferred to the first-level routing node 2 on the left, and the identification value of the target routing identifier is marked according to rule 4.

[0169] 3. For the third-level routing nodes:

[0170] After receiving the routing request from the port below, the three upper bits of D indicate the output port corresponding to D; for example, D=101000, the three upper bits are 101, which means that the output port corresponding to D is port 5.

[0171] Through this embodiment, the diversity of paths is maintained to the greatest extent while deadlock can be avoided. The routing algorithm is simple, and the corresponding hardware implementation is simple and can be realized through simple logic.

[0172] Although the implementation methods described in this application are as above, the above descriptions and definitions are only for the purpose of facilitating the understanding of the implementation methods of this application, and are not intended to limit this application. Any modifications and changes made without departing from the spirit and scope of this application, especially any software and hardware implementation solutions based on this algorithm, are within the scope of protection of the present invention.

[0173] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0174] According to another aspect of the embodiments of the present application, a system for transmitting a routing request is also provided, and the system is used to implement the method for transmitting a routing request provided in the above embodiments, and the description thereof has been made without further repetition. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, the implementation in hardware, or a combination of software and hardware, is also possible and conceivable.

[0175] In this embodiment, the transmission system of routing request is applied to an on-chip interconnect network, wherein the on-chip interconnect network includes at least one group of source nodes and a group of routing nodes divided into multiple levels, each group of source nodes in the at least one group of source nodes is connected to a first-level routing node in a group of routing nodes, in a group of routing nodes, other routing nodes except the first-level routing node are connected to at least two next-level routing nodes, different first-level routing nodes connected to the same second-level routing node have transmission paths, the transmission paths in the on-chip interconnect network are all bidirectional transmission paths, and the target routing node is a routing node in the group of routing nodes;

[0176] A target routing node in an on-chip interconnect network is used to receive a target routing request, wherein the target routing request is a routing request with a first source node as a starting node and a second source node as an end node; based on a target routing scheduling policy corresponding to a level of the target routing node, a target transmission path of the target routing request is determined, wherein a routing scheduling policy corresponding to a first level among the multiple levels and a routing scheduling policy corresponding to a second level among the multiple levels are at least partially different; based on the target transmission path, the target routing request is transmitted to the second source node.

[0177] Optionally, each method step S202 to step S206 in the above embodiment may be executed by a target routing node in the transmission system of the routing request, which has been explained and will not be repeated here.

[0178] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0179] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory, a random access memory, a mobile hard disk, a magnetic disk, or an optical disk.

[0180] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flowchart. Fig.15 , the computer program can be downloaded and installed from the network through the communication part 1509, and / or installed from the removable medium 1511. When the computer program is executed by the central processor 1501, various functions provided by the embodiments of the present application are executed. The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0181] refer to Fig.15 , Fig.15 It is a structural block diagram of a computer system of an optional electronic device provided in an embodiment of the present application.

[0182] Fig.15 The computer system structure block diagram of the electronic device used to implement the embodiment of the present application is schematically shown. Fig.15 As shown, the computer system 1500 includes a central processing unit 1501 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1502 (ROM) or the program loaded from the storage part 1508 to the random access memory 1503 (RAM). Various programs and data required for system operation are also stored in the random access memory 1503. The central processing unit 1501, the read-only memory 1502 and the random access memory 1503 are connected to each other through a bus 1504. The input / output interface 1505 (Input / Output interface, referred to as I / O interface) is also connected to the bus 1504.

[0183] The following components are connected to the input / output interface 1505: an input section 1506 including a keyboard, a mouse, etc.; an output section 1507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1508 including a hard disk, etc.; and a communication section 1509 including a network interface card such as a LAN card, a modem, etc. The communication section 1509 performs communication processing via a network such as the Internet. A drive 1510 is also connected to the input / output interface 1505 as needed. A removable medium 1511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1510 as needed so that a computer program read therefrom is installed into the storage section 1508 as needed.

[0184] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1509, and / or installed from the removable medium 1511. When the computer program is executed by the central processor 1501, various functions defined in the system of the present application are executed.

[0185] It should be noted that Fig.15 The computer system 1500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0186] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0187] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0188] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0189] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0190] The above are only preferred embodiments of the present application and are not intended to limit the embodiments of the present application. For those skilled in the art, the embodiments of the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the embodiments of the present application shall be included in the protection scope of the embodiments of the present application.

Claims

1. A method for transmitting a routing request, characterized in that: The invention is applied to a target routing node in an on-chip interconnect network, wherein the on-chip interconnect network includes at least one group of source nodes and a group of routing nodes divided into multiple levels, each group of source nodes in the at least one group of source nodes is connected to a first-level routing node in the group of routing nodes, and at least two next-level routing nodes are connected to other routing nodes except the first-level routing node in the group of routing nodes, and there are transmission paths between different first-level routing nodes connected to the same second-level routing node, and the transmission paths in the on-chip interconnect network are all bidirectional transmission paths, and the target routing node is a routing node in the group of routing nodes; The method comprises: Receiving a target routing request, wherein the target routing request is a routing request with the first source node as a starting node and the second source node as a terminal node; Determining a target transmission path of the target routing request based on a target routing scheduling policy corresponding to a level of the target routing node, wherein a routing scheduling policy corresponding to a first level of the multiple levels and a routing scheduling policy corresponding to a second level of the multiple levels are at least partially different; Based on the target transmission path, the target routing request is transmitted to the second source node.

2. The method according to claim 1, characterized in that The first-level routing node to which the first source node is connected is a first routing node, and the first-level routing node to which the second source node is connected is a second routing node; The determining, based on a target routing scheduling policy corresponding to the level of the target routing node, a target transmission path of the target routing request comprises: In the case where the first routing node and the second routing node are connected to different first-level routing nodes of the same second-level routing node, when the target routing node is the first routing node, based on the target routing scheduling policy, determining a transmission path from the target routing node to the second routing node as the target transmission path; The target routing scheduling strategy includes: only the shortest transmission path is allowed between different primary routing nodes connected to the same secondary routing node.

3. The method according to claim 2, characterized in that The determining of the target transmission path of the target routing request based on the target routing scheduling policy corresponding to the level of the target routing node also includes: In the case where the first routing node and the second routing node are connected to different first-level routing nodes of the same second-level routing node, when the target routing node is the second routing node, based on the target routing scheduling policy, the transmission path from the target routing node to the second source node is determined as the target transmission path.

4. The method according to claim 1, characterized in that: The first-level routing node to which the first source node is connected is a first routing node, and the first-level routing node to which the second source node is connected is a second routing node; The determining, based on a target routing scheduling policy corresponding to the level of the target routing node, a target transmission path of the target routing request comprises: In the case where the first routing node and the second routing node are the same routing node, and the target routing node is the first routing node, based on the target routing scheduling policy, a transmission path from the target routing node to the second source node is determined as the target transmission path.

5. The method according to claim 1, characterized in that The first-level routing node to which the first source node is connected is a first routing node, and the first-level routing node to which the second source node is connected is a second routing node; The determining, based on a target routing scheduling policy corresponding to the level of the target routing node, a target transmission path of the target routing request comprises: In the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the first routing node, based on the target routing scheduling policy, if the transmission path between the target routing node and the secondary routing node to which the target routing node is connected is not occupied, the transmission path between the target routing node and the secondary routing node to which the target routing node is connected is determined as the target transmission path; if the transmission path between the target routing node and the secondary routing node to which the target routing node is connected is occupied, the transmission path from the target routing node to the secondary routing node to which the target routing node is connected via a third routing node is determined as the target transmission path, wherein the third routing node is a primary routing node connected to the same secondary routing node as the target routing node; Among them, the target routing scheduling strategy includes: the transmission path from the first-level routing node to the connected second-level routing node gives priority to the shortest transmission path, and when the shortest transmission path is occupied, it is allowed to use the transmission path routed via the same-level routing node to the connected second-level routing node.

6. The method according to claim 5, characterized in that The determining of the target transmission path of the target routing request based on the target routing scheduling policy corresponding to the level of the target routing node also includes: In the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is a primary routing node connected to the same secondary routing node as the first routing node, based on the target routing scheduling policy, a transmission path between the target routing node and the secondary routing node to which the target routing node is connected is determined as the target transmission path.

7. The method according to claim 5, characterized in that The determining of the target transmission path of the target routing request based on the target routing scheduling policy corresponding to the level of the target routing node also includes: In the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the secondary routing node to which the first routing node is connected, based on the target routing scheduling policy, the shortest transmission path from the target routing node to the secondary routing node to which the second routing node is connected is determined as the target transmission path; The target routing scheduling strategy includes: allowing the shortest transmission path to be used between different secondary routing nodes.

8. The method according to claim 5, characterized in that The determining of the target transmission path of the target routing request based on the target routing scheduling policy corresponding to the level of the target routing node also includes: In the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the secondary routing node to which the second routing node is connected, based on the target routing scheduling policy, if the transmission path between the target routing node and the second routing node is not occupied, the transmission path between the target routing node and the second routing node is determined as the target transmission path; if the transmission path between the target routing node and the second routing node is occupied, the transmission path from the target routing node to the second routing node via a fourth routing node is determined as the target transmission path, wherein the fourth routing node is a primary routing node connected to the same secondary routing node as the target routing node; Among them, the target routing scheduling strategy includes: the transmission path from the secondary routing node to a subordinate first-level routing node gives priority to the shortest transmission path, and when the shortest transmission path is occupied, it is allowed to adopt a transmission path routed to the one first-level routing node via other subordinate first-level routing nodes.

9. The method according to claim 5, characterized in that The determining of the target transmission path of the target routing request based on the target routing scheduling policy corresponding to the level of the target routing node also includes: In the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the second routing node, based on the target routing scheduling policy, the transmission path from the target routing node to the second source node is determined as the target transmission path.

10. The method according to claim 5, characterized in that The determining of the target transmission path of the target routing request based on the target routing scheduling policy corresponding to the level of the target routing node also includes: In the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is a primary routing node connected to the same secondary routing node as the second routing node, based on the target routing scheduling policy, a transmission path between the target routing node and the second routing node is determined as the target transmission path; The target routing scheduling strategy includes: only the shortest transmission path is allowed between different primary routing nodes connected to the same secondary routing node.

11. The method according to claim 5, characterized in that Before determining the target transmission path of the target routing request based on the target routing scheduling policy corresponding to the level of the target routing node, the method further includes: In the case where the first routing node and the second routing node are connected to different secondary routing nodes, when the target routing node is the first routing node, it is determined whether two transmission paths between the target routing node and the secondary routing node to which the target routing node is connected are both occupied, wherein two transmission paths are provided between different primary routing nodes belonging to the same secondary routing node, and two transmission paths are also provided between a secondary routing node and its subordinate primary routing node.

12. The method according to claim 1, characterized in that The determining, based on a target routing scheduling policy corresponding to the level of the target routing node, a target transmission path of the target routing request comprises: When the target routing node is a routing node of another level except the first level and the second level among the multiple levels, based on the target routing scheduling policy, a transmission path for transmitting the target routing request through an output port matching the second source node is determined as the target transmission path; The target routing scheduling strategy includes: routing nodes at other levels except the first level and the second level transmit routing requests via output ports that match the terminal nodes of the routing requests.

13. The method according to any one of claims 1 to 12, characterized in that A binary number having a target number of bits as the node identifier of each source node in the group of source nodes, wherein the node identifiers of the source nodes connected to the same first-level routing node have the same binary bits except a group of designated bits, and the node identifiers of the source nodes connected to the same second-level routing node have the same binary bits except the group of designated bits and a binary bit preceding the group of designated bits; Before determining the target transmission path of the target routing request based on the target routing scheduling policy corresponding to the level of the target routing node, the method further includes: It is determined whether the first routing node and the second routing node are connected to the same secondary routing node according to the node identifier of the first source node and the node identifier of the second source node.

14. The method according to claim 13, characterized in that The determining, according to the node identifier of the first source node and the node identifier of the second source node, whether the first routing node and the second routing node are connected to the same secondary routing node includes: Performing a bitwise exclusive OR operation on the node identifier of the first source node and the node identifier of the second source node to obtain a target operation result; In the target operation result, when all binary bits except the set of designated bits are 0, determining that the first routing node and the second routing node are the same routing node; In the target operation result, when all binary bits except the set of designated bits and the binary bits preceding the set of designated bits are 0, it is determined that the first routing node and the second routing node are different first-level routing nodes connected to the same second-level routing node.

15. The method according to claim 13, characterized in that On each first-level routing node in the group of routing nodes, the port identifier of the output port corresponding to the source node subordinate to each first-level routing node corresponds to the binary value of the group of designated bits in the node identifier of the source node subordinate to each first-level routing node; On each secondary routing node in the group of routing nodes, the port identifier of the output port corresponding to the primary routing node subordinate to each secondary routing node corresponds to the binary value of the previous binary bit of the group of designated bits in the node identifier of the source node subordinate to each primary routing node; On each third-level routing node in the group of routing nodes, the port identifier of the output port corresponding to the second-level routing node under each third-level routing node corresponds to the binary value of the other binary bits in the node identifier of the source node under each second-level routing node, except the previous binary bit of the group of designated bits.

16. The method according to any one of claims 1 to 12, characterized in that The target routing request carries a target routing identifier, wherein the target routing identifier is used to identify the type of transmission path adopted before the target routing request is routed to the target routing node; After receiving the target routing request, the method further includes: Extracting the identification value of the target route identification from the target route request to obtain a target identification value; In a case where the target identification value is a first preset value, determining that a transmission path adopted before the target routing request is routed to the target routing node is the shortest transmission path; When the target identification value is a second preset value, determining that a transmission path adopted before the target routing request is routed to the target routing node is a non-shortest transmission path; Among them, the target routing scheduling strategy includes: on the first-level routing node, when the target identification value is the first preset value, allowing the shortest transmission path or the non-shortest transmission path to be used; when the target identification value is the second preset value, only allowing the shortest transmission path to be used.

17. The method according to claim 16, characterized in that Before transmitting the target routing request to the second source node based on the target transmission path, the method further includes: When the target identifier value is the second preset value, adjusting the identifier value of the target route identifier from the second preset value to the first preset value; When the target identifier value is the first preset value and the target transmission path is not the shortest transmission path, the identifier value of the target route identifier is adjusted from the first preset value to the second preset value.

18. The method according to any one of claims 1 to 12, characterized in that Each source node in the group of source nodes is only allowed to connect to one first-level routing node. In the group of routing nodes, each first-level routing node is only allowed to connect to one second-level routing node. Each second-level routing node is allowed to connect to multiple third-level routing nodes. Each third-level routing node is allowed to connect to multiple second-level routing nodes. There is no transmission path between routing nodes of the same level except the first-level routing nodes.

19. The method according to claim 18, characterized in that The number of source nodes that each primary routing node is allowed to connect to is 2 N The number of first-level routing nodes that each second-level routing node is allowed to connect to is 2, where N is a positive integer greater than or equal to 1.

20. A transmission system for routing requests, characterized in that: include: An on-chip interconnect network, wherein the on-chip interconnect network comprises at least one group of source nodes and a group of routing nodes divided into a plurality of levels, each group of source nodes in the at least one group of source nodes is connected to a first-level routing node in the group of routing nodes, at least two next-level routing nodes are connected to other routing nodes except the first-level routing node in the group of routing nodes, transmission paths exist between different first-level routing nodes connected to the same second-level routing node, all transmission paths in the on-chip interconnect network are bidirectional transmission paths, and the target routing node is a routing node in the group of routing nodes; The target routing node in the on-chip interconnect network is used to receive a target routing request, wherein the target routing request is a routing request with the first source node as the starting node and the second source node as the end node; Determining a target transmission path of the target routing request based on a target routing scheduling policy corresponding to a level of the target routing node, wherein a routing scheduling policy corresponding to a first level of the multiple levels and a routing scheduling policy corresponding to a second level of the multiple levels are at least partially different; Based on the target transmission path, the target routing request is transmitted to the second source node.

21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the method according to any one of claims 1 to 19 when executed by a processor.

22. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 19 is implemented.