Message transmission method and device, equipment and storage medium

By adopting the Torus-Hexagon Network structure in the three-dimensional on-chip network, building basic modules and two-dimensional network topology and making inter-layer connections, the problem of delay and diameter increase in the three-dimensional network topology is solved, and the message transmission efficiency and network are improved. performance.

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

Patent Information

Application Number
CN202410931731.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

When the scale of the three-dimensional on-chip network topology increases, the average delay and network diameter increase, affecting the packet transmission efficiency.

Method used

Using a three-dimensional network topology based on the Torus-Hexagon Network (THN) structure, by constructing basic modules and two-dimensional network topology structures, and connecting between layers, a ring structure is formed to reduce the longest path between any two nodes in the network and improve transmission efficiency.

Benefits of technology

It shortens the longest path between any two nodes in the network, reduces network delay and load capacity, and improves message transmission efficiency and network performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677785A
    Figure CN118677785A
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and discloses a message transmission method and device, equipment and a storage medium, and the method comprises the steps: determining a target node and a source node, transmitting a target message from the source node to a first node on the same layer as the target node when the target node and the source node are not on the same layer, and transmitting the target message to a second node on the same layer as the target node when the target is on the first node; and transmitting the target message from the first node to a target node, the target node and the target node being located in the same module, and transmitting the target message in the same module so as to transmit the target message to the target node. According to the method, transmission is carried out based on a three-dimensional network topology structure, firstly, inter-layer message transmission is carried out, after the inter-layer message transmission is carried out, a target message is transmitted to a node of the same basic module as a target node, each module of the structure comprises a plurality of nodes, the network direction is small, and the delay is small, so that the link overhead is small when the message transmission is carried out, and the transmission efficiency is high. And the transmission efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a message transmission method, device, equipment and storage medium. Background Art

[0002] Network-on-Chip (NoC) is a communication network structure implemented on an integrated circuit chip, which is mainly used to connect various functional modules, processor cores, storage units and other important components on the chip. With the development of the semiconductor industry, especially the rise of multi-core processors, NoC plays an increasingly important role in chip internal communication. The 3D Mesh structure is the most common three-dimensional NoC topology structure. This structure has the advantages of good scalability, simple structure, and easy implementation. However, when the network scale increases, the average delay and network diameter of the structure will gradually increase, affecting the efficiency of message transmission. Summary of the invention

[0003] In view of this, the present invention provides a message transmission method, device, equipment and storage medium to improve the transmission efficiency of network messages.

[0004] In a first aspect, the present invention provides a message transmission method, the method comprising:

[0005] Determine a destination node and a source node, the source node is used to transmit the sent target message to the destination node, the destination node and the source node are nodes in any basic module in the three-dimensional network topology structure;

[0006] When the destination node and the source node are not in the same layer, the target message is transmitted from the source node to a first node in the same layer as the destination node, the first node is in any basic module in the same layer as the destination node in the three-dimensional network topology structure, and the first node is used to connect to a node in any basic module in another layer;

[0007] When the target message is at the first node, transmitting the target message from the first node to a target node of the same basic module as the destination node;

[0008] The target message is transmitted from the target node to the destination node based on a preset intra-module routing algorithm.

[0009] In an optional implementation manner, transmitting the target message from the source node to a first node at the same layer as the destination node includes:

[0010] Determining whether the destination node and the source node are in the same layer based on the coordinates of the destination node and the coordinates of the source node;

[0011] When the destination node and the source node are not in the same layer, routing the target message from the source node to a first basic node of the same basic module as the source node, the first basic node being used to connect to a node in any basic module of another layer;

[0012] The target message is transmitted from the first base node to the first node.

[0013] In an optional implementation, when the target message is at the first node, transmitting the target message from the first node to a target node of the same basic module as the destination node includes:

[0014] Transmitting the target message from the first node to a second node in the same first direction as the destination node, the second node being in any basic module of the same layer as the destination node, and the second node being used to connect to a node in any basic module of the same layer in the first direction;

[0015] The target message is transmitted from the second node to a target node in the same second direction as the destination node, and the target node is used to connect with a node in any basic module in the same layer in the second direction.

[0016] In an optional implementation, transmitting the target message from the first node to a second node in the same first direction as the destination node includes:

[0017] Determining whether the first direction of the first node is the same as the first direction of the destination node based on the coordinates of the first node and the coordinates of the destination node;

[0018] When the first direction is different, transmitting the target message from the first node to a second basic node of the same basic module as the first node;

[0019] The target message is transmitted from the second basic node to a second node in the same first direction as the destination node, and a link between the second basic node and the second node is a link in the first direction.

[0020] In an optional implementation, the transmitting the target message from the second node to a target node in the same second direction as the destination node includes:

[0021] Determining whether the second direction of the second node is the same as the second direction of the destination node based on the coordinates of the second node and the coordinates of the destination node;

[0022] When the second direction is different, transmitting the target message from the second node to a third basic node of the same basic module as the second node;

[0023] The target message is transmitted from the third basic node to a target node in the same second direction as the destination node, and the link between the third basic node and the target node is a link in the second direction.

[0024] In an optional embodiment, the method further includes:

[0025] A basic module is constructed, and a three-dimensional network topology structure is constructed based on the basic module, wherein the basic module includes a plurality of nodes.

[0026] In an optional implementation, the constructing of basic modules and constructing a three-dimensional network topology structure based on the basic modules includes:

[0027] Constructing a basic module, wherein the basic module includes a preset first number of nodes;

[0028] The links between the nodes are local links, and any of the nodes has a corresponding number, which is used to identify the position of the node in the basic module;

[0029] Constructing a two-dimensional network topology structure based on the basic modules;

[0030] The number of the basic modules is a preset second number, the number of basic modules in the first direction and the second direction of the two-dimensional network topology structure is consistent, the node with a first specific number in any of the basic modules is used to connect to the node with a first specific number in any other basic module, and the link between the node with a first specific number in any of the basic modules and the node with a first specific number in any other basic module is a link in the first direction;

[0031] The node with the second specific number in any of the basic modules is used to connect to the node with the second specific number in any other of the basic modules, and the link between the node with the second specific number in any of the basic modules and the node with the second specific number in any other of the basic modules is a link in the second direction;

