Next Article in Journal
A Low-Profile Wideband Antenna for WWAN/LTE Applications
Previous Article in Journal
Optimization and Implementation of Synthetic Basis Feature Descriptor on FPGA
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Q-Function-Based Traffic- and Thermal-Aware Adaptive Routing for 3D Network-on-Chip

1
Department of Semiconductor and Display Engineering, College of Information and Communication Engineering, Sungkyunkwan University, Suwon, Gyeonggi-do 16410, Korea
2
Department of Artificial Intelligence, Sungkyunkwan University, Suwon, Gyeonggi-do 16410, Korea
*
Author to whom correspondence should be addressed.
Electronics 2020, 9(3), 392; https://doi.org/10.3390/electronics9030392
Submission received: 30 January 2020 / Revised: 22 February 2020 / Accepted: 25 February 2020 / Published: 27 February 2020
(This article belongs to the Section Computer Science & Engineering)

Abstract

:
Die-stacking technology is expanding the space diversity of on-chip communications by leveraging through-silicon-via (TSV) integration and wafer bonding. The 3D network-on-chip (NoC), a combination of die-stacking technology and systematic on-chip communication infrastructure, suffers from increased thermal density and unbalanced heat dissipation across multi-stacked layers, significantly affecting chip performance and reliability. Recent studies have focused on runtime thermal management (RTM) techniques for improving the heat distribution balance, but performance degradations, owing to RTM mechanisms and unbalanced inter-layer traffic distributions, remain unresolved. In this study, we present a Q-function-based traffic- and thermal-aware adaptive routing algorithm, utilizing a reinforcement machine learning technique that gradually incorporates updated information into an RTM-based 3D NoC routing path. The proposed algorithm initially collects deadlock-free directions, based on the RTM and topology information. Subsequently, Q-learning-based decision making (through the learning of regional traffic information) is deployed for performance improvement with more balanced inter-layer traffic. The simulation results show that the proposed routing algorithm can improve throughput by 14.0%–28.2%, with a 24.9% more balanced inter-layer traffic load and a 30.6% more distributed inter-layer thermal dissipation on average, compared with those obtained in previous studies of a 3D NoC with an 8 × 8 × 4 mesh topology.

1. Introduction

Since the mid-2000s, a chip multiprocessor (CMP) has been widely used to overcome the limitations concerning instruction-level parallelism and power walls in a single-thread/core processor [1]. However, the ever-increasing traffic between the processing elements created bottlenecks in conventional bus-based CMPs [2]. Initially, a 2D network-on-chip (NoC) was proposed for mitigating the complexities in the on-chip interconnection network [3]. Although a 2D NoC has the advantages of high scalability and simple fabrication structure, high performance is not guaranteed, owing to the rapid deterioration in packet latency associated with increasing physical distances as the number of processing cores increases [4]. With the advent of through-silicon-via (TSV)-based 3D integrated circuits, structural changes have entered a new phase, beyond 2D NoCs [5]. A 3D NoC-based CMP architecture that fully exploits die stacking using TSV technology offers a wider bandwidth, a lower packet transfer delay and a smaller layout footprint with shorter average internode distances than a conventional 2D NoC [6].
However, the increased thermal density in a 3D NoC eventually leads to saturation in performance and reliability, requiring additional cooling circuitry, such as a heat sink [7]. The stacked structure of the 3D NoC results in a longer heat dissipation path and a different inter-layer cooling efficiency [8], as shown in Figure 1. The processor nodes in the top layer farthest from the heat sink encounter severe thermal problems, intensifying the heat imbalance across the layers of the 3D architecture [9]. The importance of thermal management algorithms is discussed not only in 3D NoC, but also in microfluidic processes that are widely used in other applications, such as fluid networks or chips [10]. Moreover, the TSVs used in stacked structures are constrained by larger bonding areas, complicated scaling processes with smaller feature sizes and sharp decreases in the yield as the number of TSVs increases [11,12], as shown in Figure 2. The severe drop in yield causes a transition to a non-stationary irregular (NSI) mesh, rather than the fully connected mesh of a 3D NoC topology, thereby reducing the packet routing flexibility [13]. This leads to decreased router utilization efficiency, which, in turn, increases the risk of deflection of the traffic load distribution, further exacerbating the thermal problems [14].
For temperature management in a 3D NoC, numerous runtime thermal management (RTM) methods have been proposed. RTM is classified into proactive pre-operation approaches and reactive post-operation approaches, as presented in Table 1. Proactive RTM collects thermal information to predict the operating duration of each node before reaching a throttling state and the thermal distribution of the 3D NoC is adjusted by routing to nodes with larger thermal margins [9,15,16]. Proactive RTM is advantageous in preventing the occurrence of throttled nodes. However, proactive RTM algorithms route packets with information predicted at a specific time and it is challenging to address temperature changes caused by sudden traffic changes. Therefore, proactive RTM cannot guarantee that router temperatures will remain stable for normal operation. Reactive RTM in 3D NoCs manages temperature using a post-operation, such as forcing a node with an alarm state to become idle [5,6,17]. Reactive RTM algorithms generate routing policies, mainly focusing on traffic congestion as they cannot estimate the thermal margin. However, excessive blocking occurs as the number of throttling nodes increases, resulting in a negative performance, owing to reduced routing flexibility.
Considering the factors affecting the performance and reliability of 3D NoCs, it is not always possible to simultaneously achieve the required performance and thermal management through a heuristic approach [7]. Moreover, manually designing algorithm rules and strategies demands substantial engineering efforts. As a result, recent studies have proposed routing algorithms based on reinforcement machine learning, in order to automatically generate control policies for optimal results [19]. As reinforcement learning requires no human engineering or labeled training data when creating policies, it has the strength to directly generate optimal decision policies by learning runtime NoC states [20].
In adaptive routing algorithms, the Q-routing method, which combines reinforcement machine learning and routing strategy, has been proposed [21,22,23]. In conventional Q-routing, each node learns the network congestion status on the basis of local and global information, i.e., packet transfer delay, and stores the learned outcomes in a Q-table as scores that can determine an optimal packet output channel [21]. Stored scores (Q-values) are used as a criterion for determining the priorities of all paths. The Q-function gradually reflects traffic load information by updating the Q-value with a weighting of the stored scores in the Q-table to produce a new estimate from the existing neighboring nodes [22]. A routing scheme adopting this learning has a strong potential for significantly enhanced performance compared with conventional thermal-aware routing methods, by adapting the paths of packets to time-varying traffic loads in 3D NoCs [23]. Furthermore, the near-optimal solution of Q-learning is advantageous for constructing an optimal routing policy that considers performance and thermal management comprehensively in a 3D NoC, while considering more diverse factors than a 2D NoC [7]. However, the Q-table size overhead is problematic, as decisions are made using information regarding all paths for a specific node [23].
The contribution of this study is the proposal of a Q-function-based traffic- and thermal-aware adaptive routing (QTTAR). QTTAR is a Q-learning-based adaptive 3D routing algorithm for improving overall node utilization by balancing the distribution of inter-layer traffic and providing a more accurate congestion analysis to mitigate performance degradations due to RTM. Furthermore, the proposed algorithm mitigates differences in inter-layer cooling efficiency by balancing the distribution of overheated regions by layer. QTTAR recognizes regional congestion and hotspots by learning rapidly changing networks. Based on the Q-table, QTTAR generates an optimal policy and creates a routing decision. We describe the proposed routing algorithm in the context of two purposes: obtaining a high level of routable path diversity and developing a Q-function-based routable direction selection strategy. The process of collecting routable paths involves an adaptive intra-layer scheme and a downward interlayer scheme, with the final direction selection process determined based on the Q-value stored in the Q-table.
The rest of this paper is organized as follows. In Section 2, we introduce the Q-learning-based algorithm and other traffic- and thermal-aware routing algorithms for a 3D NoC. Section 3 describes the proposed QTTAR algorithm. In Section 4, we discuss the simulation results. Section 5 presents conclusions of the study.

