Monday, 3 August 2026

AI Planning Strategies for SD-WAN Engineers: From a Single Edge Query to Multi-Site Policy Design

 SD-WAN engineers already live in a world of layered decisions — underlay vs. overlay, per-app policy vs. site-wide policy, one control-plane failure that can silently affect hundreds of branches at once. That's exactly the kind of environment where how an AI agent plans before it acts becomes critical, not optional.

This post walks through the same five AI planning patterns from the ACI-focused piece, this time mapped to real Cisco SD-WAN (Viptela-based) and general SD-WAN scenarios — vEdge/cEdge devices, vSmart policy, vManage templates, and application-aware routing.


Why Planning Discipline Matters More on SD-WAN Than on Traditional WAN

A misconfigured VLAN on a single branch router is a local problem. A bad centralized policy pushed from vSmart, or a template change rolled out from vManage, can affect every branch attached to that policy in minutes.

SD-WAN is centrally orchestrated by design — which is exactly why it's powerful, and exactly why an AI agent acting on it needs a visible, reviewable plan before it pushes anything control-plane-wide. The same five patterns from the ACI world map directly here.


1. Single-Step ReAct — One Question, One Answer

Quick, read-only, no multi-step reasoning required.

SD-WAN scenario: "What's the BFD session status between Branch-42 and the DC hub?"

The agent queries the device or vManage API for that BFD session state and reports it back — done in one pass.

Other single-step SD-WAN use cases:

  • Checking a specific site's control connection status to vSmart
  • Pulling current SLA class performance (loss/latency/jitter) for one tunnel
  • Looking up which transport (MPLS/Internet/LTE) a branch is currently using
  • Checking a device's software version and reboot history
  • Reporting current CPU/memory utilization on an edge router

Fast and low-risk — this is where SD-WAN teams will trust an AI agent first, the same as with ACI health checks.


2. Multi-Step ReAct — Following a Known Runbook

Repeatable SD-WAN procedures that follow a fixed sequence, reacting to each step's result before moving to the next.

SD-WAN scenario: Onboarding a new branch edge device (Zero Touch Provisioning).

  1. Confirm the device authenticates and registers with the vBond orchestrator
  2. Verify it establishes control connections to all vSmart controllers
  3. Push the correct device template (system, VPN, interface, routing)
  4. Confirm both underlay transports (e.g., MPLS and Internet) come up and form BFD sessions
  5. Validate the branch inherits the correct centralized data policy and SLA classes
  6. Confirm end-to-end reachability to the DC/hub over the preferred transport

If step 4 fails — say, the Internet transport won't form a BFD session — the agent checks NAT/firewall rules and STUN/TURN behavior on that transport before continuing, the same troubleshooting instinct you'd apply.

Other multi-step SD-WAN use cases:

  • vSmart/vManage software upgrade sequence (stage → upgrade one controller at a time → validate cluster/control-plane health before continuing)
  • Site migration from MPLS-only to dual-transport SD-WAN, step by step
  • Scheduled maintenance window pre-checks and rollback validation
  • Certificate renewal and re-establishment of control connections across all controllers

3. Plan-and-Execute — For When the Overlay Is Telling You Conflicting Things

SD-WAN issues are rarely single-cause: an app slowness complaint could be transport degradation, an application-aware routing policy misfire, an underlay MTU/fragmentation issue, or a vSmart policy conflict. Jumping straight to a fix risks masking the real problem.

SD-WAN scenario: Voice quality complaints from three branches, all pointing to the same regional hub.

The agent proposes a plan before acting:

  1. Pull SLA class performance (loss/latency/jitter) for the voice traffic class across the affected tunnels
  2. Check whether application-aware routing actually steered voice traffic onto the best-performing tunnel, or if policy is pinning it to a degraded path
  3. Compare current transport performance against baseline to rule out an ISP-side issue
  4. Check for recent centralized policy or template pushes correlating with when complaints started
  5. Verify QoS queuing/shaping is still correctly applied on the WAN interface after any recent template change
  6. Correlate the timeline across all three sites to confirm it's a shared hub/policy issue, not three unrelated local problems

Only once you review and approve that plan does the agent move into root-causing — so if it's about to check the wrong SLA class, you catch it before time is wasted.

Other Plan-and-Execute SD-WAN use cases:

  • Multi-region latency/convergence issue after a WAN policy change
  • vSmart control-plane instability or intermittent control connection flaps
  • Investigating a brownout on one transport affecting failover behavior fleet-wide
  • Diagnosing asymmetric routing after a dual-hub topology change

4. Tree of Thoughts — For Architecture and Design Decisions