[0032] A preset third number of two-dimensional network topological structures are connected between layers to determine a three-dimensional network topological structure, and the third specifically numbered node in any basic module is used to connect with the third specifically numbered node in any basic module in other layers.

[0033] In a second aspect, the present invention provides a message transmission device, the device comprising:

[0034] A node determination module, used for determining a destination node and a source node, wherein the source node is used for transmitting the sent target message to the destination node, and the destination node and the source node are nodes in any basic module in the three-dimensional network topology structure;

[0035] an inter-layer transmission module, configured to transmit the target message from the source node to a first node in the same layer as the destination node when the destination node is not in the same layer as the source node, the first node being in any basic module in the same layer as the destination node in the three-dimensional network topology structure, and the first node being configured to connect to a node in any basic module in another layer;

[0036] an intra-layer transmission module, which, when the target message is at the first node, transmits the target message from the first node to a target node of the same basic module as the destination node;

[0037] The intra-module transmission module is used to transmit the target message from the target node to the destination node based on a preset intra-module routing algorithm.

[0038] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the message transmission method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0039] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the message transmission method of the first aspect or any corresponding embodiment thereof.

[0040] The message transmission method provided in this embodiment first determines the destination node and the source node. When the destination node and the source node are not in the same layer, the target message is transmitted from the source node to the first node in the same layer as the destination node. When the target is in the first node, the target message is transmitted from the first node to the destination node. The target node and the destination node are in the same module, and the target message is transmitted in the same module to transmit the target message to the destination node. The method is based on a three-dimensional network topology structure for transmission. First, the message is transmitted between layers. After being in the same layer, the target message is transmitted to a node in the same basic module as the destination node. The structure includes multiple nodes in each module, the network is relatively small, and the delay is relatively small. Therefore, the link overhead is relatively small when transmitting messages, and the transmission efficiency is relatively high. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 is a schematic diagram of a three-dimensional torus structure according to an embodiment of the present invention;

[0043] Figure 2 is a schematic diagram of a basic module schematic diagram according to an embodiment of the present invention;

[0044] Figure 3 is a schematic diagram of a two-dimensional torus interconnection topology structure according to an embodiment of the present invention;

[0045] Figure 4 is a schematic diagram of a three-dimensional torus interconnection topology network structure according to an embodiment of the present invention;

[0046] Figure 5 is a flow chart of a message transmission method according to an embodiment of the present invention;

[0047] Figure 6 is a schematic diagram of a three-dimensional network topology structure according to an embodiment of the present invention;

[0048] Figure 7 is a structural block diagram of a message transmission device according to an embodiment of the present invention;

[0049] Figure 8 It is a schematic diagram of the hardware structure of the device according to the embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0051] The semiconductor industry has been following the development of "Moore's Law", that is, the number of transistors that can be accommodated on an integrated circuit will double approximately every two years. This trend has led to a sharp increase in the number of transistors in the processor, which has greatly improved the performance of single-core processors. However, this has also brought problems such as increased power consumption, reduced resource utilization, and reduced reliability to the design of the processor architecture. In order to effectively utilize the huge number of transistors and further improve processor performance while ensuring low power consumption, the design of multi-core processors has become a key direction. On-chip networks are proposed to solve the problem of efficient and low-energy on-chip interconnection in multi-core processors.

[0052] On-chip network is a major technical component for multi-core system-on-chip, which provides a new on-chip communication method between cores. NoC is mainly composed of routers and links, where routers are responsible for data forwarding and routing decisions, and links are used to connect various routers and computing nodes. It can be widely used in multi-core processors, high-performance computing, artificial intelligence, machine learning and many other aspects.

[0053] In the research of three-dimensional on-chip networks, the 3D Mesh structure is the most common three-dimensional on-chip network topology. This structure has the advantages of good scalability, simple structure, and easy implementation. However, when the network scale increases, the average delay and network diameter of the structure will gradually increase, affecting the efficiency of message data transmission.

[0054] Based on this, an embodiment of the present invention provides a message transmission method, which is based on a three-dimensional network topology structure, which is a three-dimensional interconnected network (Torus-Hexagon Network, abbreviated as THN) based on Torus (ring surface). Each row, each column and the head and tail nodes of the three-dimensional grid structure are connected to each other to form a ring to form a 3D Torus (three-dimensional ring surface) structure. Figure 1 As shown in the figure, in order to clearly show the connection relationship in the cube, only the three outermost faces facing the reader are connected by Torus, but in fact, any layer in this structure is connected by Torus, which shortens the longest path between any two nodes in the network compared to 3D Mesh, so the performance of 3D Torus is better than 3D Mesh. The THN network is composed of THN basic modules connected in 3D Torus connection mode.

[0055] According to an embodiment of the present invention, a message transmission method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0056] In this embodiment, a message transmission method is provided, which includes: constructing a basic module, and constructing a three-dimensional network topology structure based on the basic module.

[0057] The basic module includes multiple nodes. A node is an element that constitutes an on-chip network and may include processing elements and routing. The links between nodes may be used to transmit message data.

[0058] Specifically, the method comprises the following steps:

[0059] Step S101, constructing a basic module.

[0060] The basic module includes a preset first number of nodes, the links between the nodes are local links, and any node has a corresponding number, which is used to identify the position of the node in the basic module.

[0061] For ease of description, the three-dimensional network topology in this method is 6×n x ×n y ×n z As an example, first construct 6×n x ×n y ×n z Three-dimensional network topology, n x Indicates the number of columns in each layer of the THN network (in the x-axis direction), n y Indicates the number of rows in each layer of the THN network (in the y-axis direction), n z Indicates the number of layers of the THN network (in the z-axis direction). The first number is preset to 6, which is the number of nodes contained in the basic module. Each basic module can be considered as a set of nodes, and 6 nodes constitute a basic module. The node number is represented by three-bit binary. Let the node number be p1p2p3, and define the link between the nodes in each basic module as a local link. The connection rules of the nodes in the basic module of the THN topology are: 1) Node p1p2p3 is directly connected to node p1__ through a local link; 2) Node p1p2p3 is directly connected to node _p2p3 through a local link. Please refer to Figure 2 The basic module diagram shown in the figure, the circles represent nodes, the lines between nodes represent local links, which are bidirectional channels. The degree of each node in the THN topology basic module is 3, there are 9 local links, and the network directness is 2.