2. Related Work

2.1. Routing Algorithms Using Runtime Thermal Management (RTM) in a 3D Network-on-Chip (NoC)

A number of traffic- and thermal-aware adaptive routing algorithms have been proposed to solve the temperature and traffic congestion problems in a 3D NoC. They mainly differ in the routable direction selection strategy and the RTM method. The neighbors-on-path and regional congestion awareness strategies are primarily used for routing direction selection [24,25]. The routable direction selection strategy is an approach for selecting an optimal direction to minimize congested nodes until a packet reaches its destination. According to the RTM method, the routing algorithm of a 3D NoC is classified as either proactive [9,15,16] or reactive [5,6,17].

2.1.1. Routing Algorithms Using Proactive RTM in a 3D NoC

Proactive thermal-budget-based beltway routing (PTB3R) was proposed for identifying potential thermal hotspots based on the remaining active time of nodes before throttling [16]. The PTB3R approach introduced the concept of calculating a mean time to throttle (MTTT) based on current temperature difference and temperature consumption rate in order to to predict the thermal margin of the router before throttling. It attempted to minimize the number of throttling nodes by sending packets to areas with high MTTTs.
Thermal-aware dynamic buffer allocation for proactive routing (PTDBA) balances thermal distribution by adjusting the depth of the router’s input buffer [9]. The PTDBA bypasses packets by inducing traffic congestion toward a router with a high rate of temperature rise. Bypassed packets are sent to a non-congested region with a low rate of temperature rise, thereby improving thermal balance and reducing packet congestion.
However, the temperature consumption rates for PTB3R and PTDBA are both calculated from traffic load information at a certain time in the past, which inhibits an accurate reflection of the current state of the network. Moreover, differences between predictions and actual network conditions lead to a failure in preventing throttled nodes, thereby reducing the efficiency of proactive operations.

2.1.2. Routing Algorithms Using Reactive RTM in a 3D NoC

Transport-layer assisted routing (TLAR) balances the traffic load between layers, through separate routing in vertical and horizontal directions, based on topology information [5]. TLAR prefers downward routing and distributed traffic to achieve a thermal balance between layers with lateral routing through the selective use of deterministic and adaptive methods. However, when horizontal routable directions in the NSI mesh are insufficient, the TLAR performs mainly downward routing. Thus, the traffic load in the bottom layer rapidly increases, reducing the traffic load imbalance between layers.
Topology-aware adaptive routing (TAAR) provides a novel cascaded algorithm that dynamically adjusts the packet routing mode based on network topology [17]. Concurrently, TAAR mitigates traffic imbalances between layers using queuing analysis theory. TAAR transmits packets to a non-congested minimal region, based on regional traffic information at the time of routing. However, contention still occurs, owing to an excessive concentration of packets in the minimal region, which may worsen the thermal imbalance.
A traffic- and thermal-aware adaptive beltway routing (TTABR) was introduced to solve imbalanced traffic and temperature distributions by dynamically selecting non-minimal or minimal routing paths [6]. The addition of non-minimal paths ensures the number of routing paths, reducing excessive contention problems in minimal routing regions. However, as a packet is sent to a bypass path using only traffic information at the routing point, the packet can still reach a hotspot region, as the information to determine actual hotspots can be insufficient.