Design decisions in SD-WAN rarely have one obviously-correct answer — they depend on transport availability, app requirements, and resiliency goals. Tree of Thoughts has the agent lay out multiple candidate designs and weigh trade-offs instead of committing to the first idea.

SD-WAN scenario: A customer wants to redesign branch connectivity to reduce reliance on MPLS.

The agent compares branches of the decision tree:

OptionStrengthTrade-off
Dual-Internet, no MPLSLowest cost, fastest to deployNo guaranteed-SLA transport; relies entirely on app-aware routing and forward error correction to mask ISP issues
Hybrid (single MPLS + single Internet)Keeps a guaranteed-SLA path for critical appsDoesn't fully solve the cost/dependency problem; still one MPLS circuit as a dependency
Dual-Internet with regional SD-WAN hubs (Cloud onramp)Reduces backhaul distance, better cloud app performanceRequires cloud gateway design and more complex routing policy
Full mesh with Direct Cloud Access (DIA)Best performance for SaaS/cloud apps, minimal hub dependencyHigher security policy overhead — every branch now needs local internet breakout security

The agent weighs these against the customer's actual requirements — how latency-sensitive their critical apps are, whether they need a guaranteed SLA, how much cloud/SaaS traffic they run — and recommends the best fit.

Other Tree of Thoughts SD-WAN use cases:

  • Choosing centralized (hub-and-spoke) vs. full-mesh vs. partial-mesh topology
  • Deciding transport-side vs. tunnel-side application-aware routing policy design
  • Evaluating single-vSmart vs. dual-vSmart-cluster resiliency models
  • Weighing security service insertion options: local branch firewall vs. cloud-delivered SASE vs. hub-based inspection

5. Self-Reflection — Catching Mistakes Before They Hit Every Branch

This is the pattern that matters most for anything an agent pushes centrally, because a mistake in a centralized policy doesn't stay local — it propagates to every site attached to it.

SD-WAN scenario: An agent drafts a new centralized data policy to prioritize a new SaaS application across all branches.

Before presenting the policy, it reflects:

  • Does the match criteria (App/App-list, DSCP, prefix) actually match only the intended traffic, or is it broad enough to accidentally catch other flows?
  • Does the SLA class assignment make sense for this app, or did it get assigned a stricter class than necessary, starving other traffic?
  • Will this policy override an existing site-list-specific policy unintentionally?
  • Is the policy scoped to the correct site-list/VPN, or could it apply fleet-wide when only a subset of branches needs it?
  • Does this match the customer's existing policy-numbering and naming convention, to avoid confusion during future audits?

Catching an over-broad match statement — one that would have silently reprioritized unrelated traffic across the whole fleet — before it's activated is exactly what Self-Reflection is for.

Other Self-Reflection SD-WAN use cases:

  • Reviewing an auto-generated device template before it's attached and pushed to production branches
  • Validating a drafted QoS/queuing policy against the customer's bandwidth allocation standard
  • Auditing a generated SLA compliance report against actual tunnel performance data before sending it to a customer
  • Second-pass review of an AI-suggested software upgrade plan for skipped compatibility or downtime-window checks

Which Strategy Fits Your SD-WAN Task?

SD-WAN ScenarioRecommended Strategy
Checking a tunnel's BFD state or SLA performanceSingle-Step ReAct
Onboarding a branch via ZTP or running a known upgrade runbookMulti-Step ReAct
Troubleshooting a multi-site voice/app performance complaintPlan-and-Execute
Choosing hub-and-spoke vs. full-mesh vs. Cloud onramp designTree of Thoughts
Drafting a centralized policy or template for reviewSelf-Reflection

Final Thoughts

The patterns don't change between ACI and SD-WAN — only the blast radius and the objects being reasoned about do. Single-Step ReAct answers a quick status question. Multi-Step ReAct runs your onboarding or upgrade runbook. Plan-and-Execute is how you investigate a fleet-wide performance complaint without guessing. Tree of Thoughts is the topology whiteboard session before a redesign gets signed off. Self-Reflection is the second pair of eyes before a centralized policy touches every branch at once.

As AI agents get closer to actually pushing policy through vManage and vSmart, the discipline behind how they plan matters as much as what they execute. An agent that shows its plan — and reflects on its own output — is one you can trust near a live overlay.


FAQ

Q: Which planning strategy should an AI agent use before pushing a centralized SD-WAN policy? A: Self-Reflection combined with Plan-and-Execute — the agent should draft the policy, check it against a scoping/match-criteria checklist, and present it for approval before anything is activated fleet-wide.

Q: Is Plan-and-Execute overkill for checking one branch's tunnel status? A: Yes. A single tunnel or BFD status check only needs Single-Step ReAct. Plan-and-Execute pays off on multi-cause, multi-site problems — not routine status lookups.