[0062] Step S102: construct a two-dimensional network topology structure based on the basic modules.

[0063] The number of the basic modules is a preset second number, the number of basic modules in the first direction and the second direction of the two-dimensional network topology structure is consistent, the node with a first specific number in any of the basic modules is used to connect with the node with a first specific number in any other basic module, and the link between the node with a first specific number in any of the basic modules and the node with a first specific number in any other basic module is a link in the first direction; the node with a second specific number in any of the basic modules is used to connect with the node with a second specific number in any other basic module, and the link between the node with a second specific number in any of the basic modules and the node with a second specific number in any other basic module is a link in the second direction.

[0064] In this step, a two-dimensional network topology is constructed. x ×n y The basic modules are arranged in the form of a two-dimensional Torus network, and the second number is preset to n x ×n y pcs. Figure 3 Taking the 6×4×4 two-dimensional torus interconnection topology structure composed of 4×4 THN basic modules shown as an example, the lower left corner of the network is taken as the coordinate origin, and the position of each basic module is represented by the coordinates (x, y). The nodes in each basic module are represented as (x, y, p1p2p3). In this embodiment, the second number is preset to 16, the first direction is the y direction, and the second direction is the x direction. In the x direction, each THN basic module is connected to other THN basic modules through its nodes 001 and 101, and in the y direction, each THN basic module is connected to other THN basic modules through its nodes 000 and 010. The first specific number in this embodiment is 000 and 010, and the second specific number is 001 and 101. The connection rules between basic modules are as follows:

[0065] Suppose there are two THN basic modules (x1, y1) and (x2, y2). If one of the following two conditions is met, it means that the two basic modules are connected:

[0066] Condition 1: x1=(x2±1)modn x , and y1=y2;

[0067] Condition 2: y1=(y2±1)modn y , and x1=x2.

[0068] Among them, n x Indicates the number of basic modules in the x-axis direction, n y Indicates the number of basic modules in the y-axis direction.

[0069] Condition 1 indicates that these two basic modules are in the same row, if x1 = (x2-1) mod n x , then the node (x1,y1,101) is directly connected to the node (x2,y2,001); if x1=(x2+1)modn x , then the node (x1,y1,001) is directly connected to the node (x2,y2,101). Define the link between the node (x1,y1,101) and the node (x2,y2,001) and the link between the node (x1,y1,001) and the node (x2,y2,101) as x-links.

[0070] Condition 2 indicates that the two basic modules are in the same column, if y1 = (y2-1) mod n y , then the node (x1,y1,000) is directly connected to the node (x2,y2,010); if y1=(y2+1)modn y , then the node (x1,y1,010) is directly connected to the node (x2,y2,000). Define the link between the node (x1,y1,000) and the node (x2,y2,010) and the link between the node (x1,y1,010) and the node (x2,y2,000) as y links.

[0071] Step S103: perform inter-layer connection on a preset third number of two-dimensional network topological structures to determine a three-dimensional network topological structure.

[0072] Among them, the node with the third specific number in any of the basic modules is used to connect with the node with the third specific number in any of the basic modules in other layers.

[0073] In this step, n z Layer n x ×n y The two-dimensional THN is connected between layers in the manner of a 3D Torus network. Each node in the network is represented as (x, y, z, p1p2p3), and the third number is preset to n. z .by Figure 4 Take the 6×3×3×3 three-dimensional torus interconnection topology network structure shown as an example. The structure contains 162 nodes, the degree of each node is 4, and the network diameter is 10.

[0074] Suppose there are two THN basic modules (x1, y1, z1) and (x2, y2, z2) located in different layers. If z1=(z2±1)modn z, and x1 = x2, y1 = y2, it means that the two basic modules are connected, and the link between them is defined as a z link. Each THN basic module is connected to the THN basic modules of other layers through its nodes 100 and 110. If z1 = (z2-1) mod n z , then the node (x1,y1,z1,110) is directly connected to the node (x2,y2,z2,100); if z1=(z2+1)modn z , then the node (x1, y1, z1, 100) is directly connected to the node (x2, y2, z2, 110), and accordingly, the third specific numbers of the nodes are 100 and 110.

[0075] In actual applications, the preset first number, the preset second number, the preset third number, the first direction, the second direction, the first specific number, the second specific number and the third specific number can all be set as required. This embodiment is only an example.

[0076] In this embodiment, 6×n x ×n y ×n z The characteristics of the three-dimensional THN topology are as follows:

[0077] (1)6×n x ×n y ×n z THN topology has N = 6 × n x ×n y ×n z nodes and 12×n x ×n y ×n z Links;

[0078] (2) The diameter of the 8×nTHN network is (n x ×n y ×n z is an even number),

[0079] (n x ×n y ×n z is an odd number);

[0080] (3)6×n x ×n y ×n z The connectivity of each node in the THN topology is 4.

[0081] The complexity of the interconnected network topology is related to the connectivity and the number of links. As shown in Table 1, the connectivity and the number of links of the THN network are smaller than those of the 3D Mesh, and it can accommodate more nodes, so the THN network proposed in the present invention is easy to implement in hardware. In addition, the diameter of the THN network is smaller than that of the 3D Mesh, so the THN network has a smaller delay, a stronger load capacity, and a better network performance.

[0082] As shown in Table 1, when the THN interconnected network nodes are more than the 3D Torus network, the network diameter of the THN network is larger than that of the 3D Torus network, and the connectivity and link number are smaller than those of the 3D Torus network, indicating that the THN network can alleviate the problems of complex network structure and difficult wiring that are common in the three-dimensional on-chip network topology structure, and is easy to implement in hardware. The 3D THN proposed in the present invention has the advantages of small network delay, good network scalability, and easy hardware implementation, and can effectively improve the efficiency of message transmission.

[0083] Table 1 Comparison of THN with other networks

[0084]