2.2. Q-Learning-Based Routing Algorithm

A Q-learning-based routing scheme alleviates packet transfer delays caused by network congestion in a 3D NoC, with the strength to directly generate optimal decision policies by learning runtime NoC states [7]. A learning packet containing traffic condition information is used to update the Q-table and the optimal output channel is determined based on the stored values. The proposed routing scheme achieves higher throughput and lower power consumption using up-to-date congestion values. However, as the network size increases, the Q-table can cause excessive area overhead because Q-values for all possible route paths are stored. Moreover, existing Q-learning-based routing methods do not incorporate RTM to address thermal management.
The reactive and proactive RTM-based routing techniques described can resolve the overall thermal and contention problems of 3D NoCs, but inter-layer traffic imbalances and performance degradations caused by network congestion still remain challenges. In addition, previous studies using Q-learning did not consider 3D topology and thermal awareness when constructing the Q-table. Therefore, we propose a QTTAR algorithm that adopts RTM and also learns the traffic state of the 3D NoC to enable routing policies to be fully aware of congested regions.

3. Q-Function-Based Traffic- and Thermal-Aware Adaptive Routing (QTTAR)

Existing 3D NoC routing algorithms with RTM reduce thermal imbalances. However, traffic congestion owing to frequent blocking from the RTM mechanism and thermal considerations lead to performance degradation. QTTAR adopts the blocking mechanism of reactive RTM and simultaneously aims to alleviate performance degradation and inter-layer thermal imbalance. QTTAR generates routing policies to enable the paths of packets to be fully adapted to the time-varying traffic conditions. To prevent cyclic dependencies and ensure the diversity of routable directions that is important for maximizing the efficiency of the optimal Q-learning solution searching process, the first step of QTTAR involves collecting deadlock-free routing directions based on the topology and location of throttled nodes. In the second step, a policy is created to minimize latency by selecting the final direction via decision-making based on traffic congestion. Through these steps, QTTAR improves the inter-layer traffic load distribution, balances the per-layer biased utilization, performs thermal management and ultimately improves performance. The details of the process are as follows.
  • Step 1. Obtaining a high level of routable path diversity—we divide the routing process into intra- and inter-layers to prevent deadlock generation between the vertical and horizontal directions and to create a candidate group of directions for a packet to proceed, based on information regarding the throttling node;
  • Step 2. Q-function-based routable direction selection strategy—we check the buffer status of each node and score traffic information for each direction. Next, each node updates the Q-table after learning the state of network congestion and, based on the updated information, routes the packet to a non-congested direction among the candidate groups created in the preceding step.

3.1. Obtaining a High Level of Routable Path Diversity (Step 1)

The first step in QTTAR is to identify the throttling nodes for a minimal region from the current node to the destination node, then create a candidate group of deadlock-free directions. When the routing function is deterministic, the flexibility of the routable direction decreases rapidly if the minimal region is saturated with throttling nodes. In this case, there are few deadlock-free directions to choose from during the Q-table-based routing decision. Thus, we introduce an adaptive routing function to provide multiple deadlock-free directions. The selection of deadlock-free directions is configured independently using intra- and inter-layer routing to prevent cyclic dependency between the horizontal and vertical directions. Figure 3 shows the flow chart of the first step in QTTAR, where N C and N D represent the current node and destination node, respectively. The intra-layer routing contains a 2D NoC deadlock-free “odd–even” routing algorithm [26] providing even path diversity, whereas the inter-layer routing is based on a downward scheme. Existing thermal-aware routing algorithms dominantly use downward schemes despite the fact that routable paths still exist in the XY plane, resulting in an excessive thermal concentration in the lower layers [6,17]. Thus, QTTAR uses odd–even routing when N C is located above the throttling layer to increase the flexibility of the routing function and maximize the efficiency of Q-table-based decision making. Finding a route adaptively increases the diversity of paths compared with a deterministic approach. However, the computational complexity is O ( 4 N ) when all paths are found adaptively for the intra-layer region, which makes the overhead of the selection process very high [5]. The computational overhead is reduced by only searching for throttling nodes for minimal path regions.
Figure 4 shows the detailed operations of the routing function for collecting deadlock-free directions in QTTAR, where N P and N n are the previous node and a node n-hops away from the current node, respectively. Depending on the presence of throttling nodes in the minimal region, the directions are classified into inter-layer and intra-layer. If no throttled node exists in the minimal path region, the routing directions are initially selected through odd–even routing to ensure diversity for the subsequent Q-table-based routing decision phase, as shown in Figure 4a. If a throttling node is detected in the minimal region, intra-layer routing is performed according to the relationship of the x and y coordinates of the nodes N C   and   N D . If the x and y coordinate pairs of the two nodes are the same, downward routing occurs in the inter-layer and, if they are different, odd–even routing occurs in the same horizontal plane, as shown in Figure 4b. Through this process, QTTAR achieves reactive RTM by determining the final direction by bypassing the area containing the throttling nodes.
QTTAR prohibits routing of {North, South, East, West} followed by {Up} to prevent cyclic dependency between inter- and intra-layers, as shown in Figure 5. The {Up} direction routing is performed only when the x and y coordinate pairs of N C   and   N D are all equal and the destination is in the upper layer. This ensures that the directions selected in the first step of QTTAR are deadlock-free.

3.2. Q-Function-Based Routable Direction Selection Strategy (Step 2)