Q: How is this different from the ACI version of this framework? A: The planning patterns are identical — the difference is the blast radius. On ACI, a bad change can spread across a fabric or Multi-Site domain. On SD-WAN, a bad centralized policy or template can spread across every branch attached to it. Either way, visible planning and self-review are what make an agent safe to use near production.


Related Reading on Networklearner:


Need help with SD-WAN, Cisco ACI, Nexus, data center networking, or network automation?

I am a CCIE Data Center engineer with 18+ years of enterprise networking experience, working hands-on with production SD-WAN and ACI environments.

Contact me for consulting, troubleshooting, design reviews, and project support: rockingoa@gmail.com

AI Planning Strategies for Cisco ACI Engineers: From a Single APIC Query to Multi-Site Design Decisions

 If you run ACI in production, you already know the job isn't really "networking" — it's decision-making under a policy model. Every ticket forces the same question: is this a quick lookup, a known runbook, an investigation, a design choice, or something that needs a second pass before it goes live?

AI agents face the exact same fork in the road. The strategy an agent picks — how much it plans before it acts — determines whether it's useful or dangerous on your fabric. This post walks through the five planning patterns showing up in agentic AI tooling today, each mapped to a real ACI scenario instead of a generic networking example.


Why This Matters More on ACI Than on Traditional Networks

On a traditional CLI-driven network, a bad AI action is usually contained to one box. On ACI, everything is a shared, declarative policy model — an EPG, a contract, or a Bridge Domain change can ripple across every leaf in the fabric in seconds, and a Multi-Site change can ripple across data centers.

That's exactly why how an AI agent plans matters so much here. A tool that fires configuration pushes without a reviewable plan is a liability on APIC. A tool that reasons, drafts a plan, and lets you approve it before touching the MIT (Management Information Tree) is something you can actually trust near production.


1. Single-Step ReAct — One Question, One Answer

This is the simplest pattern: gather what's needed, answer, done. No multi-turn planning required.

ACI scenario: "What's the health score of leaf switch Leaf-103?"

The agent queries the APIC health score API for that node and returns the number — no further steps needed.

Other single-step ACI use cases:

  • Pulling the fault count on a specific EPG
  • Checking whether a contract is currently applied between two EPGs
  • Looking up which leaf a given endpoint is learned on
  • Reporting APIC cluster health (avread state across controllers)
  • Checking the current firmware version on a switch node

Fast, low-risk, read-only. This is where most engineers will first trust an AI agent — because there's nothing to approve, only something to report.


2. Multi-Step ReAct — Following a Known Runbook

Some ACI tasks are a fixed, well-rehearsed sequence. The agent doesn't need to design anything — it needs to execute the checklist correctly, step by step, reacting to what each step returns.

ACI scenario: Onboarding a new leaf switch into the fabric.

  1. Confirm the leaf is discovered and registered in APIC
  2. Assign the node ID and confirm it joins the fabric membership policy
  3. Verify the leaf inherits the correct Pod policy group and interface policies
  4. Confirm VPC pairing (if applicable) comes up cleanly
  5. Validate the leaf's health score stabilizes above threshold
  6. Push a test EPG/BD binding and confirm endpoint learning works

If step 4 fails — say, the VPC doesn't form — the agent reacts, checks the peer-link and policy-group config before moving to step 5, the same way you would.

Other multi-step ACI use cases:

  • APIC cluster firmware upgrade sequence (validate → stage → upgrade controllers one at a time → validate cluster health before proceeding)
  • Tenant onboarding (create Tenant → VRF → Bridge Domains → EPGs → Contracts, in order)
  • Scheduled maintenance window pre-checks and post-checks
  • Rolling switch firmware upgrades across a pod without dropping VPCs

3. Plan-and-Execute — For When the Fabric Is Telling You Conflicting Things

This is the pattern that matters most for ACI troubleshooting, because ACI failures are rarely single-cause. A contract issue can look like an endpoint-learning issue. A Bridge Domain flooding setting can look like an application performance problem. Jumping straight into action wastes time and, worse, risks a config change based on a wrong guess.

Plan-and-Execute forces the agent to draft the full investigation before touching anything — and critically, you get to review or edit that plan first.

ACI scenario: Two EPGs that used to communicate fine are now silently dropping traffic after a contract update.

Rather than guessing, the agent proposes a plan like:

  1. Diff the contract and subject/filter changes against the last known-good version
  2. Check for drop_pkts counters on ingress/egress leaf interfaces for the affected EPGs
  3. Confirm the contract scope (VRF vs Tenant vs Global) still matches the endpoints' actual VRF placement
  4. Check zoning-rule programming on the affected leaves (show zoning-rule equivalent) to confirm the contract actually rendered in hardware
  5. Verify no overlapping deny contract or vzAny rule is taking precedence
  6. Correlate fault codes on the EPG and contract objects in APIC