[0085] The method provided in this embodiment constructs a three-dimensional network topology structure. First, a topology basic module is constructed, a two-dimensional topology structure is constructed based on the substrate module, and then multiple two-dimensional topology structures are connected in layers to form a three-dimensional network topology structure. The connectivity and number of links are small, and more nodes can be accommodated. Therefore, it is easy to implement in hardware. Due to the small diameter, the network delay is smaller and the load capacity is stronger.

[0086] In this embodiment, a message transmission method is provided, which is implemented based on the three-dimensional network topology structure constructed in the above embodiment. Figure 5 is a flow chart of a message transmission method according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:

[0087] Step S201, determining the destination node and the source node.

[0088] The source node is used to transmit the sent target message to the destination node, and the destination node and the source node are nodes in any basic module in the three-dimensional network topology structure.

[0089] The source node is the node that sends the target message, and the destination node is the node to which the target message is to be sent. Let the source node be (x s ,y s ,z s ,p s1 p s2 p s3 ), the destination node is (x d ,yd ,z d ,p d1 p d2 p d3 ).

[0090] Step S202: Transmit the target message from the source node to the first node at the same layer as the destination node.

[0091] The first node is located in any basic module of the same layer as the destination node in the three-dimensional network topology structure, and the first node is used to connect with nodes in any module of other layers.

[0092] First, inter-layer routing is performed. If the destination node is not on the same layer as the source node, the target message needs to be transmitted to the first node, which is on the same layer as the destination node. Taking the z direction as an example, it is determined based on the ordinates of the destination node and the source node whether the message needs to be transmitted from the destination node to a node on the same layer as the destination node. The node is used for link transmission in the z direction. Through the node, the message can be transmitted between layers to reach the first node, and the first node has a specific number.

[0093] Taking the above 6×n x ×n y ×n z Taking the three-dimensional network topology structure of as an example, the first node is the third specific number. In the process of transmitting the target message to the third specific number, it may be necessary to first transmit the target message from the source node to a node in the same basic module as the source node and having the third specific number, and then transmit it to a node in the same layer as the destination node and having the third specific number.

[0094] If the destination node and the source node are in the same layer, there is no need for inter-layer routing, and routing can be performed directly between nodes in the same layer.

[0095] In some optional implementations, step S202 includes the following steps:

[0096] Step S2021, judging whether the destination node and the source node are in the same layer based on the coordinates of the destination node and the coordinates of the source node;

[0097] Step S2021: When the destination node and the source node are not in the same layer, the target message is routed from the source node to the first basic node of the same basic module as the source node. The first basic node is used to connect to a node in any basic module of another layer;

[0098] Step S2021: Transmit the target message from the first basic node to the first node.

[0099] First, perform the following calculation:

[0100] Δz1=z d -z s

[0101] Δz2=n z -2|Δz1|

[0102] Among them, z d Indicates the z coordinate of the destination node, z s Indicates the z coordinate of the source node, n z It represents the number of layers in the z direction of the three-dimensional network topology structure, Δz1 represents the first difference value calculated by z, and Δz2 represents the second difference value calculated by z.

[0103] (1) If Δz1 = 0, it means that the THN basic module where the destination node is located is at the same layer as the THN basic module where the source node is located, and the target message does not need to be routed on the z link.

[0104] (2) If any of the following two conditions is met, the target message needs to be routed from the source node to the first basic node (x s ,y s ,z s ,110), that is, when one of the conditions is met, the corresponding first basic node is (x s ,y s ,z s ,110).

[0105] Condition 1) Δz1>0, and Δz2≥0, then l z =2|Δz1|-1(l z represents the routing path length in the z direction), m z =|Δz1|(m z represents the number of z links used in the routing process);

[0106] Condition 2) Δz1<0, and Δz2<0, then l z =2(|Δz1|-|Δz2|)-1,m z =|Δz1|-|Δz2|.

[0107] The specific routing process is as follows:

[0108] Use the routing algorithm in the THN basic module to send the target message from the source node (x s ,y s ,z s ,p s1 p s2 p s3 ) is transmitted to node (x) via 1 or 2 hops s ,y s ,z s ,110).

[0109] When reaching the first basic node (x s ,y s ,z s ,110), in the z direction, the target message is sent from node

[0110] (x s ,y s ,z s ,110) reaches node (x) through link z s ,y s ,z1,100), and then reach the node (x s ,y s ,z1,110), and then reach node (x s ,y s ,z2,100), until passing l z Jump to the layer where the destination node is located, that is, to the first node (x s ,y s ,z d ,100). The specific process is:

[0111]

[0112] Among them, z i =(z s +i)modn z ,i=1,2,…,m z , let the first node T z =(x s ,y s ,z d ,100),z i Represents the z coordinate of the node in the i-th layer.

[0113] (3) If any of the following two conditions is met, the target message needs to be routed from the source node to the first basic node (x s ,y s ,z s ,100), that is, when one of the conditions is met, the corresponding first basic node is (x s ,y s ,z s ,100).

[0114] Condition 1) Δz1>0, and Δz2<0, then l z =2(|Δz1|-|Δz2|)-1,m z =|Δz1|-|Δz2|;

[0115] Condition 2) Δz1<0, and Δz2≥0, then lz =2|Δz1|-1,m z =|Δz1|.

[0116] The specific routing process is as follows:

[0117] Use the routing algorithm in the THN basic module to send the target message from the source node (x s ,y s ,z s ,p s1 p s2 p s3 ) is transmitted to the first basic node (x) through one or two hops. s ,y s ,z s ,100).

[0118] In the z direction, the target message is transmitted from the first basic node (x s ,y s ,z s ,100) reaches node (x) through link z s ,y s ,z1,110), and then reach the node (x s ,y s ,z1,100), and then reach node (x s ,y s ,z2,110), until passing l z Jump to the layer where the destination node is located, that is, reach the first node (x s ,y s ,z d ,110). The specific process is as follows:

[0119]

[0120] Among them, z i =(z s -i)modn z ,i=1,2,...,m z , let the first node T z =(x s ,y s ,z d ,110),z i Represents the z coordinate of the node in the i-th layer.

