Join us for our next SAFARI Live Seminar with Ataberk Olgun.
QUAC-TRNG: High-Throughput True Random Number Generation Using Quadruple Row Activation in Commodity DRAM Chips
Ataberk Olgun, TOBB University of Economics and Technology & SAFARI Research Group, ETH Zurich
Livestream at 5:00 pm Zurich time (CEST) on YouTube: Link
True random number generators (TRNG) sample random physical processes to create large amounts of random numbers for various use cases, including security-critical cryptographic primitives, scientific simulations, machine learning applications, and even recreational entertainment. Unfortunately, not every computing system is equipped with dedicated TRNG hardware, limiting the application space and security guarantees for such systems. To open the application space and enable security guarantees for the overwhelming majority of computing systems that do not necessarily have dedicated TRNG hardware, we develop QUAC-TRNG.
QUAC-TRNG exploits the new observation that a carefully-engineered sequence of DRAM commands activates four consecutive DRAM rows in rapid succession. This QUadruple ACtivation (QUAC) causes the bitline sense amplifiers to non-deterministically converge to random values when we activate four rows that store conflicting data because the net deviation in bitline voltage fails to meet reliable sensing margins.
We experimentally demonstrate that QUAC reliably generates random values across 136 commodity DDR4 DRAM chips from one major DRAM manufacturer. We describe how to develop an effective TRNG (QUAC-TRNG) based on QUAC. We evaluate the quality of our TRNG using NIST STS and find that QUAC-TRNG successfully passes each test. Our experimental evaluations show that QUAC-TRNG generates true random numbers with a throughput of 3.44 Gb/s (per DRAM channel), outperforming the state-of-the-art DRAM-based TRNG by 15.08x and 1.41x for basic and throughput-optimized versions, respectively. We show that QUAC-TRNG utilizes DRAM bandwidth better than the state-of-the-art, achieving up to 2.03x the throughput of a throughput-optimized baseline when scaling bus frequencies to 12 GT/s.
Ataberk Olgun received his BSc degree in Computer Engineering from TOBB University of Economics and Technology, where he is currently studying for a Masters Degree. He joined SAFARI Research Group as an undergraduate intern in 2019. Since then he has worked on many projects on DRAM, Security, and Processing-in-Memory.
Ataberk Olgun, Minesh Patel, A. Giray Yaglikci, Haocong Luo, Jeremie S. Kim, F. Nisa Bostanci, Nandita Vijaykumar, Oguz Ergin, and Onur Mutlu, “QUAC-TRNG: High-Throughput True Random Number Generation Using Quadruple Row Activation in Commodity DRAM Chips” Proceedings of the 48th International Symposium on Computer Architecture (ISCA), Virtual, June 2021.
[Long Talk Video (25 minutes)]
[Long Talk Slides (pptx) (pdf)]
[Short Talk Video (7 minutes)]
[Short Talk Slides (pptx) (pdf)]
[Conference Talk and Q&A (15 minutes)]
Related talks & lectures:
D-RaNGe: True Random Number Generation with Commodity DRAM https://www.youtube.com/watch?v=Y3hPv1I5f8Y&list=PL5Q2soXY2Zi-DyoI3HbqcdtUm9YWRR_z-&index=16
DRAM Latency PUFs (Physical Unclonable Functions) https://www.youtube.com/watch?v=7gqnrTZpjxE&list=PL5Q2soXY2Zi-DyoI3HbqcdtUm9YWRR_z-&index=15
CODIC: A Low-Cost Substrate for Enabling Custom In-DRAM Functionalities and Optimizations https://www.youtube.com/watch?v=ofBJnFQA6ic&list=PL5Q2soXY2Zi8_VVChACnON4sfh2bJ5IrD&index=133
Computer Architecture – Lecture 10: Low-Latency Memory (ETH Zürich, Fall 2020) https://www.youtube.com/watch?v=vQd1YgOH1Mw&list=PL5Q2soXY2Zi9xidyIgBxUz7xRPS-wisBN&index=19
Computer Architecture – Lecture 11a: Memory Controllers (ETH Zürich, Fall 2020) https://www.youtube.com/watch?v=TeG773OgiMQ&list=PL5Q2soXY2Zi9xidyIgBxUz7xRPS-wisBN&index=20