Only after you approve (or the agent completes) that plan does it move into fault correlation and root-causing — and because the plan is visible, you can spot immediately if it's about to check the wrong VRF.

Other Plan-and-Execute ACI use cases:

  • Multi-Site latency or convergence issue reported across three data centers
  • APIC cluster split-brain or quorum-loss investigation
  • Migrating a legacy VLAN-based network into ACI EPGs without an outage
  • Investigating intermittent BD flooding storms across a Pod

4. Tree of Thoughts — For Architecture and Design Decisions

Good ACI architects don't commit to a design on the first idea — they weigh options against the actual requirements. Tree of Thoughts gives an AI agent that same discipline: generate multiple candidate approaches, evaluate trade-offs, then recommend.

ACI scenario: A customer needs a second data center for DR and asks whether to extend the existing ACI fabric or stand up something new.

The agent lays out and compares several branches:

OptionStrengthTrade-off
Stretched Fabric (single APIC cluster, no Multi-Pod)Simplest operationallyFragile — single failure domain, not resilient to WAN issues between sites
ACI Multi-PodSingle APIC domain, fast failover, unified policyRequires low-latency IPN between sites, less DC-to-DC fault isolation
ACI Multi-SiteTrue fault-domain isolation, independent APIC clusters per site, policy orchestrated centrally via Nexus Dashboard OrchestratorMore complex to operate, higher initial design and cost overhead
Standalone fabric with VXLAN EVPN + external interconnectMaximum isolation, vendor-neutral if neededLoses ACI's centralized policy model between sites; more manual policy reconciliation

The agent weighs these against stated requirements — RTT between sites, whether independent APIC failure domains are a hard requirement, existing IPN bandwidth — and recommends the best fit, the same way you'd whiteboard it with a customer.

Other Tree of Thoughts ACI use cases:

  • Choosing between contract-based (whitelist) vs. vzAny-based (preferred group) segmentation for a new tenant
  • Deciding EPG-per-VLAN vs. EPG-per-application microsegmentation strategy
  • L3Out design: shared L3Out in common Tenant vs. per-tenant L3Out
  • Evaluating Remote Leaf vs. Cloud ACI vs. Multi-Site for a hybrid-cloud expansion

5. Self-Reflection — Catching Mistakes Before They Hit the Fabric

This is arguably the most important pattern for anything that writes to APIC. Self-Reflection means the agent reviews its own output — a proposed contract, a migration plan, a config template — against a checklist before handing it to you.

ACI scenario: An agent drafts a new contract and filter set to allow a application team's new microservice to talk to a database EPG.

Before presenting the contract, it reflects:

  • Does this filter scope traffic to only the required ports, or is it accidentally permit-any?
  • Is the contract scope set correctly (this VRF only, not Global, unless cross-VRF was actually intended)?
  • Does this contract accidentally shadow or conflict with an existing vzAny rule?
  • Does the direction (consumer/provider) match the actual traffic flow, or did roles get reversed?
  • Does this change match the customer's segmentation standard (e.g., default-deny between tiers)?

Catching a reversed consumer/provider relationship — a mistake every ACI engineer has made at least once — before it goes to APIC is exactly the kind of check Self-Reflection is built for.

Other Self-Reflection ACI use cases:

  • Reviewing an auto-generated Bridge Domain configuration for correct flooding/ARP settings before applying
  • Validating a drafted Multi-Site schema template against the target sites' existing object naming conventions
  • Auditing a generated compliance report against actual fault/audit logs before it's sent to a customer
  • Second-pass review of an AI-suggested firmware upgrade plan for skipped compatibility checks

Which Strategy Fits Your ACI Task?

ACI ScenarioRecommended Strategy
Checking a leaf's health score or fault countSingle-Step ReAct
Onboarding a switch or running a known upgrade runbookMulti-Step ReAct
Troubleshooting a Multi-Site latency or contract-drop issuePlan-and-Execute
Choosing Multi-Pod vs. Multi-Site vs. Remote LeafTree of Thoughts
Drafting a contract, schema, or migration config for reviewSelf-Reflection

Final Thoughts

None of these patterns replace ACI expertise — they formalize it. Single-Step ReAct is how you'd answer a quick Slack question. Multi-Step ReAct is your runbook discipline. Plan-and-Execute is how a senior engineer investigates a messy, multi-cause outage instead of guessing. Tree of Thoughts is the whiteboard session before a design gets signed off. Self-Reflection is the second pair of eyes on a change before it hits production.