[0121] In this embodiment, it is necessary to determine the first basic node according to the coordinates of the target node and the source node, and then transmit the target message from the first basic node to the first node. Different first basic nodes may correspond to different first nodes.

[0122] Step S203: when the target message is in the first node, the target message is transmitted from the first node to a target node in the same module as the destination node.

[0123] The first node and the destination node are in the same layer, that is, the z coordinate is the same. The first node and the destination node may be in the same module or not. Whether they are in the same module can be determined based on the coordinates of the first node and the destination node. When they are not in the same module, the target message needs to be transmitted from the first node to the target node in the same module as the destination node. The coordinates of the target node depend on the number corresponding to the first node. In the process of transmitting the target message from the first node to the target node, multiple hops may be required. Each hop needs to follow the rules of the routing algorithm, that is, jumping from a specific number to a corresponding specific number according to the transmission direction.

[0124] In some optional implementations, step S203 includes the following steps:

[0125] Step S2031: Transmit the target message from the first node to the second node in the same first direction as the destination node.

[0126] The second node is located in any basic module of the same layer as the destination node, and the second node is used to connect to a node in any basic module of the same layer in the first direction.

[0127] When the target message arrives at the first node, it may need to be transmitted in the first direction and the second direction when it is transmitted from the first node to the target node. The node in the first direction is assumed to be the second node.

[0128] Further, the following steps are included:

[0129] Step a1: determine whether the first direction of the first node is the same as the first direction of the destination node based on the coordinates of the first node and the coordinates of the destination node.

[0130] In this embodiment, the first node is (x s ,y s ,z d ,100) or (x s ,y s ,z d ,110), taking the first direction as the y direction as an example, first perform the following calculation:

[0131] Δy1=y d -y s

[0132] Δy2=n y -2|Δy1|

[0133] Among them, y d Indicates the y coordinate of the destination node, ys Indicates the y coordinate of the source node, n y It represents the number of rows of each layer of the three-dimensional network topology structure (in the y-axis direction), Δy1 represents the first difference calculated by y, and Δy2 represents the second difference calculated by y.

[0134] If Δy1 = 0, it means that the basic module where the destination node is located is the same as the first node T z The basic modules are in the same row, that is, the first direction of the first node and the destination node, and the target message does not need to be routed on the y link.

[0135] If Δy1=0 is not satisfied, it means that the first directions are different and routing needs to be performed on the y link.

[0136] Step a2, when the first direction is different, transmitting the target message from the first node to a second basic node of the same basic module as the first node;

[0137] Step a3: Transmit the target message from the second basic node to a second node in the same first direction as the destination node, and the link between the second basic node and the second node is a link in the first direction.

[0138] The second basic node can be (x s ,y s ,z d ,010) or (x s ,y s ,z d ,000), which needs to be determined in the following two situations.

[0139] (1) If any of the following two conditions is met, the target message needs to be sent from the first node T z Routing to the second basic node (x s ,y s ,z d ,010).

[0140] Condition 1) Δy1>0, and Δy2≥0, then l y =2|Δy1|-1(l y represents the routing path length in the y direction), m y =|Δy1|(m y represents the number of y links used in the routing process);

[0141] Condition 2) Δy1<0, and Δy2<0, then l y =2(|Δy1|-|Δy2|)-1,m y =|Δy1|-|Δy2|.

[0142] The specific routing process is as follows:

[0143] Use the routing algorithm in the THN basic module to send the target message from the first node T z Transmitted to the second basic node (x) through 1 or 2 hops s ,y s ,z d ,010).

[0144] When reaching the second basic node (x s ,y s ,z d ,010), in the y direction, the target message is sent from the second basic node (x s ,y s ,z d ,010) reaches node (x) through link y s ,y1,z d ,000), and then reach the node (x s ,y1,z d ,010), and then reach node (x) through link y s ,y2,z d ,000), until after l y Jump to the row where the destination node is located, that is, reach the second node (x s ,y d ,z d ,000). The specific process is:

[0145]

[0146] Among them, y i =(y s +i)modn y ,i=1,2,...,m y , let the second node T y =(x s ,y d ,z d ,000),y i Represents the y coordinate of the node of the i-th row of basic modules.

[0147] (2) If any of the following two conditions is met, the target message needs to be sent from the first node T z Routing to the second basic node (x s ,y s ,z d ,000).

[0148] Condition 1) Δy1>0, and Δy2<0, then l y =2(|Δy1|-|Δy2|)-1,my =|Δy1|-|Δy2|;

[0149] Condition 2) Δz1<0, and Δz2≥0, then l z =2|Δz1|-1,m z =|Δz1|.

[0150] The specific routing process is as follows:

[0151] Use the routing algorithm in the THN basic module to send the message from the first node T z Transmitted to the second basic node (x) through 1 or 2 hops s ,y s ,z d ,000).

[0152] When reaching the second basic node (x s ,y s ,z d ,000), in the y direction, the target message is transmitted from the second basic node (x s ,y s ,z d ,000) reaches node (x) through link y s ,y1,z d ,010), and then reach the node (x s ,y1,z d ,000), and then reach node (x) through link y s ,y2,z d ,010), until after l y Jump to the row where the destination node is located, that is, reach the second node (x s ,y d ,z d ,010). The specific process is:

[0153]

[0154] Among them, y i =(y s -i)modn y ,i=1,2,...,m y , let the second node T y =(x s ,y d ,z d ,010),y i Represents the y coordinate of the node of the i-th row of basic modules.

[0155] Step S2032: Transmit the target message from the second node to a target node in the same second direction as the destination node.

[0156] The target node is used to connect with a node in any basic module in the second direction in the same layer.

[0157] When the target message arrives at the second node, it may need to be transmitted in the second direction when being transmitted from the second node to the target node. The node in the second direction is set as the target node.

[0158] Further, the following steps are included:

[0159] Step b1, judging whether the second direction of the second node is the same as the second direction of the destination node based on the coordinates of the second node and the coordinates of the destination node.

[0160] In this embodiment, the second node is (x s ,y d ,z d ,000) or (x s ,y d ,z d ,010), taking the second direction as the x direction as an example, first perform the following calculation:

[0161] Δx1=x d -x s

[0162] Δx2=n x -2|Δx1|