The second step of QTTAR is updating the Q-table based on network congestion information and selecting the direction with the most positive Q-value, as shown in Figure 6. The goal of this step is to select a final direction towards the non-congested region. QTTAR uses Q-learning to estimate the congestion of the network as close to the actual state as possible. Based on the estimated value, a Q-function-based routable direction selection strategy is established. Previous studies that introduced Q-tables in a 2D NoC [21,22,23] stored estimates for the paths for all nodes in the system in each node. Figure 7a shows a conventional Q-table for a node in a 3D mesh network with an 8 × 8 × 4 topology. In the Q-table, each row corresponds to a destination. Because a separate row is dedicated to each destination in the network and the number of nodes increases in multiples of the number of layers (compared to a 2D NoC), the area overhead of the Q-tables becomes problematic in a 3D NoC. To minimize the size of the Q-table, we simplified the row index to four directions of the intra-layer rather than using the number of destination nodes, as depicted in Figure 7b. In an n × m × l 3D mesh, the row size of the Q-table decreases n × m × l to four.
Updating the Q-value in the simplified Q-table is based on information from nodes that are two hops away, because the computational cost of searching all nodes is very high. N 1 is one hop away from N C , N 2 is two hops away and these nodes belong to the minimal path region in the {North, South, East, West, Up, Down} directions of N C . N 1 checks the throttling and buffer queue information of N 2 and delivers an estimate to N C . The estimate is a medium for identifying the traffic congestion and throttling state for each direction in N C ; a greater value indicates a more positive routing for that direction. Assuming an 8 × 8 × 4 topology, an estimate passed from N 1 to N C can reflect information from up to nine nodes, including one node up and one node down for the minimal region and two hops apart on the same plane, as shown in Figure 8. N C can identify routing information by considering regional information, rather than network information limited to minimal regions.
After receiving the estimate for each direction, N C calculates the new Q-value for the final routing decision, by combining the old Q-value and the estimate. This is expressed in Equation (1) as
Q ( b , z ) = Q ( b , z ) + Δ Q ( b , z ) ,   z { n o r t h , s o u t h , e a s t , w e s t } ,
where Q ( b , z ) represents the old Q-value being updated from the past to the present when routing from the current node to direction z and Q ( b , z ) is the new Q-value updated for the packet to be routed, calculated as the sum of Q ( b , z ) and Δ Q ( b , z ) . In this case, the larger the Q-value, the more positive the value of Q ( b , z ) . The parameter Δ Q ( b , z ) is the delta estimate for modification and is expressed in Equation (2) as
Δ Q ( b , z ) = α · ( S ( n e i g h b o r , y ) Q ( b , z ) ) ,   y { n o r t h , s o u t h , e a s t , w e s t , u p , d o w n } ,
where S ( n e i g h b o r , y ) represents the sum of newly received estimates from neighbor nodes in each direction, i.e., the scores implying input buffer state of neighbor nodes. Δ Q ( b , z ) act as modifiers to update the new Q-values using old Q-values and estimates from adjacent nodes. Algorithm 1 presents the mechanism for updating the Q-table in each node.
Algorithm 1 Updating Q-table.
1: 
SetAll directions { n o r t h , s o u t h , e a s t , w e s t , u p , d o w n }
2: 
SetNeighbor data[i] { v a l i d a t i o n , n u m b e r   o f   a v a i l a b l e   b u f f e r   s l o t ,   t h r o t t l i n g } from direction i
3: 
SetPort data[i]Neighbor data [All directions] received from i-th port
4: 
SetQ-value[i]Estimates for direction i
5: 
 
6: 
Variables
7: 
Bool validation
8: 
Bool throttling
9: 
Integer free_slots
10: 
Integer Temporal_score
11: 
 
12: 
Function Update
13: 
fori = 0 to size (All directions) do
14: 
  Temporal dataPort data[i]
15: 
  for j = 0 to size (All directions) do
16: 
    if Temporal data.Neighbor data[j].validation == valid
17: 
     validation ← true
18: 
    else validation ← false
19: 
 
20: 
    if Temporal data.Neighbor data[j].throttling == throttled
21: 
     throttling ← true
22: 
    else throttling ← false
23: 
 
24: 
    free_slotsTemporal data.Neighbor data[j].buffer slot
25: 
    Temporal_score + = ( i n t )   v a l i d a t i o n × t h r o t t l i n g × f r e e _ s l o t s
26: 
end for
27: 
 
28: 
Q-value[i] ← (1 - Learning_rate) * Q_value[i] + Learning_rate * Temporal_score
29: 
end for
30: 
end function
The parameter α is a learning rate for determining the weight of a delta estimate. The learning rate is a value between zero and one and determines how much to overwrite the old value by when reflecting new information to the Q-table. We can observe the best average latency when the learning rate is 0.6 (as determined through empirical experiments) and we used a learning rate of 0.6 in all experiments. Figure 9 shows the results from analyzing a learning rate of 0.6 compared to other values. A learning rate of 0.3 indicates that the old data have a heavy weight and 0.9 indicates that the new data have a heavy weight. Through this process, each node in the network updates the Q-table with the newly calculated Q ( b , z ) , selects the direction with the largest value and then performs routing.
To minimize hardware complexity from floating-point multiplication, which is a drawback of Q-learning-based routing, we devised a method to reduce the amount of computation. QTTAR reads a pre-calculated value from the look-up table (LUT) inside the router, rather than performing multiplication operations every time. Based on the architecture information, the range of calculated values is pre-determined and divided into four sections. If the estimates belong to one section, the method reads the contents of the LUT, as shown in Table 2. This method is used to calculate Δ Q ( b , z ) , which changes the multiplication process to a simple index and reduces the area overhead of the floating-point multipliers. S m a x is the maximum value among S ( n e i g h b o r , y ) and is expressed as the product of six directions {North, South, East, West, Up, Down} and the buffer flit size. S m a x is expressed in Equation (3) as
S m a x = m a x { S ( n e i g h b o r , y ) } = buffer   flit   size × 6 ,

