Showing posts with label ACI Troubleshooting. Show all posts
Showing posts with label ACI Troubleshooting. Show all posts

Sunday, 9 August 2026

The Agent Loop in Cisco ACI: How AI Agents Can Troubleshoot, Automate and Safely Operate Networks

 Artificial intelligence is changing the way network engineers approach monitoring, troubleshooting, and automation.

Traditionally, a network engineer might receive an alert, log in to Cisco APIC, check faults, inspect endpoint information, verify contracts or routing, perform troubleshooting commands, and then decide what action should be taken.

Now imagine an AI agent that can perform many of these activities automatically.

Instead of simply answering:

"What is wrong with my ACI fabric?"

an AI agent could investigate the problem, collect information, analyze the results, decide what to do next, and continue until the problem is resolved—or until it determines that a human engineer needs to take over.

This is where the concept of an Agent Loop becomes important.

The basic idea is simple:

Observe → Think → Act → Evaluate → Continue or Stop

For network engineers, this concept is particularly interesting because Cisco ACI already provides APIs, telemetry, faults, endpoint information, fabric health data, and policy objects that an AI agent could potentially use as tools.

Let's understand the concept using a Cisco ACI troubleshooting example.


1. What Is an Agent Loop?

An Agent Loop is the repeated process through which an AI agent works toward a specific goal.

A simplified version looks like this:

Goal

↓

Understand the situation

↓

Take an action

↓

Observe the result

↓

Reflect on the result

↓

Decide whether to continue

↓

Repeat or terminate

This is different from a traditional chatbot.

A chatbot generally provides an answer based on the information available to it.

An agent is designed to work toward an objective by taking multiple steps.

Simple networking example

Suppose an application team reports:

"The application server cannot communicate with the database server."

A traditional troubleshooting process might involve a network engineer checking:

  • Endpoint learning
  • Bridge Domain
  • EPG membership
  • Contracts
  • Routing
  • L3Out
  • Firewall path
  • APIC faults
  • Interface status

An AI agent could potentially perform these checks sequentially.

For example:

Agent: Check whether the source endpoint is learned.

Result: Endpoint found.

Agent: Check destination endpoint.

Result: Destination endpoint found.

Agent: Check contract between the EPGs.

Result: No applicable contract.

Agent: This could explain the connectivity problem.

Decision: Recommend or request approval for a contract change.

This repeated process is the essence of an agent loop.


2. The Basic ReAct Model

A commonly used way of thinking about agent behavior is:

Think → Act → Observe

The agent first determines what it needs to do, performs an action using an available tool, and then observes the result.

For example:

Think

"I need to determine whether the destination endpoint is actually present in the ACI fabric."

Act

Query APIC for the endpoint information.

Observe

"The endpoint is not currently learned."

The agent now has new information.

It can decide what to investigate next.

For example:

"If the endpoint isn't learned, I should check the connected leaf interface and endpoint attachment information."

This is much closer to how an experienced network engineer troubleshoots a problem.


3. The Complete Agent Loop Adds Reflection

The basic Think → Act → Observe process is not enough for a reliable autonomous system.

After performing an action, the agent needs to evaluate the result.

This is the Reflection step.

The agent essentially asks:

  • Did my action succeed?
  • Did I get useful information?
  • Am I closer to the objective?
  • Should I investigate another area?
  • Should I stop?

The source material identifies reflection and termination as important additions to the basic agent loop.

For network automation, this is extremely useful.

Imagine an AI agent checking why a Cisco ACI endpoint cannot communicate.

It might perform:

Step 1: Check endpoint learning.

Result: Endpoint learned.

Reflection: Endpoint learning is not the problem.

Step 2: Check EPG membership.

Result: Correct EPG.

Reflection: EPG assignment appears correct.

Step 3: Check contract.

Result: Required contract is missing.

Reflection: This is a possible policy issue.

Now the agent has narrowed down the problem.

This is much more useful than blindly running a fixed list of commands.


4. Agent Loop Example: Troubleshooting Cisco ACI

Let's make this more realistic.

Imagine the following environment:

Web EPG → Application EPG → Database EPG

Users report that the application cannot reach the database.

An AI network agent receives the objective:

"Investigate database connectivity failure."

The agent could follow a process such as:

Step 1 – Check Fabric Health

The agent checks whether the ACI fabric has major faults.

Result: Fabric health is normal.

The agent continues.

Step 2 – Check Source Endpoint

The agent checks whether the application server is learned.

Result: Endpoint is learned on Leaf-101.

Continue.

Step 3 – Check Destination Endpoint

The agent checks whether the database endpoint is learned.

Result: Database endpoint is learned on Leaf-102.

Continue.

Step 4 – Check EPG Membership

The agent verifies that both endpoints belong to the expected EPGs.

Result: Correct.

Continue.

Step 5 – Check Contract

The agent checks whether the required communication is permitted.

Result: Required contract is missing.

The agent now has a strong candidate explanation.

But should it automatically create or modify the contract?

Not necessarily.

This is where another important concept appears.


5. Human-in-the-Loop: The Network Engineer Still Matters

One of the most important concepts in autonomous network operations is Human-in-the-Loop (HITL).

The idea is straightforward:

The AI can investigate, but a human may need to approve important actions.

This is especially important in production networks.

The source material describes HITL as an escape mechanism when an agent is uncertain or when an action has significant consequences.

Consider our ACI example.

The agent concludes:

"The application-to-database communication appears to be blocked because the required contract is missing."

It could then propose:

Recommended action: Create or modify the required contract.

Instead of immediately changing production policy, the agent pauses.