[0163] Among them, x d Indicates the x coordinate of the destination node, x s Indicates the x-coordinate of the source node, n x represents the number of columns of each layer of the three-dimensional network topology structure (in the x-axis direction), Δx1 represents the first difference calculated by x, and Δx2 represents the second difference calculated by x.

[0164] If Δx1 = 0, it means that the THN basic module where the destination node is located and the second node T y The THN basic modules are in the same module, and the messages do not need to be routed on the x link.

[0165] If Δx1=0 is not satisfied, it means that the second direction is different and routing needs to be performed on link x.

[0166] Step b2, when the second direction is different, transmitting the target message from the second node to a third basic node of the same basic module as the second node;

[0167] Step b3: Transmit the target message from the third basic node to a target node in the same second direction as the destination node, and the link between the third basic node and the target node is a link in the second direction.

[0168] The third basic node can be (x s ,y d ,z d ,101) or (x s ,y d ,z d ,001), it needs to be determined in the following two situations.

[0169] (1) If any of the following two conditions is met, the message needs to be sent from the second node T y Routing to the third basic node (x s ,y d ,z d ,101).

[0170] Condition 1)1) Δx1>0, and Δx2≥0, then l x =2|Δx1|-1(l x represents the routing path length in the x direction), m x =|Δx1|(m x Indicates the number of x links used in the routing process);

[0171] Condition 2) Δx1<0, and Δx2<0, then l x =2(|Δx1|-|Δx2|)-1,m x =|Δx1|-|Δx2|.

[0172] The specific routing process is as follows:

[0173] Use the routing algorithm in the THN basic module to send the target message from node T y Transmitted to the third basic node (x s ,y d ,z d ,101).

[0174] When reaching the third basic node (x s ,y d ,z d ,101), in the x direction, the target message is sent from the third basic node (x s ,y d ,z d ,101) reaches the node (x1,y) through the x link d ,z d ,001), and then reach the node (x1,y) through the local link d ,z d ,101), and then reach the node (x2,y) through the x link d ,z d ,001), until after lx Jump to the column where the destination node is located, that is, reach the target node (x d ,y d ,z d ,001). The specific process is:

[0175]

[0176] Among them, x i =(x s +i)modn x ,i=1,2,...,m x , let the target node T x =(x d ,y d ,z d ,001),x i The x-coordinate of the node representing the basic module in the i-th column.

[0177] (2) If any of the following two conditions is met, the message needs to be sent from the second node T y Routing to the third basic node (x s ,y d ,z d ,001).

[0178] Condition 1) Δx1>0, and Δx2<0, then l x =2(|Δx1|-|Δx2|)-1,m x =|Δx1|-|Δx2|;

[0179] Condition 2) Δz1<0, and Δz2≥0, then l z =2|Δz1|-1,m z =|Δz1|.

[0180] The specific routing process is as follows:

[0181] Use the routing algorithm in the THN basic module to send the target message from the second node T y Transmitted to the third basic node (x s ,y d ,z d ,001).

[0182] When reaching the third basic node (x s ,y d ,z d ,001), in the x direction, the target message is sent from the third basic node (x s ,y d ,z d ,001) reaches the node (x1,y) through the x linkd ,z d ,101), and then reach the node (x1,y) through the local link d ,z d ,001), and then reach the node (x2,y) through the x link d ,z d ,101), until passing l x Jump to the column where the destination node is located, that is, reach the target node (x d ,y d ,z d ,101). The specific process is as follows:

[0183]

[0184] Among them, x i =(x s -i)modn x ,i=1,2,...,m x , let node T x =(x d ,y d ,z d ,101),x i The x-coordinate of the node representing the basic module in the i-th column.

[0185] In this method, the first direction is the y direction, and the second direction is the x direction. In practical applications, the first direction may be the x direction, and the second direction may be the y direction, and there is no specific limitation.

[0186] Step S204: transmitting the target message from the target node to the destination node based on the preset module internal routing algorithm.

[0187] The routing algorithm in the preset module is the routing algorithm in the THN basic module. When the target message arrives at the target node, the target message is transmitted to the destination node through the routing algorithm, the routing is ended, and the transmission of the target message is completed.

[0188] The following is an introduction to the routing algorithm in this module. Assume that there are two nodes in the same THN basic module and need to send messages from node p to node p. v1 p v2 p v3 Transmit to node p w1 p w2 p w3 , then we need to calculate the routing function R

[0189]

[0190] If the three bits of R are all 0, that is, R=000, indicating that the two nodes are the same node, the message is directly absorbed by the current node; if the highest bit of R is 0 or the last two bits of R are all 0, that is, R=0__ or R=_00, indicating that the two nodes are directly connected through a local link, the message is sent from node p v1 p v2 p v3 Directly transmit to node p via one hop w1 p w2 p w3 ; In other cases, first send the message from node p v1 p v2 p v3 Transmit to node p w1 p v2 p v3 , and then by the node Transmit the message to node p w1 p w2 p w3 , a total of two hops are required, where

[0191] The message transmission method provided in this embodiment first determines the destination node and the source node. When the destination node and the source node are not in the same layer, the target message is transmitted from the source node to the first node in the same layer as the destination node. When the target is in the first node, the target message is transmitted from the first node to the destination node. The target node and the destination node are in the same module, and the target message is transmitted in the same module to transmit the target message to the destination node. The method is based on a three-dimensional network topology structure for transmission. First, the message is transmitted between layers. After being in the same layer, the target message is transmitted to a node in the same basic module as the destination node. The structure includes multiple nodes in each module, the network is relatively small, and the delay is relatively small. Therefore, the link overhead is relatively small when transmitting messages, and the transmission efficiency is relatively high.

[0192] In this embodiment, a 6×3×3×3 three-dimensional network topology structure is used, such as Figure 6 As shown, the message is transmitted from the source node (2,1,1,010) to the destination node (0,0,2,110). The message transmission method is described in detail below:

[0193] Step 1: Interlayer routing (routing in the z direction)

[0194] calculate

[0195] Δz1=z d -z s =2-1=1

[0196] Δz2=n z -2|Δz1|=3-2×1=1

