Leanpub Header

Skip to main content

C++ Network Automation Expert Guide [Bundle of 4 Books]

Anyone can script a network in Python. Almost no one can automate the performance-critical core, like SDN, intrusion detection, and AI infrastructure, in modern C++. This bundle makes you that rare engineer.

you can go from administering and troubleshooting real networks to automating software-defined networks, security, and cloud at scale, all on a current C++23 foundation. It is a specialist, highly defensible skill set that sits exactly where fast networking meets modern C++.

Bought separately

$119.96

Minimum price

$77.99

$84.99

You pay

Author earns

$

Also available for 3 book credits with a Reader Membership

These books have a total suggested price of $119.96. Get them now for only $77.99!
About

About

About the Bundle

Most network automation lives in Python, but the performance-critical core of SDN, intrusion detection, and AI infrastructure increasingly demands C++, and very few engineers can work there. This bundle is how you become one of them. It is built for network and systems engineers who want to program and automate infrastructure in modern C++ rather than script around it, taking you from administering and troubleshooting real networks to automating software-defined networks, security, cloud, and AI infrastructure at scale, all on a current, standards-compliant C++23 foundation.

Owned together, these titles form a complete path from fundamentals to production automation, giving you a rare and highly defensible skill set that sits exactly where high-performance networking and modern C++ meet. It is specialist expertise the market pays well for.

Books

About the Books

Mastering C++ Network Automation

Mastering C++ Network Automation

Run Automation across Configuration Management, Container Orchestration, Kubernetes, and Cloud Networking

This book is an in-depth guide for network administrators, cloud architects, and container and Kubernetes administrators who want to learn how to automate networking tasks in C++. From setting up a network automation environment to automating configuration management and working with containers and container orchestration tools such as Kubernetes, the book covers a wide range of topics.

The first section of the book covers the fundamentals of automation scripting and testing. Readers will learn how to create successful automation scripts and test them to ensure they perform properly. The next section describes how to set up a network automation environment. This includes configuring network devices, servers, and other components required for automation. The readers will learn about the various protocols as well as how to use Ansible to automate the configuration management of these devices. It covers containerization and container orchestration systems such as Docker and Kubernetes. Readers will learn how to use tools such as Docker Compose and Kubernetes to automate workload management and deployment.

The final section of the book focuses on cloud networking. The readers will learn how to handle network resources in cloud systems such as AWS, Google Cloud, and Azure. Readers get to work with tools and services available for cloud networking automation, best practices and how to use them in their regular cloud networking operations.

Key Learnings

  • Setting up GNS3, Eclipse IDE, cpp-netlib, Boost, OpenSSL, and zlib libraries
  • Configure the ports, hosts, and servers using C++ scripting
  • Writing, testing, and validating network automation scripts in both, test and production environment
  • Building docker images, running containers, and managing container deployments
  • Using Ansible for server provisioning, automated system identification and managing auto-updates
  • Automating container scheduling, service discovery, and load balancing
  • Setting up Kubernetes cluster, Nginx ingress, implementing service mesh, and automating firewall configuration
  • Working with AWS, Azure and Google Cloud Networking Services for Cloud Automation

Table of Content

  1. C++ Basics for Networks
  2. C++ Advanced for Networks
  3. Preparing Network Automation Setup
  4. Script, Test, and Validate Network Automation
  5. Automating Configuration Management
  6. Working with Docker and Containers
  7. Container Orchestration and Workload Automation
  8. Kubernetes Automation
  9. Administering Google Cloud Networking
  10. Administering Azure Networking

Audience

This is a fantastic desk reference for network administrators, cloud architects, DevOps engineers, and automation engineers wishing to automate networking tasks with C++. It is a must-have book for anyone who wants to keep ahead of the curve in the field of networking automation.

Modern C++23 QuickStart Pro

Modern C++23 QuickStart Pro

Advanced programming including variadic templates, lambdas, async IO, multithreading and thread sync

Learn the latest features of C++23 with Modern C++ 23 QuickStart Pro, the perfect book for experienced developers who want to expand their knowledge and skills. This book takes a hands-on approach, providing rapid learning through real-world examples and scenarios that address complex programming challenges in C++.

The book begins by demonstrating the power of variadic templates and how to use them for dynamic function signatures. After becoming familiar with fold expressions for argument handling, you will then explore std::tuple and std::variant for handling heterogeneous data. The book then covers advanced function morphing with parameter packs and shape-shifting lambdas, as well as dynamic programming techniques. It also teaches complex function overloading and high-level thread orchestration using futures, promises, and callables. Next, we'll go over some low-level IO operations, such as controlling IO streams, efficiently handling file descriptors, and directly manipulating files.

You will then learn how to optimize memory management with shared, unique, and weak pointers, and how to engineer memory performance with custom allocators and cache-aware programming. You will learn advanced synchronization, including atomic operations, mutexes, locks, and thread pools, as well as lock-free data structures for peak performance. In addition, this book covers optimal integer and floating-point operations, arbitrary precision arithmetic, precise rounding with fixed-point arithmetic, and high-performance computation using math constant integration.

Key Learnings

  • Utilize C++23 variadic templates for dynamic function signatures.
  • Use fold expressions to simplify complex function operations and argument handling.
  • Manage heterogeneous data in high-performance applications with std::tuple and std::variant.
  • Use parameter packs and perfect forwarding to create flexible function signatures.
  • Use shape-shifting lambdas for flexible argument patterns.
  • Master file manipulation and stream management to create efficient low-level IO systems.
  • Customize memory management with unique, shared, and weak pointers to control resources.
  • Boost parallel processing with mutexes, locks, and thread pools.
  • Create lock-free data structures to reduce locking overhead in concurrent systems.
  • Use mathematical constants and precise rounding to improve numerical computations.