HITL checkpoint

AI Agent:

"I identified a possible policy issue. A contract allowing the required application-to-database communication is missing.

Do you want me to proceed?"

The engineer can:

Approve → Agent performs the approved action.

Reject → Agent stops.

Modify → Engineer changes the proposed action.

This approach combines automation with engineering judgment.


6. Why HITL Is Important in Cisco ACI

ACI is policy-driven.

A single policy change can potentially affect many endpoints or applications.

Therefore, an autonomous agent should be particularly careful before performing actions such as:

  • Modifying contracts
  • Changing EPG configuration
  • Changing Bridge Domain settings
  • Modifying L3Out configuration
  • Changing routing policy
  • Moving endpoints
  • Changing interface policies
  • Applying production configuration

The source material specifically identifies production configuration changes, sensitive operations, uncertainty, and organizational approval policies as situations where human involvement may be required.

A useful design principle is:

Let the AI investigate aggressively, but execute production changes cautiously.


7. Termination Conditions: When Should the Agent Stop?

An agent loop needs a clear stopping point.

Otherwise, the agent could continue running unnecessarily.

For example:

Check APIC → timeout

Retry APIC → timeout

Retry APIC → timeout

Retry APIC → timeout

And the process could continue indefinitely.

The source material identifies several common termination triggers, including task completion, maximum iterations, confidence thresholds, human handoff, and error conditions.

For network automation, these can be translated into practical conditions.


8. Termination Condition #1 – Problem Solved

The simplest condition is:

Task completed.

For example:

The agent was asked to determine why an endpoint cannot communicate.

After investigation:

  • Endpoint is learned
  • EPG membership is correct
  • Contract exists
  • Routing is correct
  • Required policy is present

The agent has completed its investigation.

It can provide the final result.


9. Termination Condition #2 – Maximum Number of Attempts

Every autonomous agent should have a maximum iteration limit.

For example:

Maximum troubleshooting steps = 10

If the agent reaches step 10 without finding a reliable explanation, it stops.

This prevents an uncontrolled troubleshooting loop.

The source material describes maximum iterations as a safety mechanism that prevents an agent from running forever.

For example:

Attempt 1: Check endpoint

Attempt 2: Check EPG

Attempt 3: Check contract

...

Attempt 10: No conclusive result

Agent: "I could not determine the root cause within the configured troubleshooting limit. Human investigation is required."

That is much safer than allowing the agent to continue indefinitely.


10. Termination Condition #3 – Error State

Sometimes the problem isn't the network.

The tool itself may be unavailable.

For example:

Agent → APIC API

Result → Authentication failure

The agent should not continuously retry without limits.

Another example:

Agent → APIC

Result → API unavailable

The agent should recognize the error state and stop or switch to an approved fallback.

The source material describes error states as situations where required systems or dependencies fail and the agent should stop trying and report the problem.


11. Termination Condition #4 – Human Approval Required

Sometimes the agent reaches a point where it knows what should happen but does not have authority to perform it.

For example:

Agent diagnosis:

"Traffic is being denied because the required contract is missing."

Proposed action:

"Create contract allowing TCP/443 between the application and database EPGs."

At this point, the agent can request approval.

If the engineer approves:

Continue → Execute approved action

If the engineer rejects:

Stop → Report

This creates a controlled automation boundary.


12. What Happens When an Agent Gets Stuck?

Autonomous systems don't always fail in obvious ways.

Sometimes an agent continues working but isn't actually making progress.

These are called stuck states.

The source material highlights four important examples:

  1. Loop
  2. Oscillation
  3. Dead end
  4. Hallucination

Let's translate these into networking terms.


13. Stuck State #1 – Loop

A loop occurs when the agent repeatedly performs the same action without progress.

For example:

Check APIC endpoint → timeout

Check APIC endpoint → timeout

Check APIC endpoint → timeout

Check APIC endpoint → timeout

Nothing changes.

A good agent should recognize the repeated pattern.

It should either:

  • Try an approved alternative
  • Wait and retry within limits
  • Escalate
  • Stop

It should not continue forever.


14. Stuck State #2 – Oscillation

Oscillation is slightly different.

The agent changes between two approaches but doesn't make meaningful progress.

For example:

Check endpoint → no result

Check contract → no result

Check endpoint → no result

Check contract → no result

Check endpoint → no result

The agent is changing tactics, but it is effectively going around in circles.

Action-history tracking can help detect this behavior.


15. Stuck State #3 – Dead End

A dead end occurs when all available options fail.

For example:

  • APIC API unavailable
  • CLI access unavailable
  • Telemetry unavailable
  • Required monitoring system unavailable

The agent has no useful path forward.

A well-designed system should recognize this situation and escalate rather than inventing an answer.


16. Stuck State #4 – Hallucination

Hallucination is particularly important when AI interacts with network automation tools.

An agent may attempt to call a tool that does not exist or provide an invalid input.

For example, imagine the agent assumes an API endpoint exists when it doesn't.

Instead of recognizing the limitation, it repeatedly tries variations of the same invalid request.

That is dangerous in automation.

The source material describes hallucination as an agent attempting to use nonexistent tools or invalid inputs.

This is why tool validation and strict API permissions are important.


17. How Can We Prevent Agents From Getting Stuck?

A reliable network automation agent should have multiple protection mechanisms.

The source material recommends a layered approach involving iteration limits, action-history tracking, fallback strategies, and human escalation.

For Cisco ACI automation, we can think about it like this:

1. Set an iteration limit

Don't allow unlimited troubleshooting steps.

2. Maintain action history

Record what the agent already checked.