As AI agents get closer to actually touching APIC and pushing policy, the strategy behind how they plan matters as much as what they execute. An agent that can show you its plan — and reflect on its own output — is one you can actually let near a production fabric.


FAQ

Q: Which planning strategy should an AI agent use before pushing a config change to APIC? A: Self-Reflection at minimum, and ideally combined with Plan-and-Execute — the agent should draft the change, reflect on it against a checklist (scope, contract direction, filter correctness), and only then present it for approval before anything touches the fabric.

Q: Is Plan-and-Execute overkill for a simple ACI health check? A: Yes. A single health-score lookup only needs Single-Step ReAct. Plan-and-Execute earns its overhead on multi-cause, cross-domain problems like a Multi-Site outage — not routine lookups.

Q: Can Tree of Thoughts be used for troubleshooting, not just design? A: It can, when there are genuinely multiple plausible root causes with different fixes (for example, "is this a contract issue, a BD flooding issue, or an MTU mismatch on the L3Out?") — but for most fault-finding, Plan-and-Execute's linear investigation plan is the better fit.


Related Reading on Networklearner:


Need help with Cisco ACI, Nexus, data center networking, or network automation?

I am a CCIE Data Center engineer with 18+ years of enterprise networking experience, working hands-on with production ACI fabrics.

Contact me for consulting, troubleshooting, design reviews, and project support: rockingoa@gmail.com

AI Planning Strategies Explained for Network Engineers: From ReAct to Tree of Thoughts

 Artificial Intelligence is rapidly becoming a key part of modern network operations. Whether you are managing a Cisco ACI fabric, troubleshooting Nexus switches, automating configuration changes, or investigating performance issues across multiple sites, understanding how AI agents think and execute tasks can help you work more efficiently.

In this article, we will explore some popular AI planning strategies and how they relate to real-world networking scenarios. These concepts are becoming increasingly important as AI-powered network automation tools continue to evolve.


Why AI Planning Matters in Networking

Network engineers often deal with complex tasks that require investigation, decision-making, and execution across multiple systems.

Consider the following situations:

  • Investigating latency between data centers
  • Validating a network migration plan
  • Automating configuration deployment
  • Troubleshooting application connectivity issues
  • Reviewing security policy changes

A simple AI response is often not enough. The AI needs a structured approach to analyze, plan, execute, and validate actions.

This is where AI planning architectures come into play.


Single-Step ReAct: Best for Simple Questions

Single-Step ReAct is designed for straightforward tasks that require a single action or response.

Example

Question: What is the CPU utilization on Router R1?

The AI simply gathers the required information and returns the answer.

Networking Use Cases

  • Checking interface status
  • Displaying CPU utilization
  • Viewing BGP neighbor state
  • Finding VLAN information
  • Retrieving device inventory

For routine operational checks, Single-Step ReAct provides quick and efficient results.


Multi-Step ReAct: Structured Task Execution

Some networking tasks involve multiple actions performed in a predefined sequence.

Multi-Step ReAct breaks the task into several actions and executes them one after another.

Example

A network engineer needs to:

  1. Restart a network service
  2. Verify successful recovery
  3. Collect logs
  4. Document the change

The AI follows each step until the complete workflow is finished.

Networking Use Cases

  • Change validation procedures
  • Device onboarding workflows
  • Backup and restore operations
  • Configuration compliance checks
  • Regular maintenance activities

This approach is particularly useful when procedures are well-defined and repeatable.


Plan-and-Execute: Ideal for Complex Troubleshooting

One of the most powerful AI architectures is the Plan-and-Execute model.

Instead of jumping directly into action, the AI first creates a detailed execution plan.

Only after the plan is reviewed and approved does it begin execution.

Benefits of Plan-and-Execute

BenefitDescription
VisibilityReview the complete plan before execution
ControlPause or modify actions when needed
ReusabilitySave plans for future use
Easier TroubleshootingQuickly identify failed steps

Networking Example

Imagine users across three global regions report application slowness.

Rather than randomly checking devices, the AI may create a plan such as:

  1. Validate WAN connectivity
  2. Review routing changes
  3. Analyze interface errors
  4. Check data center fabric health
  5. Verify application path latency
  6. Correlate logs and events

This approach reduces wasted effort and improves troubleshooting efficiency.


Tree of Thoughts: Exploring Multiple Solutions

Experienced network engineers rarely stop at the first possible solution.

The Tree of Thoughts methodology follows the same principle.

Instead of selecting a single path immediately, the AI evaluates several possible approaches before choosing the best one.

Example

A company wants to design a new data center network.