Table of Content

  1. Potential of Variadic Power in C++23
  2. Morphing Functions and Lambdas
  3. Taming Low-Level IO Operations
  4. Mastering Buffering and Async IO
  5. Outperforming Memory Management
  6. Engineering Memory Performance
  7. Advanced Multithreading for Experts
  8. Thread Synchronization and Atomic Mastery
  9. Turbocharging Floats and Ints
C++ Networking 101, Second Edition

C++ Networking 101, Second Edition

Build strong expertise into programming sockets, protocols, VPNs, and asynchronous I/O with 75+ sample programs

The point of this edition is to help C++ programmers get the skills and confidence they need to do a wide range of networking tasks. The book gives lots of practical, easy-to-follow examples and covers most key areas of network programming, but intentionally leaves out highly complex scenarios.

It starts with the basics of how C++ works with TCP/IP and gradually builds on that as you learn to write client-server applications, configure IP addressing and subnets, implement protocols like HTTP, FTP, SMTP, IMAP, and DNS, and handle network communication errors effectively. It's packed with clear explanations and real code that works. You'll dive into VPN setups, wireless networking standards, asynchronous programming models, and network simulations, using modern C++23 features throughout. As the chapters go on, the focus moves on to getting the most out of devices and making them run smoothly. This includes using NETCONF to automate device configurations, managing firmware updates, tweaking socket behavior for better performance, setting up recovery systems, and making diagnostic tools. You'll also set up network monitoring using Nagios, along with custom C++ checks to track faults, performance metrics, and security events in real time.

After finishing, you'll be able to think and work like a network programmer and administrator, and you'll be ready to use your skills in real-world situations.

Key Features

  • Build strong foundations in TCP/IP networking using modern C++ coding examples.
  • Work on client-server applications with TCP and UDP sockets, and get to know real-world communication patterns.
  • Get hands-on with IP addressing, subnets, and routing through practical demonstrations and progressive programming exercises.
  • Put core application protocols like HTTP, FTP, SMTP, IMAP, and DNS in C++.
  • Take advantage of NETCONF and C++ to automate configuration tasks across network devices efficiently and consistently.
  • Employ asynchronous programming, multithreading, and event-driven models to handle high-performance networking scenarios.
  • Program your devices to automatically update their firmware, adjust their settings, and recover if something goes wrong.
  • Combine Nagios monitoring with custom C++ checks for fault, performance, and security visibility.
  • Simulate and test networks using NS-3 and diagnostic tools for real-time problem solving.

Table of Content

  1. Introduction to Networking and C++
  2. Understanding TCP and UDP
  3. Network Interfaces and Addressing
  4. Application Layer Protocols
  5. VPNs
  6. Wireless Networks
  7. Asynchronous Programming
  8. Network Testing and Simulation
  9. Network Configuration Management
  10. Network Monitoring
Programmable Networks with C++

Programmable Networks with C++

Network Automation for SDN, Intrusion Detection, Cloud, Kubernetes and AI Infrastructure with C++23

These days, networks aren't just racks of switches anymore, they're also AI clusters. A single training job depends on a lossless fabric, a Kubernetes control plane, a cloud VPC, an inference gateway, and a telemetry pipeline that has to notice trouble before anybody files a ticket. Even with something as strong as Python glue, it's not going to hold up at that size. But C++23 doesn't. When you get to the end of this book, you'll have a fully-fledged automation tool at your disposal.

The book kicks off with std::expected, std::span, ranges, and coroutines applied to real device work, then builds a CMake and vcpkg project with sanitizers, tests, and a containerlab fabric. Then you can drive NETCONF, YANG, and gNMI, provision servers over SSH and Ansible, program OVSDB and VXLAN overlays, automate Suricata and Vectorscan detection, and reach AWS and Azure through one interface. The last couple of chapters show you how to use Kubernetes resources on the server side, attach pods to RDMA devices through Multus and SR-IOV, and validate PFC and ECN across a RoCEv2 fabric. Plus, there'll be token streaming for vLLM replicas, your tooling will be exposed as an MCP server, and the loop will be closed with OpenTelemetry and guarded remediation. Everything's on one Linux laptop.

Key Learnings
  • Plan every change so it can be undone, and see it before it runs.
  • Hand back errors as values with std::expected, so nothing fails quietly overnight.
  • Read packets without copying them, using std::span, and let sanitizers catch your mistakes.
  • Check five hundred devices at once with coroutines, and never write a callback.
  • Check a change against the device model before you send it anywhere.
  • Roll out to a few devices first, and widen only when they behave.
  • Let your C++ drive Ansible, Suricata, and ovs-ofctl instead of rebuilding them.
  • Apply Kubernetes changes safely, then check from inside the pod that they worked.
  • Send AI requests to the least busy replica, and tune the connection for tokens.
  • Spot trouble with limits, moving averages, and a model that advises but never acts.

Table of Content
  1. C++23 for Network Automation
  2. Setting up Automation Environment
  3. Writing, Testing, and Validating Automation Scripts
  4. Device Configuration with NETCONF, YANG and gNMI
  5. Server Provisioning and Configuration Management
  6. Software-Defined Networking
  7. Practical IDS/IPS Automation
  8. Cloud Network Automation
  9. Kubernetes as AI Cluster Control Plane
  10. RDMA and GPU Fabric Automation

Target Readers

If you're a network engineer, systems programmer, or part of an infrastructure team, then this book is for you. You don't need to have any prior experience with SDN, Kubernetes, or machine learning for this book. Just some basics of coding around C++ and fundamentals of networking is sufficient.

 

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub