Load balancing strategy for vertical link under 2.5 D core particle architecture
By dividing outbound traffic of hotspot nodes in the 2.5D core-particle architecture, and optimizing the traffic division timing using the Q-Learning algorithm, the problem of vertical link load imbalance is solved, and link utilization and system performance are improved.
Patent Information
- Application Number
- CN202411566616.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-03-07
AI Technical Summary
In the 2.5D core-particle architecture, load imbalance of vertical links causes some links to be overloaded, and other link bandwidths are not fully utilized, affecting system performance.
By dividing outbound traffic from hotspot nodes, the traffic is allocated to a relatively idle vertical link, and the Q-Learning algorithm is used to optimize the traffic division timing and improve load balancing.
It improves the utilization rate of vertical links, reduces the waiting delay of packets, reduces system energy consumption, and improves overall performance.
Smart Images

Figure CN119583453A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer architecture, and specifically designs a load balancing strategy for vertical links under a 2.5D core-grain architecture. Background Art
[0002] As the size of transistors gradually approaches the physical limit, Moore's Law has come to an end. When the size of transistors is reduced to a certain extent, physical phenomena such as quantum tunneling effect and increased leakage current become difficult to control, which directly affects the yield and performance of the chip, and also limits the possibility of further improving the density of integrated circuits. Against this background, the rapid development of AI and large language models has increased the demand for computing power. Therefore, the semiconductor industry has begun to seek new solutions to improve computing performance without relying on more advanced process nodes.
[0003] Chiplet technology achieves higher computing performance by disassembling a large chip into multiple smaller, easy-to-manufacture chiplets, and then integrating these chiplets through advanced packaging technology. Chiplet technology is based on a modular design concept, which not only reduces the complexity of the manufacturing process, but also supports the integration of heterogeneous chiplets, which means that chiplets with different functions can be combined to form a more powerful system. This approach not only simplifies the design process, but also shortens the design cycle, making chip development more flexible and efficient.
[0004] In the existing packaging technology, the 3D integration solution is a technology that stacks the core particles vertically and connects the core particles through silicon vias (TSV). Although this method can significantly improve the integration density of the chip, it also brings many problems. First, the wiring complexity in 3D integration is extremely high because precise connections are required between multiple vertical layers. Secondly, since the heat in the chip cannot be effectively dissipated, the heat will accumulate between the vertically stacked core particles, causing the operating temperature of the chip to increase. This not only reduces the reliability of the chip, but may also shorten the service life of the chip. In addition, high energy density also increases the risk of chip failure. These factors make 3D integration technology face many challenges in practical applications.
[0005] To solve these problems, the 2.5D integration solution places the core particles on an interposer, and the core particles communicate with each other through the interposer. Although this solution reduces the integration density of the chip, it also simplifies the manufacturing process and increases the heat dissipation area of the chip, thereby improving the stability and reliability of the chip. In the 2.5D integration solution, interposers are divided into two types: active and passive. Passive interposers only provide physical connections, while active interposers can also integrate some functional components, such as routers, buffers, etc. This makes active interposers more flexible and scalable, and can better adapt to different application requirements, so it has become the mainstream choice of current 2.5D packaging technology.
[0006] In the 2.5D chiplet architecture based on an active interposer, the chiplets are connected to the interposer through vertical links and communicate with other system components. If all nodes inside the chiplets (on-chip nodes) are directly connected to the interposer, the wiring density will be too high, increasing the complexity of the network on the interposer. However, when multiple on-chip nodes share the same vertical link for external communication, how to evenly allocate the resources of these vertical links becomes a key issue. First, node traffic is divided into in-station traffic (the destination node is inside the chiplet where the source node is located, without passing through the vertical link) and outbound traffic (the destination node is outside the chiplet where the source node is located). Existing methods usually bind in-chip nodes to vertical links, that is, all outbound traffic of a node is transmitted through the same vertical link, and mainly focus on solving the deadlock problem in the vertical link, but rarely consider the dynamic changes of node traffic. This neglect may lead to a surge in traffic of a small number of hot nodes in some cases, resulting in uneven traffic distribution on the vertical link. Some vertical links may be overloaded as a result, while the bandwidth resources of other links are not fully utilized. Therefore, achieving load balancing of vertical links has become an urgent problem to be solved. Summary of the invention
[0007] The present invention proposes a load balancing strategy on a vertical link under a 2.5D core-grain architecture.
[0008] A load balancing strategy provided by the present invention divides the outbound traffic of hot nodes when some vertical links are congested due to unbalanced network traffic, and distributes the traffic to relatively idle vertical links, thereby improving the utilization of vertical links and reducing the waiting delay of packets. The division of traffic will extend the transmission path of the packet, resulting in increased system energy consumption and increased packet transmission delay. Dividing traffic when the network is idle cannot improve the overall performance of the system, so this strategy needs to be used under appropriate conditions. In order to implement this strategy, the 2.5D core grain architecture is first determined, the network parameters are quantitatively measured, and whether to divide the traffic and how to divide it are determined according to the network conditions. Combining the advantages of reinforcement learning, the Q-Learning algorithm is used to optimize the timing of division. Q-Learning is a value-based reinforcement learning method. The intelligent agent gradually improves its decision rules on what actions to take in the future state by observing the current state, performing actions and receiving feedback (rewards). The core of Q-Learning lies in a structure called Q table, which records the expected return that can be obtained by performing a specific action in a specific state. The agent learns through continuous trial and error, updates the values in the Q table, and finally converges to an optimal strategy so that the actions taken in any given state can maximize the long-term cumulative reward. In the 2.5D core grain architecture, Q-Learning can handle dynamically changing environments without knowing all the information about the environment in advance. Especially when network traffic changes frequently, Q-Learning can adjust the traffic distribution strategy according to the latest network conditions to achieve load balancing. This method does not require an explicit environmental model, has low computational complexity, and has low hardware requirements.
[0009] The method of the present invention and its implementation principle are described in detail below.
[0010] The approach in this paper is similar for both cores and interposers. For simplicity, we only discuss a single core. The set of on-chip routers is R = {r 1 ,r 2 ,…,r n}, the vertical link set is VL = {v 1 ,v 2 ,…,v V}.
[0011] Step 1. Collect network information, determine the imbalance state, and find hot nodes.
[0012] In this paper, the injection rate I r Injection Rate measures the traffic size of a node. The injection rate refers to the average number of packets injected into the network by a node per cycle. The congestion level of the entire intra-core network can be expressed as the average injection rate I avg express:
[0013]
[0014] The average injection rate will affect the network waiting delay. Traffic distribution and the use of longer transmission paths in a congested network will lead to more delay improvement than in an idle state. v It is expressed as the sum of the outbound traffic injection rates of all nodes in the slice to v:
[0015]
[0016] in represents the outbound traffic injection rate of node r. When r uses v as the vertical link transmission Otherwise it is 0. The average load on the vertical link L avg is the arithmetic mean of the load of each link:
[0017]
[0018] In order to measure the load imbalance of the vertical link, the load skewness Sc is calculated:
[0019]
[0020] When Sc is greater than the threshold T unbalance , that is, Sc>T unbalance When the system is in a load imbalance state, the threshold is set to 5 or higher, indicating the system's tolerance for imbalance. When in an unbalanced state, find the hotspot nodes that cause load imbalance. Intra-site traffic does not generate load for vertical links. In order to find the hotspot nodes for outbound traffic, define the average outbound injection rate for:
[0021]
[0022] If the outbound traffic injection rate of a node r is significantly higher than the average outbound injection rate, it is defined as a hotspot node and judged using formula (6):
[0023]
[0024] T hotspot It is the threshold for judging hotspot nodes, representing the throughput capacity of the network. For systems with high throughput, the impact of local surge traffic is small, so a higher threshold can be selected. In this example, T_hotspot=5.0 is used.
[0025] The method in this paper uses distance to measure the cost of traffic transmission. For two nodes, the distance between them is defined as the minimum number of hops required for transmission. In a two-dimensional grid structure, the node r 1 and node r 2 Distance It can be calculated from the x-axis and y-axis coordinates of the router:
[0026]
[0027] The distance between nodes and vertical links within a slice is represented by the distance between the router and the corresponding border router.
[0028] For the hotspot node r, its bound vertical link is v 1 , if the outbound traffic is divided, part of the traffic goes through v 2 During transmission, additional energy consumption will be incurred This energy cost is related to the distance and is defined as:
[0029]
[0030] The average packet delay Latency of the system per unit time is used to measure the overall performance of the system.
[0031] Step 2: Find alternative links and calculate traffic distribution solutions and costs.
[0032] Any two vertical links v 1 , v 2 Relative Difference for:
[0033]
[0034] For the hotspot node r, its bound vertical link is v r , when dividing its traffic, the selected link should be relatively idle. i ∈VL, if there is v i Add to VL c . Set its weight at the same time The set of all weights is W. Alternative vertical links v i Allocated flow ratio λ i The calculation method is:
[0035]
[0036] Then, from the above formula, we can get that for m candidate vertical links, the allocation ratio satisfies 0≤λ 1 ,λ2 ,…,λ m ≤1(λ 1 +λ 2 +…+λ m =1). The candidate links and allocation ratio sets will be used as Q-Learning actions.
[0037] The total cost of this allocation scheme is C total for:
[0038]
[0039] Step 3. Based on the network parameters calculated by the above method, use Q-Learning to determine whether to use traffic distribution.
[0040] Q-Learning algorithm details:
[0041] In order to improve the scalability of the system and reduce the complexity of the state space and action space, each node will maintain its own Q table. For any node r, the overall design is as follows:
[0042] (1) State space
[0043] The state space should include the key information of the current network. The state can be defined as a vector in represents the load of the vertical link, I avg represents the average injection rate of the core particle network, represents the outbound traffic injection rate of node r.
[0044] (2) Action Space
[0045] The action space contains possible decisions to change the network traffic distribution. When the network state is relatively stable, we tend to keep the current strategy unchanged. The action space of the hotspot node A r Includes a 0 No traffic distribution is performed. 1 Adopt a traffic distribution strategy.
[0046] (3) Reward Function
[0047] The reward function encourages behaviors that reduce latency, balance vertical link loads, and reduce overhead. The reward function is designed as:
[0048] R=-ρ·Sc-σ·C+τ·LAtency (12)
[0049] Where Sc is the load skewness. C is the additional overhead. If the traffic is divided into C total, if no partitioning is performed, it is 0. Latency is the average packet delay of the system. ρ, σ, and τ are trade-off factors used to balance the relationship between load balancing, overhead, and latency. In a system with certain hardware conditions, these parameters will not change with changes in load, and the parameters only need to be determined once. Therefore, a grid search method with low complexity and low hardware requirements is used to traverse the parameter space and obtain the optimal parameter combination. In this example, ρ = 0.1, σ = 0.01, and τ = 0.5.
[0050] Compared with the prior art, the present invention has the following advantages:
[0051] 1. In order to fully consider the load balancing problem of vertical links in the 2.5D core-grain architecture, the present invention reduces the overall performance degradation caused by congestion of some vertical links by redistributing the traffic of hot nodes.
[0052] 2. The present invention takes different network conditions into consideration, determines the flow distribution strategy by monitoring the network conditions, and reduces the impact of flow distribution on system overhead.
[0053] 3. In the present invention, due to the complex network conditions, a Q-Learning-based optimization method is proposed, which achieves better results. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a schematic diagram of the 2.5D core particle system model;
[0055] Figure 2 The following is a schematic diagram of traffic division;
[0056] Figure 3 This is a performance improvement comparison chart. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, examples of the present invention will be described in detail below with reference to the accompanying drawings.
[0058] The system model used in the example is as follows:
[0059] Several chiplets with a two-dimensional mesh network-on-chip (NoC) are placed on an active interposer. The on-chip nodes consist of computing cores, network interfaces, and routers. The routers are responsible for the input, output, and forwarding of traffic. The discussion only involves traffic, not the study of node microarchitecture, so we will not distinguish between nodes and routers. For a chiplet consisting of n on-chip nodes, set The on-chip router connected to the vertical link is called the edge router. The vertical link is connected to the router at the edge of the chip with fewer connections to avoid the impact of too many connections on the on-chip router. The on-chip nodes are bound to the vertical link according to the distance. When the network traffic is relatively balanced, the outbound traffic of the on-chip nodes is transmitted to the outside of the chip via the bound vertical link. The memory controller is connected to the edge of the interposer. The chip and the interposer implement their own routing algorithms, do not restrict the transmission path, use virtual networks to avoid deadlock, and do not restrict the routing algorithm. The message sent by the node will be divided into packets of fixed size for transmission in the network.
[0060] The present invention designs a load balancing strategy for vertical links under a 2.5D core-grain architecture. In the case of unbalanced network load, hotspot nodes with high injection rates are found, allocation schemes are calculated for these nodes, and the Q-Learning algorithm is used to determine whether to divide the traffic of these nodes.
[0061] The specific steps are as follows:
[0062] Step 1. Collect system information, determine the current system status, and find hotspot nodes.
[0063] In a core with n nodes on a chip, the node set is R = {r 1 ,r 2 ,…,r n}, these nodes are bound to the set VL = {v 1 ,v 2 ,…,v V}, the outbound traffic of the nodes on the chip arrives at the intermediary board along the shortest path and is forwarded to the destination node. Under ideal traffic average or idle network conditions, this solution can minimize the overhead and achieve low latency. When the outbound traffic of some nodes is significantly high, causing congestion on the corresponding vertical link, the vertical link will affect the overall performance of the system. When the load skewness of the vertical link is Greater than the imbalance threshold T unbalance When the load of the vertical link v is represents the outbound traffic injection rate of node r, Indicates whether r uses v as a vertical link. Average load
[0064] After determining that the vertical link load is in an unbalanced state, it is necessary to find the hotspot node that causes the imbalance and whose outbound traffic is significantly higher than the average value. That is, if node r has Greater than the threshold T hotspot, then r is determined to be a hotspot node. The average outbound injection rate
[0065] Step 2. Calculate the traffic distribution plan and overhead of hotspot nodes based on the network status.
[0066] For the hotspot node r to be allocated traffic, calculate the vertical link v bound to r for any vertical link. r The relative load difference and the overhead of distributing traffic If you have Then v i Add to the candidate link set VL c . And will As the weight of the link, add it to the weight set W. i The proportion of traffic received The total cost of this allocation
[0067] Step 3. Use Q-Learning algorithm to determine the strategy.
[0068] After determining the hotspot nodes, it is necessary to decide whether to divide the traffic based on the overall network conditions to avoid the overall performance degradation caused by the long paths selected for division. Q-Learning is used to determine the timing of division.
[0069] The learning process of Q-Learning includes the following steps:
[0070] S1: Initialize all entries in the Q table to zero.
[0071] S2: Select an action based on the current state. In the early learning stage, the ε-greedy strategy is used for exploration. A random action is selected with a probability of ε. The agent will adopt a choice that has not been tried before or is not optimal. The best action currently known is selected with a probability of 1-ε, that is, the action with the highest Q value. In this case, ε is set to 0.05 in the first 500 cycles and 0.01 from 501 to 2000 cycles. After the Q table is stable, no additional attempts are made and ε is set to 0.
[0072] S3: Execute action: The agent executes the selected action, changes the state of the environment, and receives an immediate reward returned by the environment.
[0073] S4: Based on the current reward and the maximum Q value of the next state, the update rule is usually expressed as:
[0074]
[0075] Among them, st is the current state, a t is the action taken in the current state. α is the learning rate. In order to pursue the stability of the algorithm, the learning rate is set to 0.1. t+1 ) is the immediate reward after taking the action. γ is the discount factor, which is used to reflect the importance of future rewards. Since local congestion is usually sudden, we pay more attention to short-term benefits here and set the discount factor to 0.1. is the maximum Q value in the next state.
[0076] S5: Determine once every 500 cycles whether the current node is a hotspot node. If yes, go to S2. If not, exit this process.
Claims
1. A load balancing strategy for vertical links under a 2.5D core-grain architecture, characterized in that: The following steps are involved: Several cores are placed on the active interposer; for a core consisting of n on-chip nodes, set the number of vertical links less than the number of on-chip nodes; the on-chip router set R = {r1, r2, …, r n }, vertical link set VL = {v1,v2,…,v V }; Step 1. Collect network information, determine the imbalance state, and find hotspot nodes; Use injection rate I r The injection rate is the average number of packets injected into the network by the node per cycle. The congestion level of the entire intra-core network can be expressed by the average injection rate I avg express: For the vertical link v load L v It is expressed as the sum of the outbound traffic injection rates of all nodes in the slice to v: in represents the outbound traffic injection rate of node r; when r uses v as the vertical link transmission Otherwise it is 0; the average load on the vertical link L avg is the arithmetic mean of the load of each link: In order to measure the load imbalance of the vertical link, the load skewness Sc is calculated: When Sc is greater than the set threshold T unbalance , that is, Sc>T unbalance When the system is in a load imbalance state, it is determined that the system is in a load imbalance state and the hotspot nodes that cause the load imbalance are found; the intra-station traffic will not generate load for the vertical link. In order to find the hotspot nodes of the outbound traffic, the average outbound injection rate is defined for: If the outbound traffic injection rate of a node r is significantly higher than the average outbound injection rate, it is defined as a hotspot node and judged using formula (6): T hotspot It is the threshold for determining hotspot nodes; Distance is used to measure the cost of traffic transmission. For two nodes, the distance between them is defined as the minimum number of hops required for transmission. In a two-dimensional grid structure, the distance between node r1 and node r2 is It can be calculated from the x-axis and y-axis coordinates of the router: For the distance between nodes and vertical links within a slice, it is represented by the distance between the router and the corresponding border router; For hotspot node r, its bound vertical link is v1. If its outbound traffic is divided and part of the traffic is transmitted via v2, it will bring additional energy overhead. This energy cost is related to the distance and is defined as: Where ξ is a parameter related to the energy overhead generated by the system transmission traffic; Use the system throughput per unit time to measure the overall performance of the system; Step 2. Find alternative links and calculate traffic distribution solutions and costs; The relative difference in load between any two vertical links v1 and v2 for: For the hotspot node r, its bound vertical link is v r , when dividing its traffic, the selected link should be relatively idle; for any v i ∈VL, if there is Then v i Add to VL c ; Set its weight at the same time The set of all weights is W; the alternative vertical link v i Allocated flow ratio λ i The calculation method is: For m candidate vertical links, the allocation ratio satisfies 0<λ1,λ2,…,λ m ≤1;(λ1+λ2+…+λ m =1); the candidate links and allocation ratio sets will be used as Q-Learning actions; The total cost of this allocation scheme is C total for: Step 3. Use Q-Learning to determine whether to use traffic distribution. The overall design is as follows: (1) State space Define the state as a vector in represents the load of the vertical link, I avg represents the average injection rate of the core particle network, represents the outbound traffic injection rate of node r; (2) Action Space The action space contains possible decisions to change the network traffic distribution; the action space A of the hotspot node r Including a0 does not perform traffic distribution, a1 adopts the traffic distribution strategy; (3) Reward Function The reward function is designed as: R=-ρ·Sc-σ·C+τ·Throughput (12) Where Sc is the load skewness and C is the overhead of dividing the traffic. total , if no partitioning is performed, it is 0, Throughput is the throughput of the system; ρ, σ and τ are trade-off factors.