Possible options include:

  • Cisco ACI
  • EVPN-VXLAN
  • Traditional Three-Tier Architecture
  • Spine-Leaf Architecture

The AI analyzes each approach, compares advantages and disadvantages, and recommends the most suitable design.

Networking Use Cases

  • Data center design decisions
  • Cloud migration planning
  • Security architecture reviews
  • SD-WAN deployment strategies
  • Technology evaluation exercises

This method improves decision quality by considering multiple possibilities.


Self-Reflection: Continuous Improvement

Self-Reflection enables AI to review and evaluate its own progress.

After completing a task, the AI asks questions such as:

  • Did the action solve the issue?
  • Is there enough evidence?
  • Are additional checks required?
  • Can the result be improved?

Networking Example

An AI agent generates a firewall security policy.

Before presenting the final output, it reviews the policy for:

  • Missing rules
  • Security gaps
  • Business requirements
  • Compliance standards

The result is often more accurate and reliable.

Networking Use Cases

  • Security policy generation
  • Compliance reporting
  • Network design reviews
  • Migration planning
  • Automation script validation

Which AI Strategy Should You Use?

ScenarioRecommended Approach
Checking router CPU usageSingle-Step ReAct
Running operational workflowMulti-Step ReAct
Investigating network-wide performance issuesPlan-and-Execute
Designing a new network architectureTree of Thoughts
Creating security policies or reportsSelf-Reflection

Selecting the appropriate strategy improves efficiency, reduces errors, and delivers more reliable results.


Final Thoughts

AI is becoming an essential tool for network engineers. Understanding how AI agents plan, reason, and execute tasks can help organizations build smarter automation workflows and improve operational efficiency.

Whether you are managing enterprise campuses, data centers, cloud networks, Cisco ACI fabrics, or network automation platforms, these AI planning strategies provide a framework for solving problems more effectively.

The future of networking will not just involve automation. It will involve intelligent systems capable of planning, reasoning, and continuously improving their decisions.

Sunday, 2 August 2026

AI Agent Reasoning Loop (ReAct) Explained for Network Engineers

 In the last post we covered how an agent perceives — how webhooks feed it events and how the context window works like a limited routing table. Perception only gets an agent halfway there, though. The real question is what it does with that information once it has it. That's where the ReAct pattern comes in, and if you've ever worked a ticket the "right" way instead of just guessing, you already understand it intuitively.

The three-step loop you already use every day

Picture a ticket landing on your desk: "Users are reporting slow network performance." A junior engineer might restart something and hope for the best. An experienced one runs a mental loop instead:

  1. Think — "Users report slow performance. Before I touch anything, let me check the router status."
  2. Act — Actually run show interface, check CPU, pull the logs.
  3. Observe — "Router R12 CPU usage is 97%." New information is now on the table.
  4. Think again — "That CPU number explains the symptom. What's driving CPU that high — a routing loop, a process leak, an attack?"

That repeating cycle — reason, act, observe, reason again — is exactly what the ReAct pattern (Reason + Act) gives an AI agent. It isn't a coincidence that it maps so cleanly onto troubleshooting methodology; ReAct was built to give language models the same discipline a good engineer already has: don't act blindly, and don't just theorize without checking your work.

Here's what that loop looks like laid out:




Why this beats the two approaches that came before it

Before ReAct, agent-style systems generally fell into one of two buckets, and if you've dealt with older automation tooling, you've probably run into both.

Reasoning-only systems could analyze a problem and tell you what should be done — but they had no hands. Think of a chatbot that can explain that "high CPU is usually caused by a routing process or a control-plane flood" but can't actually go check your router. Useful for a second opinion, useless for getting the job done.

Acting-only systems could execute, but with zero judgment in the loop. This is your classic runbook script or blind automation: it fires a fixed sequence of commands whether or not the situation actually calls for them. It's fast, but it can't adapt when the ticket doesn't match the script.

ReAct fuses both halves. Reasoning decides which action makes sense given the current situation; the action then produces new, real information; and that new information reshapes the next round of reasoning. Each loop iteration is smarter than the last because it's grounded in something that actually happened, not just a guess. That grounding is the entire point — it's the difference between a script that blindly restarts a service and an agent that checks CPU first, correlates it with a config change timestamp, and only then decides what to do.

Chain-of-Thought: the reasoning made visible

You'll often see ReAct mentioned alongside Chain-of-Thought (CoT) prompting, and it's worth knowing the difference because they solve related but distinct problems.

Without CoT, a model tends to jump straight to an answer — the AI equivalent of an engineer saying "just reboot it" with no explanation. With CoT, the model is nudged to lay out its reasoning step by step before acting, the same way a good engineer talks through their logic on a bridge call instead of just typing commands silently: "CPU is high, that could be a process or a flood, let me check show processes cpu before I decide anything."

The payoff is the same one you'd expect from any engineer who explains their thinking out loud: it's easier to trust, easier to audit, and a lot easier to catch a bad assumption before it turns into a bad action.

Reading agent traces: your new show-tech

If you're going to work with agents day to day, there's one practical skill worth building early: reading a trace.

A trace is simply a structured log of everything the agent did — every Think step, every Act step, every Observe step, nested in order. Tools like LangSmith display these as a tree: a parent run (the overall task) containing child runs, where each child is either an LLM call (reasoning happened here) or a tool call (an action happened here).

If that sounds familiar, it should — it's not far from reading a show tech-support bundle or unpacking a nested syslog trace to figure out what a device actually did and in what order. The skill transfers almost directly: find where the reasoning went wrong, or find where the tool call returned something unexpected, and you've found your root cause.

One caution worth keeping in mind

Reasoning traces make an agent more explainable, but explainable isn't the same as infallible. A model can lay out confident, well-structured reasoning and still act on a flawed assumption — the AI version of an engineer who sounds certain but is troubleshooting the wrong VLAN. Treat agent reasoning the way you'd treat a junior engineer's diagnosis: useful, often correct, but worth a second look before it touches anything production-critical.

Quick recap

  • ReAct = Think → Act → Observe, repeated until the agent has a final answer — the same loop experienced engineers already run mentally when troubleshooting.
  • It replaces two older, weaker patterns: reasoning-only systems that can't act, and acting-only systems that can't think.
  • Chain-of-Thought prompting is what makes the "Think" step explicit and auditable, rather than a hidden jump to a conclusion.
  • Traces are your debugging tool for agent behavior — read them the way you'd read a nested log bundle.
  • Confident reasoning is not the same as correct reasoning — verify before letting an agent touch anything critical.

FAQ

Q1 - Which statement best explains what is happening in this agent interaction?
  • The agent is using Chain-of-Thought prompting to generate random responses and the tool output appears in the Action step.
  • The agent is using the ReAct pattern (Reason → Act → Observe), Chain-of-Thought prompting to explain its reasoning, and the tool’s output appears in the Observation step.
  • The agent is following a rule-based system and the Observation step contains the system prompt instructions.
  • The agent is using ReAct but Chain-of-Thought prevents the agent from calling tools.

Ans - The agent is using the ReAct pattern (Reason → Act → Observe), Chain-of-Thought prompting to explain its reasoning, and the tool’s output appears in the Observation step.


This post continues the series on how AI agents work. Catch up on the earlier piece on how agents gather information before they ever start reasoning:

Related Reading on Networklearner:

Need help with Cisco ACI, Nexus, data center networking, or network automation?


I am a CCIE Data Center engineer with 18+ years of enterprise networking experience.

Contact me for consulting, troubleshooting, design reviews, and project support.


AI Agent Perception and Context Windows Explained for Network Engineers

 If you've already read up on what an LLM is or how temperature and tokens affect an AI agent's behavior, there's a step that comes before all of that reasoning even starts: perception. Before an agent can decide anything, it has to gather information and make sense of it — the same way a monitoring platform has to actually receive and parse an SNMP trap before it can trigger an alert.

Think about troubleshooting a flapping interface. You don't just stare at the switch and guess — you pull show interface, check the logs, maybe run a packet capture. Only once you've gathered that data do you start reasoning about root cause. AI agents work the same way. Perception is stage one of what's often called the Perceive → Reason → Act loop, and if that first stage is weak or incomplete, everything downstream — the reasoning, the recommendation, the action — suffers. Garbage in, garbage out is as true for an LLM as it is for a flow-based traffic report built on bad sampling.

Webhooks: The Syslog Server of the AI World

If you've ever configured a device to forward syslog or SNMP traps to a collector, you already understand webhooks conceptually — they're the same pattern, just for applications instead of network gear.

A webhook is how an external system pushes an event to an AI agent in real time, instead of the agent having to poll for it. The flow typically looks like this:

  1. Something happens. A ticket gets opened in a helpdesk tool, or a new record lands in a CRM — conceptually no different from a link going down and generating a trap.
  2. The event gets delivered. The originating system fires an HTTP POST containing a JSON payload to a URL the agent is listening on. This is your "trap destination," just over HTTP instead of UDP/162.
  3. The agent processes it. It parses the payload, figures out what matters, and reasons about what to do — summarize a ticket, gauge urgency, draft a reply.
  4. The agent acts. Update a record, send a notification, post to a Slack or Webex channel — similar to a monitoring platform auto-remediating a known issue or paging on-call.

The mental model translates cleanly: webhook = event notification into the agent, the same job your syslog/trap receiver does for your network.

The Context Window: Think of It as a Routing Table With a Hard Limit on Prefixes

This is the part worth slowing down on, because it explains a lot of "why did the AI just say something so off-base" moments.

The context window is everything the agent can "see" in a single pass — its entire working memory for that request. It's typically built from four pieces, assembled into one combined prompt:

  • System prompt — the agent's role and boundaries, comparable to a device's running-config defining what it's allowed to do
  • Tool definitions — what actions the agent can actually take, like the command set available in a given privilege level
  • Conversation history — a running log of what's already been said and done, similar to a session's command history
  • Current input — the immediate request the agent has to respond to right now

Here's the catch: this window is finite. A router's TCAM can only hold so many prefixes before something has to be summarized (aggregated) or dropped. An LLM's context window works the same way — it has a hard token ceiling, and once that ceiling is hit, something has to give:

StrategyNetworking Analogy
Truncation — oldest info gets droppedAging out the oldest entries in a MAC address table
Summarization — history gets compressedRoute summarization/aggregation to save table space
Retrieval (RAG) — only pull what's relevant, on demandOn-demand route lookup instead of holding every path in memory

And just like TCAM size doesn't automatically make a design better, a bigger context window isn't automatically the right call either. Larger windows cost more, respond slower, and models tend to pay less attention to details buried in the middle of a long context — a phenomenon researchers call "lost in the middle." Smaller windows force discipline: more frequent summarization, more deliberate retrieval, cleaner architecture. Sound familiar? It's the same trade-off as deciding between a flat Layer 2 domain and a properly segmented, aggregated Layer 3 design — more "room" isn't inherently better if it isn't managed well.

Not Just Text Anymore

Just as your monitoring stack pulls in more than plain-text logs — interface counters, flow records, topology diagrams — modern AI agents aren't limited to text either. Multimodal perception means an agent can take in images, code, and structured data (JSON, XML) alongside plain text, which matters if you're feeding it a topology diagram, a config file, or an API response instead of a chat message.

Worth noting for anyone budgeting token usage: not all input is equally "expensive." Structured data like JSON/XML is notoriously token-hungry compared to plain prose, and code is denser than casual text. A large API response and a lengthy document can burn through a similar token budget even though one "reads" much longer than the other — the same way a small config with heavy ACL entries can outweigh a much longer, simpler one in terms of what it costs to process.

Why Context Quality Is the Real Lever

Here's the one-line summary that matters most: the quality of what goes into the context window directly determines the quality of the agent's reasoning. A monitoring system fed incomplete telemetry gives you an incomplete picture of the network, no matter how good the analysis engine behind it is. An AI agent working from a messy, disorganized, or overstuffed context will reason just as poorly — confidently, even, which is the more dangerous failure mode.

FAQ

Q- Which statement accurately describes an agent's context window capacity?

  • Context windows retain full conversation history across multiple sessions.
  • Context windows expand automatically as conversations grow longer.
  • Context windows are limited by a maximum token count defined by the model.
  • Context windows increase in size when tools are removed from the agent's configuration.

Ans- Context windows are limited by a maximum token count defined by the model.

Correct! Every model has a finite context window defined by a maximum token count, and once this limit is reached, the agent must manage its memory through strategies like summarization or truncation. Context windows do not expand dynamically as conversations grow, nor do they persist across multiple sessions. While removing tool definitions frees up tokens within the window, the overall maximum size remains unchanged as it is a fixed property of the model.

Quick Recap

  • Perception is stage one — before an agent reasons or acts, it has to gather and structure information, just like you gather data before diagnosing a network issue.
  • Webhooks push real-time events into an agent, functioning like a syslog/trap receiver for applications instead of network hardware.
  • The context window is finite working memory, built from system prompt, tools, history, and current input — manage it like you'd manage a limited routing/MAC table, via truncation, summarization, or retrieval.
  • Bigger isn't always better — larger context windows add cost, latency, and the "lost in the middle" risk of buried details getting ignored.
  • Multimodal perception extends agents beyond text into images, code, and structured data — but structured formats consume tokens fast.
  • Context quality drives output quality — this is the one principle worth remembering above all the rest.


If you found this useful, you'll probably want the companion piece that covers what happens after perception — how the LLM actually reasons, what temperature and tokens do, and how this maps to real NetOps use cases:

Related Reading on Networklearner:


Need help with Cisco ACI, Nexus, data center networking, or network automation?
I am a CCIE Data Center engineer with 18+ years of enterprise networking experience.
Contact me for consulting, troubleshooting, design reviews, and project support.