3. Detect repeated actions

If the same API call or troubleshooting operation repeatedly produces the same result, flag it.

4. Define fallback paths

If the preferred data source is unavailable, use an approved alternative.

5. Escalate to a network engineer

When automation reaches its boundary, stop and request human assistance.

This is essentially applying good network engineering practices to AI systems.


18. Example: AI Agent Troubleshooting an ACI Endpoint

Let's put everything together.

User Request

"Investigate why Server-A cannot communicate with Server-B."

Agent Loop

Goal: Determine the connectivity issue.

↓

Check Server-A endpoint

Result: Learned.

↓

Reflect

Server-A is present in the fabric.

↓

Check Server-B endpoint

Result: Learned.

↓

Reflect

Both endpoints are present.

↓

Check EPG membership

Result: Correct.

↓

Check contract

Result: Required communication is not permitted.

↓

Reflect

Potential policy issue identified.

↓

Propose action

"Create or modify the required contract."

↓

HITL checkpoint

Engineer approval required.

↓

Engineer approves

↓

Agent performs approved change

↓

Verify connectivity

Result: Connectivity restored.

↓

Termination

Task completed.

This is a simple example of how an AI agent could combine investigation, reasoning, automation, verification, and human oversight.


19. The Difference Between Automation and Agentic Automation

This distinction is important for network engineers.

Traditional automation

You define exactly what should happen.

For example:

If interface goes down → send alert.

Or:

Run this Python script → configure these interfaces.

The workflow is largely predetermined.

Agentic automation

The system receives a goal and determines the next appropriate step based on observations.

For example:

Goal: Investigate connectivity failure.

The agent might determine:

  1. Check endpoint.
  2. Check EPG.
  3. Check contract.
  4. Check routing.
  5. Check external connectivity.
  6. Form a hypothesis.
  7. Verify the hypothesis.
  8. Request approval if configuration changes are required.

This is why agentic AI is particularly interesting for network operations.


20. Where Cisco ACI Fits Into Agentic AI

Cisco ACI provides a policy-driven environment with centralized management through APIC.

That makes it an interesting platform for experimenting with AI-assisted network operations.

An AI agent could potentially use approved interfaces to:

Read

  • Fabric health
  • Faults
  • Endpoint information
  • EPG information
  • Bridge Domain information
  • Contracts
  • Routing information
  • Interface status
  • Operational statistics

Analyze

  • Identify patterns
  • Correlate multiple faults
  • Compare expected and actual behavior
  • Generate troubleshooting hypotheses

Recommend

  • Possible root cause
  • Next troubleshooting step
  • Configuration change
  • Verification procedure

Execute

Only where the required authorization and safeguards exist.

This last point is critical.

Read-only automation is significantly different from autonomous production configuration.


21. A Practical AI + ACI Architecture

A conceptual architecture could look like this:

Network Engineer

↓

AI Agent

↓

Reasoning / Decision Engine

↓

Policy & Safety Layer

↓

ACI API / Approved Tools

↓

Cisco APIC

↓

ACI Fabric

↓

Telemetry / Faults / Operational Data

↓

AI Agent

The agent receives information from the environment, analyzes it, decides what should happen next, and continues the loop.

For production environments, the Policy & Safety Layer should sit between the agent and configuration-changing operations.


22. Read-Only vs Change-Enabled AI Agents

A useful maturity model for network teams is to start small.

Level 1 – AI Assistant

The engineer asks questions.

Example:

"Why might an ACI endpoint not be learned?"

The AI provides possible causes.

Level 2 – Read-Only Agent

The AI can retrieve information from approved systems.

Example:

"Investigate Server-A connectivity."

The agent collects APIC information but does not modify anything.

Level 3 – Recommendation Agent

The agent investigates and proposes remediation.

Example:

"The contract appears to be missing. I recommend validating the required filter and contract."

Level 4 – Human-Approved Automation

The agent proposes a change and waits for approval.

Approve → Execute

Reject → Stop

Level 5 – Controlled Autonomous Operations

Certain low-risk actions can be performed automatically under predefined policies.

This should only be considered after extensive testing, logging, validation, and governance.


23. Safety: Never Trust an AI Agent Blindly

One of the most important lessons from agentic AI is that confidence does not automatically equal correctness.

An AI agent can produce an incorrect conclusion with a high level of confidence.

The source material specifically highlights overconfidence, silent failures, context loss, and automation bias as important safety concerns.

For network engineers, this means:

AI recommendation ≠ network truth

Always validate critical conclusions.

For production changes, consider:

  • Change approval
  • RBAC
  • Audit logging
  • Rollback capability
  • Maximum iterations
  • Tool restrictions
  • Human approval
  • Post-change verification

24. Logging Is Extremely Important

Every agent action should ideally be traceable.

For example:

09:10:01 – Task received

09:10:03 – Queried endpoint

09:10:04 – Endpoint found

09:10:06 – Checked EPG

09:10:07 – EPG valid

09:10:09 – Checked contract

09:10:10 – Contract missing

09:10:15 – Proposed remediation

09:10:30 – Human approval received

09:10:35 – Change executed

09:10:40 – Connectivity verified

This creates an audit trail.

If something goes wrong, the network engineer can understand what the agent attempted and why.


25. ACI Engineers Should Think in Terms of Guardrails

When building AI-based network automation, don't start with:

"How much can the AI automate?"

Start with:

"What should the AI never be allowed to do?"

For example, an organization might define:

Automatically allowed

  • Read APIC faults
  • Read endpoint information
  • Read interface status
  • Generate troubleshooting reports
  • Recommend configuration changes

