Hardware-Defined Networking by Brian Petersen
Total Page:16
File Type:pdf, Size:1020Kb
HARDWARE-DEFINED NETWORKING Books Networks Juniper MODERN NETWORKING FROM A HARDWARE PERSPECTIVE Hardware-Defined Networking (HDN) explores the patterns that are common to modern net- Distinguished Engineering Series working protocols and provides a framework for understanding the work that networking hard- ware performs on a packet-by-packet basis billions of times per second. These patterns are not revealed in the command line interfaces that are the daily tools of IT professionals. The architects and protocol designers of the Internet and other large-scale net- NETWORKING HARDWARE-DEFINED works understand these patterns, but they are not expressed in the standards documents that HARDWARE-DEFINED NETWORKING form the foundations of the networks that we all depend upon. HDN presents these essential networking patterns and describes their impact on hardware ar- MODERN NETWORKING FROM A HARDWARE PERSPECTIVE chitectures, resulting in a framework that software developers, dev ops, automation program- mers, and all the various networking engineers can understand how modern networks are built. Most networking books are written from a network administrator’s perspective (how to build and manage a network), while many new networking books are now written from a software Foundation Principles perspective (how to implement a network’s management plane in software); HDN’s perspective Tunnels will benefit both the hardware and the software engineers who need to understand the trade- offs of design choices. Network Virtualization Terminology Forwarding Protocols “Today, massive compute problems such as machine learning are being tackled by special- Load Balancing ized chips (GPUs, TPUs). So, how will specialized hardware handle the massive band- Overlay Protocols widths from IoT devices to Mega-Scale Data Centers and equally massive bandwidths from Virtual Private Networks those MSDCs to hand-helds? Here is just the book to find out: every time I open it I learn something new, something I didn’t know. Brian Petersen has taken a thoroughly modern Multicast snapshot of how it all comes together .” Connections Dr. Kireeti Kompella, SVP and CTO Engineering, Juniper Networks Quality of Service This hardware perspective of networking Time Synchronization “Brian Petersen has accomplished something quite remarkable with this book; he has dis- delivers a common framework for OAM tilled complex and seemingly disparate networking protocols and concepts into an emi- Security nently understandable framework. This book serves as both an excellent reference and as a software developers, dev ops, auto- Searching learning tool for individuals from a broad range of networking disciplines.” mation programmers, and all the various Jean-Marc Frailong, Chief Architect, Juniper Networks Firewall Filters networking engineers to understand how Routing Protocols Brian Petersen modern networks are built. Forwarding System Architecture ISBN 978-1-941441-51-0 5 4 0 0 0 Juniper Networks Books are singularly focused on network productivity and efficiency. Peruse the complete library at www.juniper.net/books. By Brian Petersen 9 781941 441510 HARDWARE-DEFINED NETWORKING Books Networks Juniper MODERN NETWORKING FROM A HARDWARE PERSPECTIVE Hardware-Defined Networking (HDN) explores the patterns that are common to modern net- Distinguished Engineering Series working protocols and provides a framework for understanding the work that networking hard- ware performs on a packet-by-packet basis billions of times per second. These patterns are not revealed in the command line interfaces that are the daily tools of IT professionals. The architects and protocol designers of the Internet and other large-scale net- NETWORKING HARDWARE-DEFINED works understand these patterns, but they are not expressed in the standards documents that HARDWARE-DEFINED NETWORKING form the foundations of the networks that we all depend upon. HDN presents these essential networking patterns and describes their impact on hardware ar- MODERN NETWORKING FROM A HARDWARE PERSPECTIVE chitectures, resulting in a framework that software developers, dev ops, automation program- mers, and all the various networking engineers can understand how modern networks are built. Most networking books are written from a network administrator’s perspective (how to build and manage a network), while many new networking books are now written from a software Foundation Principles perspective (how to implement a network’s management plane in software); HDN’s perspective Tunnels will benefit both the hardware and the software engineers who need to understand the trade- offs of design choices. Network Virtualization Terminology Forwarding Protocols “Today, massive compute problems such as machine learning are being tackled by special- Load Balancing ized chips (GPUs, TPUs). So, how will specialized hardware handle the massive band- Overlay Protocols widths from IoT devices to Mega-Scale Data Centers and equally massive bandwidths from Virtual Private Networks those MSDCs to hand-helds? Here is just the book to find out: every time I open it I learn something new, something I didn’t know. Brian Petersen has taken a thoroughly modern Multicast snapshot of how it all comes together .” Connections Dr. Kireeti Kompella, SVP and CTO Engineering, Juniper Networks Quality of Service This hardware perspective of networking Time Synchronization “Brian Petersen has accomplished something quite remarkable with this book; he has dis- delivers a common framework for OAM tilled complex and seemingly disparate networking protocols and concepts into an emi- Security nently understandable framework. This book serves as both an excellent reference and as a software developers, dev ops, auto- Searching learning tool for individuals from a broad range of networking disciplines.” mation programmers, and all the various Jean-Marc Frailong, Chief Architect, Juniper Networks Firewall Filters networking engineers to understand how Routing Protocols Brian Petersen modern networks are built. Forwarding System Architecture ISBN 978-1-941441-51-0 5 4 0 0 0 Juniper Networks Books are singularly focused on network productivity and efficiency. Peruse the complete library at www.juniper.net/books. By Brian Petersen 9 781941 441510 Hardware-Defined Networking Modern Networking from a Hardware Perspective by Brian Petersen 1. Preface .......................................................................3 2. Introduction ...................................................................5 3. Foundation Principles .........................................................8 4. Tunnels ...................................................................... 14 5. Network Virtualization. .23 6. Terminology .................................................................. 31 7. Forwarding Protocols .........................................................40 8. Load Balancing ...............................................................115 9. Overlay Protocols. 126 10. Virtual Private Networks .....................................................140 11. Multicast ....................................................................154 12. Connections. 167 13. Quality of Service ............................................................185 14. Time Synchronization ....................................................... 209 15. OAM ........................................................................239 16. Security .....................................................................277 17. Searching ...................................................................302 18. Firewall Filters ...............................................................315 19. Routing Protocols ...........................................................321 20. Forwarding System Architecture .............................................335 21. Conclusion ..................................................................349 ii Hardware-Defined Networking © 2017 by Juniper Networks, Inc. All rights reserved. About the Author Juniper Networks and Junos are registered trademarks of Brian Petersen’s engineering career largely mirrors the Juniper Networks, Inc. in the United States and other growth and progress in networking. After exploring a countries. The Juniper Networks Logo and the Junos logo, variety of disciplines, Brian joined 3Com Corporation back are trademarks of Juniper Networks, Inc. All other when Ethernet’s most formidable competitor was trademarks, service marks, registered trademarks, or “SneakerNet”— floppy discs. From there, Brian did registered service marks are the property of their respective pioneering work on high-density 100 Mbps Ethernet owners. Juniper Networks assumes no responsibility for bridges at Grand Junction Networks and, after its any inaccuracies in this document. Juniper Networks acquisition, at Cisco Systems. The volatile early 2000s led reserves the right to change, modify, transfer, or otherwise to a series of startups (notably Greenfield Networks and revise this publication without notice. TeraBlaze), culminating in several years at Broadcom Corporation and, since 2010, as a Distinguished Engineer Published by Juniper Networks Books at Juniper Networks. From building Ethernet MACs using Written and Illustrated by: Brian Petersen discrete logic elements to developing packet processing Editors: Patrick Ames, Nancy Koerbel architectures for multi-terabit packet forwarding engines intended for chassis-scale systems, Brian has developed a ISBN: 978-1-941441-51-0