[0197] Since Δz1>0, and Δz2≥0, then l z =2|Δz1|-1=2×1-1=1(l z is the routing path length in the z direction), m z =|Δz1|=1 (the number of z links used in the routing process), so

[0198] z1=(z s +1)modn z =(1+1)mod3=2

[0199] The routing algorithm in the THN basic module is used to transmit the message from the source node (2,1,1,010) to the node (2,1,1,110) through 1 hop. In the z direction, the message goes from the node (2,1,1,110) to the node (2,1,2,100) through the z link. The specific process is as follows:

[0200]

[0201] Let node T z =(2,1,2,100), go to step 2.

[0202] Step 2: Intra-layer routing 1 (routing in the y direction)

[0203] calculate

[0204] Δy1=y d -y s =0-1=-1

[0205] Δy2=n y -2|Δy1|=3-2×1=1

[0206] Since Δy1<0, and Δy2≥0, then l y =2|Δy1|-1=1,m y =|Δy1|=1. So,

[0207] y1=(y s -1)modn y =(1-1)mod3=0

[0208] Use the routing algorithm in the THN basic module to send the message from node T z =(2,1,2,100) is transmitted to node (2,1,2,000) via 1 hop. In the y direction, the message goes from node (2,1,2,000) to node (2,0,2,010) via the y link. The specific process is as follows:

[0209]

[0210] Let node T y =(2,0,2,010), go to step 3.

[0211] Step 3: Intra-layer routing 2 (routing in the x direction)

[0212] calculate

[0213] Δx1=x d -x s =0-2=-2

[0214] Δx2=n x -2|Δx1|=3-2×2=-1

[0215] Since Δx1<0 and Δx2<0, then l x =2(|Δx1|-|Δx2v)-1=1,m x =|Δx1|-|Δx2|=1, so,

[0216] x1=(x s +1)modn x =(2+1)mod3=0

[0217] Use the routing algorithm in the THN basic module to send the message from node T y =(2,0,2,010) is transmitted to node (2,0,2,101) through 2 hops. In the x direction, the message goes from node (2,0,2,101) to node (0,0,2,001) through link x. The specific process is as follows:

[0218]

[0219] Let node T x =(0,0,2,001), go to step 4.

[0220] Step 4: Routing within the THN basic module

[0221] When the message reaches the THN basic module where the destination node is located, the routing algorithm in the THN basic module is used to send the message from node T x =(0,0,2,001) is transmitted to the destination node (0,0,2,110).

[0222] Calculate the routing function R

[0223]

[0224] Therefore, the message is first transmitted from node (0,0,2,001) to node (0,0,2,101), and then node (0,0,2,101) transmits the message to node (0,0,2,110). A total of two hops are required, and the routing is completed.

[0225] The message transmission path is:

[0226]

[0227] It takes a total of 9 hops from the source node to the destination node, such as Figure 6 shown.

[0228] In this embodiment, a message transmission device is also provided, which is used to implement the above-mentioned embodiments and implementation methods, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0229] This embodiment provides a message transmission device, such as Figure 7 As shown, including:

[0230] A node determination module 301 is used to determine a destination node and a source node, wherein the source node is used to transmit the sent target message to the destination node, and the destination node and the source node are nodes in any basic module in the three-dimensional network topology structure;

[0231] An inter-layer transmission module 302, configured to transmit the target message from the source node to a first node in the same layer as the destination node when the destination node is not in the same layer as the source node, the first node being in any basic module in the same layer as the destination node in the three-dimensional network topology structure, and the first node being used to connect to a node in any basic module in another layer;

[0232] An intra-layer transmission module 303, when the target message is at the first node, transmits the target message from the first node to a target node of the same basic module as the destination node;

[0233] The intra-module transmission module 304 is used to transmit the target message from the target node to the destination node based on a preset intra-module routing algorithm.

[0234] In some optional implementations, the inter-layer transmission module 302 includes:

[0235] A same-layer determination unit, configured to determine whether the destination node and the source node are in the same layer based on the coordinates of the destination node and the coordinates of the source node;

[0236] A first basic node transmission unit, configured to, when the destination node and the source node are not in the same layer, route the target message from the source node to a first basic node of the same basic module as the source node, the first basic node being configured to connect to a node in any basic module of another layer;

[0237] The first node transmission unit is used to transmit the target message from the first basic node to the first node.

[0238] In some optional implementations, the intra-layer transmission module 303 includes:

[0239] A first direction transmission unit, used for transmitting the target message from the first node to a second node in the same first direction as the destination node, the second node being in any basic module of the same layer as the destination node, and the second node being used for connecting with a node in any basic module of the same layer in the first direction;

[0240] The second direction transmission unit is used to transmit the target message from the second node to a target node in the same second direction as the destination node, and the target node is used to connect with a node in any basic module in the same layer in the second direction.

[0241] In some optional implementations, the first direction transmission unit includes:

[0242] A first direction determination subunit, configured to determine whether the first direction of the first node is the same as the first direction of the destination node based on the coordinates of the first node and the coordinates of the destination node;

[0243] A second basic node transmission subunit, configured to transmit the target message from the first node to a second basic node of the same basic module as the first node when the first direction is different;

[0244] The second node transmission subunit is used to transmit the target message from the second basic node to the second node in the same first direction as the destination node, and the link between the second basic node and the second node is a link in the first direction

[0245] In some optional implementations, the second direction transmission unit includes:

[0246] A second direction determination subunit, configured to determine whether the second direction of the second node is the same as the second direction of the destination node based on the coordinates of the second node and the coordinates of the destination node;

[0247] A third basic node transmission subunit, configured to transmit the target message from the second node to a third basic node of the same basic module as the second node when the second direction is different;

[0248] The target node transmission subunit is used to transmit the target message from the third basic node to the target node in the same second direction as the destination node, and the link between the third basic node and the target node is a link in the second direction.

[0249] In some optional embodiments, the device further comprises:

[0250] The structure building module is used to build a basic module and build a three-dimensional network topology structure based on the basic module, wherein the basic module includes a plurality of nodes.

[0251] In some optional embodiments, the structure building module is used to: construct a basic module, the basic module including a preset first number of nodes;

[0252] The links between the nodes are local links, and any of the nodes has a corresponding number, which is used to identify the position of the node in the basic module;

[0253] Constructing a two-dimensional network topology structure based on the basic modules;

[0254] The number of the basic modules is a preset second number, the number of basic modules in the first direction and the second direction of the two-dimensional network topology structure is consistent, the node with a first specific number in any of the basic modules is used to connect to the node with a first specific number in any other basic module, and the link between the node with a first specific number in any of the basic modules and the node with a first specific number in any other basic module is a link in the first direction;

[0255] The node with the second specific number in any of the basic modules is used to connect to the node with the second specific number in any other of the basic modules, and the link between the node with the second specific number in any of the basic modules and the node with the second specific number in any other of the basic modules is a link in the second direction;

[0256] A preset third number of two-dimensional network topological structures are connected between layers to determine a three-dimensional network topological structure, and the third specifically numbered node in any basic module is used to connect with the third specifically numbered node in any basic module in other layers.

[0257] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0258] The message transmission device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0259] The embodiment of the present invention also provides a device having the above Figure 7 The message transmission device shown.

[0260] See also Figure 8 , Figure 8 is a schematic diagram of a structure of a device provided by an optional embodiment of the present invention, such as Figure 8 As shown, the device includes: one or more processors 10, memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 10 is taken as an example.

[0261] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0262] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0263] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer 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.

[0264] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0265] The device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0266] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0267] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A message transmission method, characterized in that: The method comprises: Determine a destination node and a source node, the source node is used to transmit the sent target message to the destination node, the destination node and the source node are nodes in any basic module in the three-dimensional network topology structure; When the destination node and the source node are not in the same layer, the target message is transmitted from the source node to a first node in the same layer as the destination node, the first node is in any basic module in the same layer as the destination node in the three-dimensional network topology structure, and the first node is used to connect to a node in any basic module in another layer; When the target message is at the first node, transmitting the target message from the first node to a target node of the same basic module as the destination node; The target message is transmitted from the target node to the destination node based on a preset intra-module routing algorithm.

2. The method according to claim 1, characterized in that The transmitting the target message from the source node to a first node at the same layer as the destination node comprises: Determining whether the destination node and the source node are in the same layer based on the coordinates of the destination node and the coordinates of the source node; When the destination node and the source node are not in the same layer, routing the target message from the source node to a first basic node of the same basic module as the source node, the first basic node being used to connect to a node in any basic module of another layer; The target message is transmitted from the first base node to the first node.

3. The method according to claim 1, characterized in that: When the target message is at the first node, transmitting the target message from the first node to a target node of the same basic module as the destination node comprises: Transmitting the target message from the first node to a second node in the same first direction as the destination node, the second node being in any basic module of the same layer as the destination node, and the second node being used to connect to a node in any basic module of the same layer in the first direction; The target message is transmitted from the second node to a target node in the same second direction as the destination node, and the target node is used to connect with a node in any basic module in the same layer in the second direction.

4. The method according to claim 3, characterized in that The transmitting the target message from the first node to a second node in the same first direction as the destination node includes: Determining whether the first direction of the first node is the same as the first direction of the destination node based on the coordinates of the first node and the coordinates of the destination node; When the first direction is different, transmitting the target message from the first node to a second basic node of the same basic module as the first node; The target message is transmitted from the second basic node to a second node in the same first direction as the destination node, and a link between the second basic node and the second node is a link in the first direction.

5. The method according to claim 3, characterized in that: The transmitting the target message from the second node to a target node in the same second direction as the destination node includes: Determining whether the second direction of the second node is the same as the second direction of the destination node based on the coordinates of the second node and the coordinates of the destination node; When the second direction is different, transmitting the target message from the second node to a third basic node of the same basic module as the second node; The target message is transmitted from the third basic node to a target node in the same second direction as the destination node, and the link between the third basic node and the target node is a link in the second direction.

6. The method according to claim 1, characterized in that The method further comprises: A basic module is constructed, and a three-dimensional network topology structure is constructed based on the basic module, wherein the basic module includes a plurality of nodes.

7. The method according to claim 6, characterized in that The basic modules are constructed, and a three-dimensional network topology is constructed based on the basic modules, including: Constructing a basic module, wherein the basic module includes a preset first number of nodes; The links between the nodes are local links, and any of the nodes has a corresponding number, which is used to identify the position of the node in the basic module; Constructing a two-dimensional network topology structure based on the basic modules; The number of the basic modules is a preset second number, the number of basic modules in the first direction and the second direction of the two-dimensional network topology structure is consistent, the node with a first specific number in any of the basic modules is used to connect to the node with a first specific number in any other basic module, and the link between the node with a first specific number in any of the basic modules and the node with a first specific number in any other basic module is a link in the first direction; The node with the second specific number in any of the basic modules is used to connect to the node with the second specific number in any other of the basic modules, and the link between the node with the second specific number in any of the basic modules and the node with the second specific number in any other of the basic modules is a link in the second direction; A preset third number of two-dimensional network topological structures are connected between layers to determine a three-dimensional network topological structure, and the third specifically numbered node in any basic module is used to connect with the third specifically numbered node in any basic module in other layers.

8. A message transmission device, characterized in that: The device comprises: A node determination module, used for determining a destination node and a source node, wherein the source node is used for transmitting the sent target message to the destination node, and the destination node and the source node are nodes in any basic module in the three-dimensional network topology structure; an inter-layer transmission module, configured to transmit the target message from the source node to a first node in the same layer as the destination node when the destination node is not in the same layer as the source node, the first node being in any basic module in the same layer as the destination node in the three-dimensional network topology structure, and the first node being configured to connect to a node in any basic module in another layer; an intra-layer transmission module, which, when the target message is at the first node, transmits the target message from the first node to a target node of the same basic module as the destination node; The intra-module transmission module is used to transmit the target message from the target node to the destination node based on a preset intra-module routing algorithm.

9. A device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the message transmission method according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the message transmission method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Multicast communication method and device, electronic equipment and storage medium

    CN118972189A

  • Routing method, device, equipment, medium and product

    CN120729773A

  • A routing method, apparatus, device, medium and product

    CN120729773B