Back to the notes

Notes

Branch core router replacement, run as a controlled change

Replacing the only layer-3 exit a branch had. The interesting part was not the new box — it was the validation sequence and a rollback I would really execute.

Situation

The branch had exactly one layer-3 exit and it lived on a single core router: outbound routing, NAT, ACLs and VPN terminations all in one box. The box was alive but late in its product life cycle — firmware fixes were starting to require workarounds, and spare-part lead times were getting hard to estimate. Hardware like this does not usually degrade gracefully; it is fine, and then it is not.

Approach

I treated this as two different risks, because they need different evidence to close. The first is whether the new device works properly — that is a build-time verification problem. The second is nastier: what gets lost while an old design is transferred onto a new device. Those behaviours are rarely documented; they exist only as the fact that something has always worked. So I made the old running config the single requirements document for the change, and used a diff to hunt down the requirements nobody remembered.

What I actually did

  • Captured state before the window: running config, adjacency state, route table counts, interface and error counters, the NAT translation table and the session table. Without a baseline, ‘back to normal’ is not a defined state.
  • Ran a physical audit: the far end of every circuit, whether labels still matched, which spare interfaces existed, rack power and patching, and what I would do if the new device did not fit where the old one sat.
  • Built the new configuration from a template, then diffed the old config back into it line by line: routing and prefixes, static NAT mappings, ACL ordering (the order is part of the semantics), VRRP priority and pre-emption behaviour, and the single stray permit lines nobody could explain.
  • Verified the management path first: console reachable, out-of-band alive. I was about to change precisely the ACLs and routes that could lock me out.
  • Wrote the validation sequence in two layers. Control plane: adjacencies, route counts against the captured baseline, expected prefixes present. Data plane: real tests of the services that matter from inside the site, with ACL and firewall hit counters plus packet tracing used to prove traffic took the path I intended rather than some other path that happens to work.
  • Made the rollback contain an explicit decision point: if the control plane was not fully green by a stated clock time, we reverted to the old device with its saved config. Reverting was one of the planned endings, not a synonym for failure.
  • Closed out by updating the design record, the interface mapping and the runbook, and leaving the validation checklist attached to the change record.

Outcome

The change closed inside the approved window and no unplanned service interruption was reported afterwards. The number I actually cared about is less photogenic: local first-line support could tell on its own the next day whether the site was healthy, without paging me overnight. The diff earned its cost too — a few static NAT mappings and ACL entries used only by an operational process nobody had mentioned would otherwise have been discovered after go-live.

What I would do differently

I would write down who decides that it succeeded, and do it earlier. Inside a window the failure mode is rarely a wrong command; it is two people disagreeing about whether the current state counts as success with thirty minutes left. I would also rehearse the old device’s re-rack sequence on paper and actually time it — a rollback I only ‘know how to do’ is worth much less at two in the morning than one I have timed.