4. Simulation Results

AccessNoxim [27], which provides the co-simulation and 3D configuration, was used to demonstrate the advantage of the proposed method. For the comparison of various routing algorithms, an NoC simulator, Noxim [28] and an architecture-level thermal model, HotSpot [29], were applied together. Table 3 presents the simulation parameters used for co-simulation comprising the network, power and thermal models of a 3D NoC, which are default values in AccessNoxim [27]. Each 3D router contains two extra physical channels {Up, Down} for vertical connections and the depth of each input buffer is 16 flits without a virtual channel. We evaluated network performance, including average latency, throughput, traffic load and temperature distribution with two related studies. One was the topology-aware routing proposed in [17] (referred to as ’TAAR’) and the other employed the traffic- and thermal-aware routing method proposed in [6] (referred to as ’TTABR’).

4.1. Performance

Figure 10 shows an average latency comparison for random, transpose-1, shuffle and bit-reversal traffic patterns for the same simulation time. The corresponding throughput comparison is shown in Figure 11. QTTAR showed performance improvement over TAAR and TTABR, regardless of the traffic pattern. Although TTABR provides greater path diversity than TAAR, the similar routing function produces almost identical latency. QTTAR achieved the highest latency improvement (3.98 times) in the transpose-1 traffic pattern, as shown in Figure 10b. Considering that the transpose-1 traffic pattern focuses on burst communication to a specific node, the result indicates that QTTAR effectively distributes packets that have the same destination. Thus, the proposed algorithm reflects the regional realistic congestion state in more detail through the Q-function, based on improved routing diversity and improved congestion-aware routing compared to other algorithms. Additionally, QTTAR exhibited a throughput improvement in the range of 14.0%–28.2% compared with TAAR and TTABR.

4.2. Traffic Load Distributions

Figure 12 shows the traffic load distributions under random, transpose-1, shuffle and bit-reversal traffic patterns. The averages and standard deviations for the traffic load distributions are presented in Table 4. QTTAR exhibited 24.9% more balanced inter-layer traffic load on average compared to TAAR and TTABR. Because TTABR and TAAR employed a similar routing function, their traffic load distributions are similar. The standard deviation of each node in the QTTAR is not significantly different from that of the other algorithms, but the standard deviation of the inter-layer traffic load distribution is the lowest in all but the shuffle traffic pattern. This is because TAAR and TTABR perform inter-layer routing only after confirming the intra-layer adaptability, without considering the inter-layer traffic load information. Therefore, if the destination node is located in a different layer, downward routing prevails, causing an unbalanced inter-layer traffic load distribution. Considering that the shuffle traffic pattern is mainly for intra-layer communication, the scale of packets processed per layer significantly influences the inter-layer traffic load distribution. Consequently, the inter-layer traffic load distribution of the QTTAR is unbalanced only in the shuffle traffic pattern.

4.3. Temperature Distributions for Traffic Patterns

Figure 13 illustrates the temperature distributions for random, transpose-1, shuffle and bit-reversal traffic patterns. The averages and standard deviations of the temperature distributions are presented in Table 4. Because the QTTAR improved the throughput by 14.0%–28.2%, the temperature and standard deviation increased by 1.3% and 4.7% on average, respectively. However, the inter-layer standard deviation for temperature was reduced by 30.6% on average, thereby indicating a more balanced temperature distribution by layer. This is because the QTTAR sent packets in a direction that avoided the high-temperature regions associated with excessive congestion, similar to the traffic load distribution by layer shown in Figure 12.

5. Conclusions

Three-dimensional die-stacked NoCs have a wider bandwidth and lower packet latency than 2D NoCs, which have significant drawbacks, such as increased thermal density and unbalanced heat dissipation. Various RTM techniques have been introduced to reduce hotspots. However, inter-layer traffic imbalances and performance degradations remain. In this study, we proposed a Q-function-based 3D NoC routing algorithm with a learning scheme, to mitigate the performance degradations of existing 3D NoC routing algorithms based on RTM. QTTAR gradually learns the network conditions and determines the optimal paths for each direction in the runtime, establishing a routing policy that considers the congested region more accurately, while maintaining the RTM. The simulation results revealed that QTTAR reduced latency and improved throughput by 14.0%–28.2% compared to previous studies, due to its more balanced inter-layer traffic loads. Furthermore, QTTAR provided effective inter-layer thermal management, reducing the standard deviation of the inter-layer temperature distribution by 30.6% on average.

Author Contributions

