NewDanbyte 0.20.0: Known vulnerabilities, device dependencies and DiscoveryRelease notes
Blog/Guide

What a network source of truth is and how to build one

A network source of truth is the one system that defines how your network should be. This post covers what belongs in it and how to start one.

Danbyte4 min read
source of truthIPAMDCIMautomation

Ask five engineers where a given VLAN is documented and you will often get five answers: a spreadsheet, a wiki page, a device config, someone's memory, and "let me check." Outages, duplicate IPs and guesswork at 2 a.m. come from that gap between how the network runs and where it is written down.

A network source of truth closes the gap. It is the single system that holds the intended state of your network: the addresses, devices, cables and relationships that everything else should agree with.

Intended state and observed state

There are two ways to know your network:

  • Observed state is what monitoring and discovery report as running right now. It is live, but it only tells you about something after it has happened.
  • Intended state is what should be running: the design, the allocations and the plan.

A source of truth is where intended state is kept. Monitoring tells you that a link is down. The source of truth tells you what that link was supposed to be, what is on the other end and who owns it. You need both, but only intended state can drive automation.

What belongs in it

A useful source of truth covers the things that are painful to reconstruct afterwards:

  • IP address management (IPAM): prefixes, ranges, VLANs, VRFs and every individual address, with no duplicates and a clear hierarchy.
  • Data center infrastructure (DCIM): sites, racks, devices and the physical layout, so that you can look up which rack and which unit a device is in without walking to it.
  • Connectivity: cables, interfaces and circuits, with both ends of every connection recorded.
  • Ownership and context: tenants, tags, contacts and status, so that every object shows who it belongs to and whether it is live.

Danbyte models all of this in one place. The features catalog describes each area in detail.

Why a spreadsheet is not enough

Most teams start with spreadsheets, and they work for a while. A spreadsheet cannot stop two people from handing out 10.0.4.20 to different hosts. It does not know that deleting a rack should flag the devices in it. Most importantly, nothing can query it, so as soon as you want automation, every value has to be copied out of the spreadsheet by hand.

A source of truth adds three things that a spreadsheet lacks:

  1. Validation. The data model rejects impossible states, such as overlapping prefixes or an interface cabled to itself.
  2. Relationships. Objects reference each other, so a change carries through to the related objects and they do not silently go stale.
  3. An API. Machines can read and write every object, and the next section depends on that.

Automation reads from the source of truth

Once intended state is in one queryable system, your tooling no longer has to guess. Ansible and Terraform can pull inventory directly from the source of truth, and you no longer maintain a hosts file by hand. Provisioning scripts can ask for the next free address, where before a person had to read it off a sheet.

# Instead of hard-coding hosts, generate inventory from the source of truth
ansible-inventory --list -i danbyte_inventory.py

The source of truth becomes the input to everything else. Config generation, compliance checks and capacity planning all read from the same place, so they agree with each other.

How to start

You do not need to migrate everything at once. Start with a narrow scope and widen it as people come to trust the data:

  1. Model one site. Pick a single data center or office and enter its racks, devices and prefixes.
  2. Make it authoritative for one thing. IP allocations are the usual first choice, with the rule that new addresses come only from the tool.
  3. Connect one automation. Point one pipeline at the API. Data stays accurate once something real depends on it.
  4. Expand from there. Add sites and use cases as the habit forms.

Danbyte is built to be that system. It is free and open source, you self-host it on your own hardware, and every feature is included. Installing it takes an afternoon.

A source of truth is only useful if people update it. Keep it close to the work and make it the easiest place to get an answer, and people will come to rely on it the way they rely on the rest of the infrastructure.

Run Danbyte on your own server

Danbyte is free and open source, and it does IPAM and DCIM in one application. One command installs it on a new Ubuntu or Debian server.