Human approval required

  • Contract changes
  • EPG changes
  • Routing changes
  • L3Out modifications
  • Production interface changes

Never allowed without additional controls

  • Broad production configuration changes
  • Changes outside an approved change window
  • Actions affecting critical applications

This approach makes AI adoption much more controlled.


26. A Simple Mental Model for Network Engineers

If you are new to agentic AI, remember this:

Traditional script

Do A → Do B → Do C → Finish

Automation workflow

If A → Do B → If C → Do D

AI Agent

Goal → Investigate → Act → Observe → Reflect → Decide → Repeat → Stop

Safe AI Agent

Goal → Investigate → Act → Observe → Reflect → Safety Check → Human Approval if Required → Verify → Stop

That last model is particularly relevant to production network operations.


27. Key Takeaways

The Agent Loop provides a useful way to understand how AI can move from simple question answering toward autonomous problem solving.

For Cisco ACI engineers, the most important concepts are:

1. Think → Act → Observe

The agent performs actions and learns from the results.

2. Reflection

After every important action, the agent evaluates whether it made progress.

3. Termination

Every agent needs clear conditions for stopping.

4. Stuck-state detection

The system should detect loops, oscillation, dead ends, and invalid tool usage.

5. Human-in-the-Loop

Critical production changes should have an appropriate human approval mechanism.

6. Guardrails

Limit what the agent can access and what it can change.

7. Logging

Record actions, results, decisions, and termination reasons.

8. Verification

After an automated change, verify that the expected outcome actually occurred.


28. Final Thoughts

Cisco ACI changed the traditional networking mindset from configuring individual devices toward defining application and network policy.

Agentic AI could take this concept one step further.

Instead of asking a network engineer to manually investigate every alert, an AI agent could potentially collect information, correlate events, investigate the problem, propose a solution, and—in carefully controlled situations—execute an approved action.

But the objective should not be to remove the network engineer from the process.

The better objective is to make the network engineer more productive.

Think of the AI agent as a junior engineer that can work continuously, collect information quickly, perform repetitive investigations, and prepare recommendations.

The experienced network engineer remains responsible for judgment, architecture, risk, and production decisions.

The future of network operations may therefore not be:

Human OR AI

but rather:

Human + AI + Automation + Guardrails

And Cisco ACI provides an excellent environment for network engineers to start exploring this new model of intelligent network operations.


Related Cisco ACI Articles

If you are learning Cisco ACI, you may also find these articles useful:

Cisco ACI Explained: Concepts, Learning Prerequisites, Benefits, and Limitations
Read the Cisco ACI fundamentals guide

Cisco ACI vPC Explained: Architecture, Working, Configuration, Traffic Flow & Interview Questions
Read the Cisco ACI vPC guide

Why Service Graphs Matter in Cisco ACI — Complete Guide with Configuration Examples
Read the Cisco ACI Service Graph guide

L3Out Subnet Scope Options in Cisco ACI
Read the Cisco ACI L3Out guide

Understanding Domain Types in Cisco ACI
Read the Cisco ACI Domain Types guide

Understanding VLAN Pool Roles in Cisco ACI
Read the Cisco ACI VLAN Pool guide

Cisco ACI Leaf Node ID Swap on vPC Pairs
Read the Cisco ACI Leaf Node ID Swap guide

Thursday, 23 July 2026

Why BGP Maximum-Paths Wasn't the Problem: Understanding Port-Channel Load Balancing and Traffic Imbalance

Recently, we investigated a case where traffic utilization across port-channel member interfaces was significantly unbalanced. One of the links was carrying the majority of the traffic while the other link remained underutilized. Since the environment was already configured with BGP maximum-paths 8, the initial assumption was that BGP load balancing might not be functioning correctly.

After reviewing the configuration, we confirmed that BGP ECMP was operating as expected and that multiple equal-cost paths were available. This shifted our focus from the routing layer to the port-channel load-balancing mechanism.

Why BGP Was Not the Problem

The configuration already included BGP maximum-paths 8, which allows the router to install and use multiple equal-cost paths. This means the network was capable of leveraging several routes simultaneously, eliminating BGP as the primary suspect.

It is important to understand that BGP ECMP and port-channel load balancing serve different purposes. BGP decides which routing path should be used, while the port-channel hashing algorithm determines which physical member link will carry the traffic.

Even when ECMP is working perfectly, traffic can still become concentrated on a single port-channel member if the hashing algorithm maps large flows to the same interface.

Current Hashing Algorithm Analysis

The port-channel was configured with the src-dst-ip enhanced load-balancing algorithm.

This algorithm uses only the source and destination IP addresses to calculate the hash. If a traffic flow continuously uses the same source and destination IP addresses, all packets belonging to that flow will be forwarded through the same member interface.

For example, a database replication stream between two servers will always generate the same hash result. As a result, the entire flow remains pinned to a single physical link regardless of how much unused bandwidth exists on other members of the port-channel.

This behavior is normal because Cisco port-channel load balancing is flow-based rather than packet-based. The objective is to avoid packet reordering and maintain application performance.

Considering src-dst-mixed-ip-port

To improve traffic distribution, we evaluated changing the load-balancing algorithm from src-dst-ip enhanced to src-dst-mixed-ip-port.

Unlike the current configuration, this method includes both Layer 3 and Layer 4 information in the hash calculation. In addition to source and destination IP addresses, it also considers source and destination TCP or UDP port numbers.

This creates a larger number of unique hash combinations and increases the likelihood that different application sessions between the same endpoints will be distributed across multiple member links.

In environments where users, applications, or servers establish numerous simultaneous connections, this approach often results in significantly improved bandwidth utilization across the port-channel.

Important Considerations Before Making the Change

Changing the load-balancing algorithm is generally considered a non-disruptive operation on most Cisco platforms. However, all existing traffic flows will be immediately re-hashed.

As traffic gets redistributed across available links, there may be a brief period of packet reordering. While this is typically minor and transparent to most applications, implementing the change during a maintenance window or low-utilization period is recommended.

Another important consideration is that even with Layer 4 information included, the load-balancing mechanism remains flow-based. If the imbalance is caused by a single high-bandwidth elephant flow, the entire flow will still be assigned to one member link.

In such cases, changing the hashing algorithm may provide only limited improvement.

Recommended Validation After the Change

After implementing the new load-balancing method, monitor interface utilization and traffic patterns for several hours.

Review the following:

Port-channel member utilization

Top bandwidth-consuming flows

NetFlow or telemetry statistics

Application traffic distribution

Interface counters

If traffic becomes more evenly balanced across the member interfaces, the change has achieved its objective. If the imbalance continues, further investigation should focus on identifying large elephant flows or application-specific traffic patterns.

Conclusion

Based on our analysis, BGP maximum-paths was not contributing to the bandwidth imbalance. The routing layer was functioning correctly and supporting multiple equal-cost paths as designed.

The more likely cause was the src-dst-ip enhanced hashing algorithm, which uses only Layer 3 information and can result in traffic concentration when a small number of large flows dominate bandwidth consumption.

Moving to src-dst-mixed-ip-port is a logical and widely adopted optimization because it introduces Layer 4 awareness into the hashing calculation and generally improves traffic distribution when multiple flows exist between the same source and destination hosts.

While it may not solve scenarios involving a single elephant flow, it represents the most appropriate next step before exploring more advanced traffic-engineering options

Sunday, 26 April 2026

Cisco ACI “Unknown” Leaf State Explained: Certificates, LLDP, Software, and Hardware Issues

  In a Cisco ACI fabric, one of the most frustrating issues during initial fabric bring‑up, expansion, or node replacement is seeing a leaf switch stuck in an “Unknown” state. When a leaf is in an unknown state, it means the APIC cannot fully discover, authenticate, or manage the node, preventing it from joining the fabric and participating in traffic forwarding.

This issue can occur during initial fabric deployment, adding a new leaf to an existing fabric, replacing failed hardware, performing software upgrades, or moving switches between fabrics.

Understanding why a leaf enters the “Unknown” state is critical for fast recovery. In most cases, the root cause is not a single configuration mistake but a failure in communication, authentication, compatibility, or initialization.

This article explains the most common causes of the “Unknown” leaf state in Cisco ACI, why they happen, and how to systematically troubleshoot them in real‑world environments.

1. What Does “Unknown” Leaf State Mean in Cisco ACI?

When a leaf is shown as “Unknown” in the APIC GUI, it indicates that the APIC can see the node attempting discovery, but the node cannot complete secure authentication or critical control‑plane messaging has failed.

At this stage, the leaf is not operational, not programmable, and cannot forward production traffic.

2. Certificate Issues Between Leaf and APIC

Cisco ACI uses mutual certificate‑based authentication between the APIC controllers and fabric nodes. Every leaf switch must present a valid certificate chain that is signed and trusted by the APIC.

If the certificate exchange fails, the leaf cannot authenticate correctly, and APIC marks it as Unknown.

Common certificate‑related problems include an invalid or corrupted certificate on the leaf, the leaf previously belonging to another ACI fabric, expired or mismatched certificates due to time drift, or incomplete cleanup after node replacement.

These issues are often seen when hardware is reused without full re‑initialization.

The most reliable resolution is to completely wipe and reinitialize the leaf switch, ensure it boots in ACI mode, and allow APIC to generate and install a fresh certificate.

3. LLDP Mismatch or LLDP Failure

Cisco ACI relies heavily on LLDP for fabric discovery and adjacency validation. LLDP is mandatory in ACI for identifying correct topological relationships between leaf and spine switches.

If LLDP is not exchanged correctly, discovery fails and the leaf remains in an Unknown state.

Typical LLDP problems include LLDP being disabled on connected devices, LLDP filtered due to security policies, incorrect cabling such as connecting a leaf to something other than a spine, or the switch running in NX‑OS mode instead of ACI mode.

Symptoms include missing neighbor information, partial discovery, or interfaces appearing operationally down.

To resolve LLDP issues, ensure LLDP is enabled end‑to‑end, verify correct cabling from leaf to spine only, confirm the switch is running in ACI mode, and check optics and interfaces on both ends.

4. Firmware or Software Incompatibility

ACI fabric components are designed to work within a compatible software matrix. Significant software mismatches between the APIC, leaf, and spine can prevent successful node onboarding.

This often occurs when a leaf is running an unsupported ACI version, the APIC has been upgraded but the leaf image was not updated, or an incorrect software image is installed on the switch.

Typical symptoms include the leaf being detected but never transitioning from Unknown to Active, along with compatibility or image‑related faults.

Resolution requires verifying Cisco’s supported version matrix and ensuring that the leaf software version is compatible with both the APIC and spine versions.

5. Hardware Problems

Physical layer issues are a common but frequently overlooked cause of Unknown leaf state. Even a simple faulty optic can completely prevent discovery.

Common hardware causes include defective or unsupported transceivers, damaged fiber or copper cables, faulty ports on the leaf or spine, or mismatched speed or media types.

Indicators include interfaces staying down, intermittent connectivity, missing LLDP information, or hardware‑related faults in APIC.

Troubleshooting involves replacing suspect cables and optics, using only Cisco‑supported transceivers, testing alternate ports, and validating interface status on both leaf and spine.

6. Time Synchronization Issues

Certificate validation in ACI is time‑sensitive. If the system time on the leaf is significantly out of sync with the APIC, certificate authentication can fail even if the configuration and connectivity are correct.

This is common in environments where NTP is misconfigured, unavailable, or the device has been powered off for an extended period.

Symptoms include authentication failures and persistent Unknown leaf state with no obvious physical or configuration issues.

Resolution involves verifying NTP configuration on APIC, ensuring the leaf can synchronize time, and reinitiating discovery after time correction.

7. Incorrect Node ID or Serial Number Issues

ACI uniquely identifies nodes using a combination of node ID, serial number, and certificates. If these identifiers do not match what APIC expects, the leaf will fail authentication.

This commonly occurs when a switch was previously part of another fabric, reused after RMA without proper cleanup, or when a node ID conflict exists.

Symptoms include the leaf appearing with unexpected identity information or being rejected during registration.

The safest resolution is to fully wipe the leaf configuration, reboot the device, and allow APIC to assign a fresh node identity.

8. Recommended Troubleshooting Sequence

When a leaf is stuck in Unknown state, follow this sequence:

First, verify physical connectivity and optics.
Second, confirm LLDP adjacency and cabling.
Third, check software compatibility.
Fourth, validate certificates and authentication.
Fifth, ensure correct time synchronization.
Finally, reinitialize the leaf if needed.

Following this order avoids unnecessary configuration changes and reduces downtime.

9. Best Practices to Prevent Unknown Leaf State

Always wipe reused hardware before deployment.
Keep APIC, spine, and leaf software versions compatible.
Use supported Cisco optics and cables.
Ensure stable NTP configuration.
Verify LLDP connectivity during installation.
Document node IDs and serial numbers carefully.

Most Unknown leaf issues are preventable with proper procedures.

10. Conclusion

An Unknown leaf state in Cisco ACI is always a symptom of a failed discovery, authentication, compatibility, or initialization process. Certificate issues, LLDP failures, firmware incompatibility, hardware problems, time synchronization issues, and incorrect node identity are the most common causes.

By understanding these root causes and following a structured troubleshooting approach, engineers can resolve Unknown leaf issues quickly and avoid prolonged deployment delays.

A clean initialization and methodical verification remain the most effective solution in Cisco ACI environments.

Cisco ACI L3Out Interview Questions Explained – Design, Implement, and Troubleshooting

  

Section 1: Basic Cisco ACI L3Out Interview Questions

1. What is L3Out in Cisco ACI?

L3Out (Layer‑3 Outside) is the ACI construct that provides external Layer‑3 connectivity between the ACI fabric and networks outside the fabric.


2. Why do we need L3Out?

L3Out is used to:

  • Connect ACI to external routers
  • Integrate firewalls
  • Provide north‑south traffic
  • Advertise routes between ACI and external networks

3. Is L3Out mandatory in ACI?

No. L3Out is required only if the ACI fabric needs external Layer‑3 communication.


4. Where is L3Out configured?

L3Out is configured under a Tenant, associated with a VRF, and deployed on leaf switches.


5. Is L3Out Layer‑2 or Layer‑3?

L3Out is strictly a Layer‑3 construct.


Section 2: L3Out Components Interview Questions

6. What are the main components of L3Out?

  • L3Out object
  • Logical Node Profile
  • Logical Interface Profile
  • External EPG
  • Contracts

7. What is a Logical Node Profile?

It defines which leaf nodes participate in the L3Out.


8. What is a Logical Interface Profile?

It defines:

  • Interface type (routed, SVI)
  • IP addressing
  • Encapsulation (VLAN)
  • Connectivity to external device

9. Can L3Out be deployed on multiple leafs?

Yes. L3Out is commonly deployed on multiple leaf switches for redundancy.


10. What happens if an L3Out leaf fails?

Traffic fails over to other L3Out‑enabled leafs, assuming proper design (ECMP / routing).


Section 3: L3Out and Routing Protocol Interview Questions

11. Which routing protocols are supported with L3Out?

  • Static routing
  • OSPF
  • BGP

12. Which routing protocol is most commonly used?

BGP, due to scalability and flexibility.


13. Is OSPF supported in L3Out?

Yes, but less commonly used in large deployments.


14. Can static routes be used in L3Out?

Yes, for simple or small environments.


15. Can L3Out support ECMP?

Yes. ACI supports ECMP for L3Out when routing protocols allow it.


Section 4: L3Out and VRF Association Questions

16. Is L3Out associated with a VRF?

Yes. Every L3Out must be associated with exactly one VRF.


17. Can one L3Out be shared across multiple VRFs?

No. One L3Out belongs to only one VRF.


18. Can multiple L3Outs exist in the same VRF?

Yes. A VRF can have multiple L3Outs.


19. Why would you create multiple L3Outs in one VRF?

  • Multiple external devices
  • Separate routing domains
  • Different security or routing policies

20. What happens if VRF association is wrong?

External routing will fail and traffic will be dropped.


Section 5: External EPG Interview Questions

21. What is an External EPG?

An External EPG represents external networks outside the ACI fabric.


22. Why is an External EPG required?

Because ACI is deny‑by‑default, and external networks must also follow ACI security policy.


23. How is traffic allowed between internal EPGs and External EPGs?

Using contracts.


24. Is External EPG similar to internal EPG?

Conceptually yes, but it represents external endpoints.