Conceptualization, S.C.L. and T.H.H.; methodology, S.C.L.; software, S.C.L.; validation, S.C.L. and T.H.H.; formal analysis, T.H.H.; investigation, S.C.L.; resources, T.H.H.; data curation, S.C.L.; writing—original draft preparation, S.C.L.; writing—review and editing, T.H.H.; visualization, S.C.L.; supervision, T.H.H.; project administration, T.H.H.; funding acquisition, T.H.H. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported, in part, by the Ministry of Trade, Industry and Energy (MOTIE) and Korea Semiconductor Research Consortium (KSRC) support program (10080594) for the development of the future semiconductor device and, in part, by the Institute of Information and communications Technology Planning and Evaluation (IITP) grant, funded by the Korean government (MSIT) (No.2019-0-00421, AI Graduate School Support Program (Sungkyunkwan University)).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Li, C.-L.; Yoo, J.-C.; Han, T.H. Energy-efficient custom topology-based dynamic voltage-frequency island-enabled network-on-chip design. J. Semicond. Technol. Sci. 2018, 18, 352–359. [Google Scholar] [CrossRef]
  2. Fang, J.; Zong, H.; Zhao, H.; Cai, H. Intelligent mapping method for power consumption and delay optimization based on heterogeneous NoC platform. Electronics 2019, 8, 912. [Google Scholar] [CrossRef] [Green Version]
  3. Lee, Y.S.; Kim, S.; Han, T.H. Aging-resilient topology synthesis of heterogeneous manycore network-on-chip using genetic algorithm with flexible number of routers. Electronics 2019, 8, 1458. [Google Scholar] [CrossRef] [Green Version]
  4. Taheri, E.; Mohammadi, K.; Patooghy, A. On–off: A reactive routing algorithm for dynamic thermal management in 3d NoCs. IET Comput. Digit. Tech. 2018, 13, 11–19. [Google Scholar] [CrossRef]
  5. Chao, C.-H.; Chen, K.-C.; Yin, T.-C.; Lin, S.-Y.; Wu, A.-Y. Transport-layer-assisted routing for runtime thermal management of 3D NoC systems. ACM Trans. Embed. Comput. Syst. 2013, 13, 1–22. [Google Scholar] [CrossRef]
  6. Chen, K.-C.; Kuo, C.-C.; Hung, H.-S.; Wu, A.-Y.A. Traffic-and thermal-aware adaptive beltway routing for three dimensional network-on-chip systems. In Proceedings of the 2013 IEEE International Symposium on Circuits and Systems (ISCAS2013), Beijing, China, 19–23 May 2013; pp. 1660–1663. [Google Scholar]
  7. WeldeZion, A.Y.; Ebrahimi, M.; Daneshtalab, M.; Tenhunen, H. Automated power and latency management in heterogeneous 3d nocs. In Proceedings of the 8th International Workshop on Network on Chip Architectures, Waikiki, HI, USA, 5 December 2015; pp. 33–38. [Google Scholar]
  8. Jiang, X.; Lei, X.; Zeng, L.; Watanabe, T. Fully adaptive thermal-aware routing for runtime thermal management of 3D network-on-chip. In Proceedings of the International MultiConference of Engineers and Computer Scientists, Hong Kong, China, 16–18 March 2016. [Google Scholar]
  9. Lee, Y.-S.; Hsin, H.-K.; Chen, K.-C.; Chang, E.-J.; Wu, A.-Y.A. Thermal-aware dynamic buffer allocation for proactive routing algorithm on 3D network-on-chip systems. In Proceedings of the Technical Papers of 2014 International Symposium on VLSI Design, Automation and Test, Hsinchu, Taiwan, 28–30 April 2014; pp. 1–4. [Google Scholar]
  10. Gagliano, S.; Cairone, F.; Amenta, A.; Bucolo, M. A real time feed forward control of slug flow in microchannels. Energies 2019, 12, 2556. [Google Scholar] [CrossRef] [Green Version]
  11. Salamat, R.; Khayambashi, M.; Ebrahimi, M.; Bagherzadeh, N. LEAD: An adaptive 3D-NoC routing algorithm with queuing-theory based analytical verification. IEEE Trans. Comput. 2018, 67, 1153–1166. [Google Scholar] [CrossRef]
  12. Seiculescu, C.; Murali, S.; Benini, L.; De Micheli, G. SunFloor 3D: A tool for networks on chip topology synthesis for 3-D systems on chips. IEEE Trans. Comput. Aided Des. Integr. Circuits Syst. 2010, 29, 1987–2000. [Google Scholar] [CrossRef] [Green Version]
  13. Charif, A.; Coelho, A.; Ebrahimi, M.; Bagherzadeh, N.; Zergainoh, N.-E. First-last: A cost-effective adaptive routing solution for tsv-based three-dimensional networks-on-chip. IEEE Trans. Comput. 2018, 67, 1430–1444. [Google Scholar] [CrossRef]
  14. Zou, T.; Zhang, C.; Peng, X.; Peng, Y. An inter-layer-distance based routing algorithm for 3D network-on-chip. In Proceedings of the CCF National Conference on Computer Engineering and Technology, Yinchuan, China, 15–17 August 2018; pp. 26–37. [Google Scholar]
  15. Taheri, E.; Patooghy, A.; Mohammadi, K. Cool elevator: A thermal-aware routing algorithm for partially connected 3d nocs. In Proceedings of the 2016 6th International Conference on Computer and Knowledge Engineering (ICCKE), Mashhad, Iran, 20 October 2016; pp. 111–116. [Google Scholar]
  16. Kuo, C.-C.; Chen, K.-C.; Chang, E.-J.; Wu, A.-Y. Proactive thermal-budget-based beltway routing algorithm for thermal-aware 3D NoC systems. In Proceedings of the 2013 International Symposium on System on Chip (SoC), Tampere, Finland, 23–24 October 2013; pp. 1–4. [Google Scholar]
  17. Chen, K.-C.; Lin, S.-Y.; Hung, H.-S.; Wu, A.-Y.A. Topology-aware adaptive routing for nonstationary irregular mesh in throttled 3D NoC systems. IEEE Trans. Parallel Distrib. Syst. 2012, 24, 2109–2120. [Google Scholar] [CrossRef]
  18. Chen, K.-C.J.; Chao, C.-H.; Wu, A.-Y.A. Thermal-aware 3D network-on-chip (3D NoC) designs: Routing algorithms and thermal managements. IEEE Circuits Syst. Mag. 2015, 15, 45–69. [Google Scholar]
  19. Boyan, J.A.; Littman, M.L. Packet routing in dynamically changing networks: A reinforcement learning approach. In Proceedings of the Advances in Neural Information Processing Systems, Denver, CO, USA, 29 November–2 December 1993; pp. 671–678. [Google Scholar]
  20. Wang, K.; Louri, A.; Karanth, A.; Bunescu, R. High-performance, energy-efficient, fault-tolerant network-on-chip design using reinforcement learnin. In Proceedings of the 2019 Design, Automation & Test in Europe Conference & Exhibition (DATE), Florence, Italy, 25–29 March 2019; pp. 1166–1171. [Google Scholar]
  21. Xiang, Y.; Meng, J.; Ma, D. A Q-routing based self-regulated routing scheme for network-on-chip. In Proceedings of the 2017 IEEE 9th International Conference on Communication Software and Networks (ICCSN), Guangzhou, China, 6–8 May 2017; pp. 177–181. [Google Scholar]
  22. Farahnakian, F.; Ebrahimi, M.; Daneshtalab, M.; Plosila, J.; Liljeberg, P. Optimized Q-learning model for distributing traffic in on-chip networks. In Proceedings of the 2012 IEEE 3rd International Conference on Networked Embedded Systems for Every Application (NESEA), Liverpool, UK, 13–14 December 2012; pp. 1–8. [Google Scholar]
  23. Farahnakian, F.; Ebrahimi, M.; Daneshtalab, M.; Liljeberg, P.; Plosila, J. Q-learning based congestion-aware routing algorithm for on-chip network. In Proceedings of the 2011 IEEE 2nd International Conference on Networked Embedded Systems for Enterprise Applications, Fremantle, WA, Australia, 8–9 December 2011; pp. 1–7. [Google Scholar]
  24. Ascia, G.; Catania, V.; Palesi, M.; Patti, D. Neighbors-on-path: A new selection strategy for on-chip networks. In Proceedings of the 2006 IEEE/ACM/IFIP Workshop on Embedded Systems for Real Time Multimedia, Seoul, South Korea, 26–27 October 2006; pp. 79–84. [Google Scholar]
  25. Gratz, P.; Grot, B.; Keckler, S.W. Regional congestion awareness for load balance in networks-on-chip. In Proceedings of the 2008 IEEE 14th International Symposium on High Performance Computer Architecture, Salt Lake City, UT, USA, 16–20 February 2008; pp. 203–214. [Google Scholar]
  26. Chiu, G.-M. The odd-even turn model for adaptive routing. IEEE Trans. Parallel Distrib. Syst. 2000, 11, 729–738. [Google Scholar] [CrossRef] [Green Version]
  27. Jheng, K.-Y.; Chao, C.-H.; Wang, H.-Y.; Wu, A.-Y. Traffic-thermal mutual-coupling co-simulation platform for three-dimensional network-on-chip. In Proceedings of the 2010 International Symposium on VLSI Design, Automation and Test, Hsin Chu, Taiwan, 26–29 April 2010; pp. 135–138. [Google Scholar]
  28. Catania, V.; Mineo, A.; Monteleone, S.; Palesi, M.; Patti, D. Noxim: An open, extensible and cycle-accurate network on chip simulator. In Proceedings of the 2015 IEEE 26th International Conference on Application-Specific Systems, Architectures and Processors (ASAP), Toronto, ON, Canada, 27–29 July 2015; pp. 162–163. [Google Scholar]
  29. Huang, W.; Ghosh, S.; Velusamy, S.; Sankaranarayanan, K.; Skadron, K.; Stan, M.R. HotSpot: A compact thermal modeling methodology for early-stage VLSI design. IEEE Trans. Very Large Scale Integr. Syst. 2006, 14, 501–513. [Google Scholar] [CrossRef]
