Book Image

Network Programming and Automation Essentials

By : Claus Töpke
Book Image

Network Programming and Automation Essentials

By: Claus Töpke

Overview of this book

Network programming and automation, unlike traditional networking, is a modern-day skill that helps in configuring, managing, and operating networks and network devices. This book will guide you with important information, helping you set up and start working with network programming and automation. With Network Programming and Automation Essentials, you’ll learn the basics of networking in brief. You’ll explore the network programming and automation ecosystem, learn about the leading programmable interfaces, and go through the protocols, tools, techniques, and technologies associated with network programming. You’ll also master network automation using Python and Go with hands-on labs and real network emulation in this comprehensive guide. By the end of this book, you’ll be well equipped to program and automate networks efficiently.
Table of Contents (16 chapters)
1
Part 1: Foundations for Network Automation
6
Part 2: Network Programming for Automation
11
Part 3: Testing, Hands-On, and Going Forward

Connecting the devices

Connecting the devices in our network lab will be done by using veth peer interfaces as was explained in Chapter 9. If we need to connect two different labs from two different hosts, we can use VXLAN, but for our exercise in this section, we are only making connections on the same host. Therefore, veth peer interfaces will do the job.

One protocol that I have included in the pre-built virtual machine image and will be very important to us is Link Layer Discovery Protocol (LLDP). LLDP is one IETF standard that came after the successful Cisco proprietary protocol called Cisco Discovery Protocol (CDP). It is used to obtain information about the other side of a layer 2 connection by sending specific Ethernet frames. We are going to use it to validate the connections between devices in our network lab.

Before we proceed with our connections, let’s check how Docker created our out-of-band (OOB) management network.

The OOB management network

Docker...