25. Can there be multiple External EPGs under one L3Out?

Yes.


Section 6: L3Out and Contracts (Very Important)

26. Is traffic allowed by default between ACI and external networks?

No. Traffic is denied by default.


27. How do you allow internal traffic to external networks?

Apply contracts between internal EPG and External EPG.


28. Can External EPG be provider or consumer?

It can be either or both, depending on traffic flow.


29. What happens if no contract is applied?

Traffic will be dropped, even though routing is correct.


30. Why do many L3Out issues occur?

Because routing works, but contracts are missing or incorrect.


Section 7: L3Out Design Interview Questions

31. Routed Interface vs SVI – what is preferred?

Routed interfaces are preferred for simplicity and scale.


32. When would you use SVI‑based L3Out?

When connecting to:

  • Traditional VLAN‑based networks
  • Legacy firewalls

33. Can L3Out connect to firewalls?

Yes, very commonly.


34. Can one firewall connect to multiple L3Outs?

Yes, depending on design.


35. Should L3Out be deployed on border leafs?

Yes. Border leafs are best practice.


Section 8: Advanced L3Out Interview Questions

36. How is route leaking handled in ACI?

Using Shared Services VRF and contracts.


37. Can L3Out be used with Shared Services VRF?

Yes, very commonly.


38. Can L3Out be stretched across sites?

  • Multi‑Pod: Yes
  • Multi‑Site: Via individual site L3Outs

39. How does L3Out behave in Multi‑Pod?

L3Out is shared across pods.


40. How does L3Out behave in Multi‑Site?

Each site has its own L3Out, orchestrated by NDO.


Section 9: L3Out and External Connectivity Troubleshooting Questions

41. Routing is correct but traffic fails – why?

Most likely contract or filter issue.


42. Endpoint can ping gateway but not internet – why?

External EPG contract missing or incorrect.


43. How to verify routes learned from L3Out?

  • APIC routes view
  • Leaf show commands
  • moquery

44. How do you verify contract programming?

Use:

show zoning-rule

45. How do you verify L3Out operational status?

  • APIC Health score
  • Faults
  • Leaf CLI

Section 10: MoQuery Commands for L3Out Verification

46. Verify L3Out configuration

moquery -c l3extOut

47. Verify External EPGs

moquery -c l3extInstP

48. Verify L3Out subnets

moquery -c l3extSubnet

49. Verify VRF association

moquery -c fvCtx

50. Check faults related to L3Out

moquery -c faultInst

Section 11: Common L3Out Mistakes (Interview Favorite)

51. Forgetting contracts

Most common mistake.

52. Wrong VRF association

Causes route blackholing.

53. Deploying L3Out on wrong leaf

Traffic won’t exit properly.

54. Using SVI instead of routed interface unnecessarily

Adds complexity.

55. Not planning for redundancy

Leads to single‑point failures.


Section 12: Scenario‑Based L3Out Interview Questions

56. When should you create multiple External EPGs?

When different external networks need different security policies.


57. Can multiple L3Outs advertise the same prefix?

Yes, but routing behavior must be carefully designed.


58. Can L3Out connect to non‑Cisco devices?

Yes. ACI is vendor‑agnostic at Layer‑3.


59. Can L3Out be used for Internet access?

Yes, with proper NAT/firewall integration.


60. What is the biggest design challenge in L3Out?

Balancing security, simplicity, and scalability.


Conclusion

Cisco ACI L3Out is the gateway between the ACI fabric and the external world. Interviews around L3Out focus on design understanding, security enforcement, VRF association, and troubleshooting approach, not just configuration steps.

If you understand:

  • How routing works
  • Why contracts are mandatory
  • Where L3Out should be placed
  • How to verify and troubleshoot

you will handle most Cisco ACI L3Out interview questions confidently.


✅ Interview Tip

When answering L3Out questions, always explain:

  1. Routing
  2. Security (contracts)
  3. Placement (leafs)
  4. Verification

Cisco ACI Interview Questions and Answers (ESG, Multi‑Site, NDO, MoQuery Explained)

Cisco Application Centric Infrastructure (ACI) is a cornerstone technology in modern enterprise data centers. As a result, Cisco ACI interview questions appear frequently in interviews for Network Engineers, Data Center Specialists, ACI Architects, and CCIE Data Center candidates.

This comprehensive guide brings together basic, intermediate, and advanced ACI interview questions, including Endpoint Security Groups (ESG), Multi‑Pod, Multi‑Site, and Nexus Dashboard / NDO, with concise, practical answers. It also includes comparison tables frequently used by interviewers to test real‑world understanding.


Section 1: Cisco ACI Fundamentals – Core Interview Questions

1. What is Cisco ACI?
Cisco ACI is a policy‑based data center networking solution that centralizes management and enforces application‑centric policies across a fabric.

2. What problem does Cisco ACI solve?
It reduces operational complexity, configuration drift, and scalability issues found in traditional networking.

3. Which switches are used in ACI?
Cisco Nexus 9000 series switches running in ACI mode.

4. What is APIC?
APIC (Application Policy Infrastructure Controller) is the centralized control and management platform for the ACI fabric.

5. Is APIC part of the data path?
No. APIC is out of the data path; traffic continues even if APIC is unavailable.


Section 2: ACI Architecture Interview Questions

6. What topology does ACI use?
Leaf–spine architecture.

7. What connects to leaf switches?
Endpoints such as servers, firewalls, load balancers, and L3Outs.

8. What is the role of spine switches?
High‑speed packet forwarding between leaf switches.

9. Can endpoints connect to spine switches?
No.

10. What happens if a spine fails?
Traffic reroutes through remaining spines without impact.


Section 3: ACI Logical Model Questions

11. What is a Tenant?
An administrative boundary representing an organization or business unit.

12. What is a VRF in ACI?
A Layer‑3 routing domain providing IP isolation.

13. What is a Bridge Domain (BD)?
A Layer‑2 forwarding domain that defines flooding and gateway behavior.

14. What is an Endpoint Group (EPG)?
A logical group of endpoints that share the same policy.

15. Is an EPG the same as a VLAN?
No. EPGs are policy objects, not VLANs.


Section 4: Traffic Flow and Contracts Interview Questions

16. What is the default traffic behavior in ACI?
Traffic between EPGs is denied by default.

17. How is traffic allowed?
Using contracts.

18. What is a contract?
A policy object that defines who talks, what traffic is allowed, and direction.

19. What are subjects?
Logical groupings of filters within a contract.

20. What is a filter?
Defines protocol, port, and direction.


Section 5: Advanced Policy – vzAny and Taboo

21. What is vzAny?
A special object that represents all EPGs within a VRF.

22. Why use vzAny?
To simplify policy and reduce TCAM usage.

23. What is a Taboo Contract?
A deny contract used to explicitly block traffic.

24. Does Taboo override permit contracts?
Yes. Deny always takes precedence.

25. When should Taboo be used?
Only for specific, unavoidable deny cases.


Section 6: Endpoint Security Group (ESG) Interview Questions

26. What is an ESG?
Endpoint Security Group is a policy‑based security construct independent of topology.

27. How is ESG different from EPG?
EPG is topology‑based; ESG is security‑policy‑based.

28. Can ESG span multiple EPGs?
Yes.

29. Does ESG use contracts?
Yes, contracts are applied directly between ESGs.

30. Is ESG mandatory?
No, it is optional and mainly used for zero‑trust designs.


🔍 Comparison Table: EPG vs ESG

FeatureEPGESG
Based onTopologySecurity policy
DependencyBD / VLANIndependent
ScopeLimitedCross‑EPG
Zero‑TrustBasicStrong
Use CaseGeneral policyAdvanced security

Section 7: ACI Multi‑Pod Interview Questions

31. What is ACI Multi‑Pod?
A single ACI fabric stretched across multiple locations (pods).

32. Is Multi‑Pod one fabric?
Yes.

33. How many APICs manage Multi‑Pod?
One APIC cluster.

34. Are L2 and L3 stretched?
Yes.

35. What is IPN?
Inter‑Pod Network connecting pods.

36. What is the main risk of Multi‑Pod?
Increased fault domain.


Section 8: ACI Multi‑Site Interview Questions

37. What is ACI Multi‑Site?
Multiple independent ACI fabrics managed under common policy.

38. Are fabrics independent?
Yes.

39. Is Layer‑2 stretched in Multi‑Site?
No, Multi‑Site is primarily Layer‑3.

40. What is Multi‑Site mainly used for?
Disaster recovery and geo‑redundancy.


🔍 Comparison Table: Multi‑Pod vs Multi‑Site

FeatureMulti‑PodMulti‑Site
FabricSingleMultiple
APICSharedSeparate
L2 StretchYesNo
Latency RequirementStrictRelaxed
Fault IsolationLowHigh
Best Use CaseMetro DCGeo‑redundancy

Section 9: Nexus Dashboard & NDO Interview Questions

41. What is Nexus Dashboard (ND)?
A unified platform hosting ACI‑related services like NDO, NDI, and Insights.

42. What is Nexus Dashboard Orchestrator (NDO)?
A tool used to orchestrate policies across multiple ACI sites.

43. What was NDO previously called?
MSO (Multi‑Site Orchestrator).

44. Does NDO replace APIC?
No.

45. What is a schema in NDO?
A logical template defining tenants and policies.


Section 10: Nexus Dashboard Insights (NDI)

46. What is NDI?
Nexus Dashboard Insights provides health analytics, anomaly detection, and assurance.

47. Does NDI configure the fabric?
No. It is analytics only.

48. Is NDI mandatory?
No, but highly recommended for large environments.


🔍 Comparison Table: ND vs NDO vs NDI

ComponentPurpose
Nexus DashboardPlatform
NDOPolicy orchestration
NDIAnalytics & assurance
APICFabric control

Section 11: Troubleshooting Interview Questions

49. What is a health score?
A numeric representation of object health.

50. What is a fault?
An abnormal condition detected in the fabric.

51. What is moquery?
A read‑only CLI tool to query ACI managed objects.

52. Is moquery safe in production?
Yes.

53. Why prefer moquery over GUI?
Speed and accuracy.


Section 12: Automation and Operations

54. Does ACI support automation?
Yes, via native REST APIs.

55. Can Ansible be used with ACI?
Yes.

56. What is Day‑0?
Fabric deployment.

57. What is Day‑1?
Policy configuration.

58. What is Day‑2?
Operations and troubleshooting.


Section 13: ACI Disadvantages (Interview Favorite)

59. What is the biggest challenge in ACI?
Learning curve.

60. Is ACI expensive?
Yes, compared to traditional designs.

61. Is ACI vendor locked?
Yes.

62. Can ACI be over‑engineered?
Yes, with poor design.


Conclusion

Cisco ACI interviews test more than definitions—they assess design thinking, security understanding, architecture choice, and operational awareness. A clear grasp of EPG vs ESG, Multi‑Pod vs Multi‑Site, and NDO vs NDI is critical for senior‑level roles.

If you understand why ACI behaves the way it does, not just how to configure it, you will stand out in interviews.