Figure 1. Thermal considerations in 3D stacked network-on-chip.
Figure 1. Thermal considerations in 3D stacked network-on-chip.
Electronics 09 00392 g001
Figure 2. Dependence of yield on the number of through-silicon-via (TSV) integrations for different manufacturing processes [12].
Figure 2. Dependence of yield on the number of through-silicon-via (TSV) integrations for different manufacturing processes [12].
Electronics 09 00392 g002
Figure 3. Algorithm flow for the routing function of Q-function-based traffic- and thermal-aware adaptive routing (QTTAR).
Figure 3. Algorithm flow for the routing function of Q-function-based traffic- and thermal-aware adaptive routing (QTTAR).
Electronics 09 00392 g003
Figure 4. Detailed routability checking method maintaining runtime thermal management (RTM): (a) no throttled nodes detected in the minimal region; (b) throttled nodes detected.
Figure 4. Detailed routability checking method maintaining runtime thermal management (RTM): (a) no throttled nodes detected in the minimal region; (b) throttled nodes detected.
Electronics 09 00392 g004
Figure 5. Deadlock prevention in the routable direction selection.
Figure 5. Deadlock prevention in the routable direction selection.
Electronics 09 00392 g005
Figure 6. Flow of Q-function-based routable direction selection strategy.
Figure 6. Flow of Q-function-based routable direction selection strategy.
Electronics 09 00392 g006
Figure 7. Q-table configuration for: (a) a conventional Q-table; (b) a simplified 2-hop Q-table.
Figure 7. Q-table configuration for: (a) a conventional Q-table; (b) a simplified 2-hop Q-table.
Electronics 09 00392 g007
Figure 8. Detailed information collection method toward minimal region.
Figure 8. Detailed information collection method toward minimal region.
Electronics 09 00392 g008
Figure 9. Analysis of the best performance-yielding learning rate.
Figure 9. Analysis of the best performance-yielding learning rate.
Electronics 09 00392 g009
Figure 10. Latency comparison under different traffic conditions: (a) random; (b) transpose-1; (c) shuffle; (d) bit-reversal.
Figure 10. Latency comparison under different traffic conditions: (a) random; (b) transpose-1; (c) shuffle; (d) bit-reversal.
Electronics 09 00392 g010aElectronics 09 00392 g010b
Figure 11. Throughput comparison under different traffic conditions: (a) random; (b) transpose-1; (c) shuffle; (d) bit-reversal.
Figure 11. Throughput comparison under different traffic conditions: (a) random; (b) transpose-1; (c) shuffle; (d) bit-reversal.
Electronics 09 00392 g011
Figure 12. Traffic load distribution comparison under different traffic conditions: (a) random; (b) transpose-1; (c) shuffle; (d) bit-reversal.
Figure 12. Traffic load distribution comparison under different traffic conditions: (a) random; (b) transpose-1; (c) shuffle; (d) bit-reversal.
Electronics 09 00392 g012
Figure 13. Temperature distributions for different traffic conditions: (a) random; (b) transpose-1; (c) shuffle; (d) bit-reversal.
Figure 13. Temperature distributions for different traffic conditions: (a) random; (b) transpose-1; (c) shuffle; (d) bit-reversal.
Electronics 09 00392 g013
Table 1. Comparison between proactive and reactive runtime thermal management in 3D network-on-chips (NoCs).
Table 1. Comparison between proactive and reactive runtime thermal management in 3D network-on-chips (NoCs).
Proactive RTMReactive RTM
MethodPredictive manner, precautionPost-operation, blocking
ProsPreventing throttled nodes in advanceConcentrating on performance without thermal pre-consideration
ConsComputation overhead for predictionCannot prevent throttled nodes in advance
Related worksPTDBA [9], Cool-elevator [15], PTB3R [16]TLAR [5], TAAR [17], TTABR [6]
Detailed operation [18] Electronics 09 00392 i001 Electronics 09 00392 i002
Table 2. Look-up table for simplified multiplication.
Table 2. Look-up table for simplified multiplication.
RangeValue
0 S ( n e i g h b o r , y ) < 0.2 × S m a x 0.1 × S m a x
0.2 × S m a x S ( n e i g h b o r , y ) < 0.5 × S m a x 0.35 × S m a x
0.5 × S m a x S ( n e i g h b o r , y ) < 0.8 × S m a x 0.65 × S m a x
0.8 × S m a x S ( n e i g h b o r , y ) < S m a x 0.9 × S m a x
Table 3. Specification of parameters for simulation [27].
Table 3. Specification of parameters for simulation [27].
ParameterValue
Packet size8 flits
Buffer size16 flits
Simulation time 5 × 10 5 cycles
Warm-up time4000 cycles
Mesh size8 × 8 × 4
Throttling schemevertical throttling
Traffic patternrandom, transpose-1, shuffle, bit-reversal
Temperature threshold98 °C
Initial temperature80 °C
Table 4. Traffic load and temperature distribution comparison under different conditions for thermal-aware adaptive beltway routing (TTABR), topology-aware adaptive routing (TAAR) and QTTAR.
Table 4. Traffic load and temperature distribution comparison under different conditions for thermal-aware adaptive beltway routing (TTABR), topology-aware adaptive routing (TAAR) and QTTAR.
Random
Traffic load distributionTemperature distribution
AlgorithmsTTABRTAARQTTARTTABRTAARQTTAR
Avg.678,252646,493683,23193.4192.9293.19
Stdv.172,380216,223217,0583.103.393.26
Inter-layer Stdv.108,68092,38888,8320.980.830.36
Transpose-1
Traffic load distributionTemperature distribution
AlgorithmsTTABRTAARQTTARTTABRTAARQTTAR
Avg.544,676608,262609,94890.8691.4691.99
Stdv.219,945216,159201,0762.903.233.25
Inter-layer Stdv.143,969124,83596,7281.010.820.24
Shuffle
Traffic load distributionTemperature distribution
AlgorithmsTTABRTAARQTTARTTABRTAARQTTAR
Avg.461,710488,110563,51790.6690.9191.80
Stdv.171,942200,824179,0002.863.093.22
Inter-layer Stdv.38,18849,83845,8130.350.300.38
Bit-reversal
Traffic load distributionTemperature distribution
AlgorithmsTTABRTAARQTTARTTABRTAARQTTAR
Avg.285,068249,169276,73088.4087.9288.25
Stdv.159,237174,110144,1331.982.022.07
Inter-layer Stdv.45,28440,79114,3200.280.220.23
U n i t :   f l i t   ( t r a f f i c   l o a d   d i s t r i b u t i o n ) ,   ° C   ( t e m p e r a t r u e   d i s t r i b u t i o n ) .

Share and Cite

MDPI and ACS Style

Lee, S.C.; Han, T.H. Q-Function-Based Traffic- and Thermal-Aware Adaptive Routing for 3D Network-on-Chip. Electronics 2020, 9, 392. https://doi.org/10.3390/electronics9030392

AMA Style

Lee SC, Han TH. Q-Function-Based Traffic- and Thermal-Aware Adaptive Routing for 3D Network-on-Chip. Electronics. 2020; 9(3):392. https://doi.org/10.3390/electronics9030392

Chicago/Turabian Style

Lee, Seung Chan, and Tae Hee Han. 2020. "Q-Function-Based Traffic- and Thermal-Aware Adaptive Routing for 3D Network-on-Chip" Electronics 9, no. 3: 392. https://doi.org/10.3390/electronics9030392

APA Style

Lee, S. C., & Han, T. H. (2020). Q-Function-Based Traffic- and Thermal-Aware Adaptive Routing for 3D Network-on-Chip. Electronics, 9(3), 392. https://doi.org/10.3390/electronics9030392

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop