<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc tocompact="yes"?>
<?rfc tocdepth="3"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc category="std"
     docName="draft-mzsg-rtgwg-agent-cross-device-comm-framework-01"
     ipr="trust200902">
  <front>
    <title abbrev="Network Device Agent Communication">Cross-device
    Communication Framework for AI Agents in Network Devices</title>

    <author fullname="Jianwei Mao" initials="J. " surname="Mao">
      <organization>Huawei Technologies</organization>

      <address>
        <postal>
          <street/>

          <city>Beijing</city>

          <code>100095</code>

          <country>China</country>
        </postal>

        <email>MaoJianwei@huawei.com</email>
      </address>
    </author>

    <author fullname="Guanming Zeng" initials="G. " surname="Zeng">
      <organization>Huawei Technologies</organization>

      <address>
        <postal>
          <street/>

          <city/>

          <region/>

          <code/>

          <country/>
        </postal>

        <phone/>

        <facsimile/>

        <email>zengguanming@huawei.com</email>

        <uri/>
      </address>
    </author>

    <author fullname="Bing Liu" initials="B." surname="Liu">
      <organization>Huawei Technologies</organization>

      <address>
        <postal>
          <street/>

          <city/>

          <region/>

          <code/>

          <country/>
        </postal>

        <phone/>

        <facsimile/>

        <email>leo.liubing@huawei.com</email>

        <uri/>
      </address>
    </author>

    <author fullname="Nan Geng" initials="N." surname="Geng">
      <organization>Huawei Technologies</organization>

      <address>
        <postal>
          <street/>

          <city/>

          <region/>

          <code/>

          <country/>
        </postal>

        <phone/>

        <facsimile/>

        <email>gengnan@huawei.com</email>

        <uri/>
      </address>
    </author>

    <author fullname="Xiaotong Shang" initials="X." surname="Shang">
      <organization>Huawei Technologies</organization>

      <address>
        <postal>
          <street/>

          <city/>

          <region/>

          <code/>

          <country/>
        </postal>

        <phone/>

        <facsimile/>

        <email>shangxiaotong@huawei.com</email>

        <uri/>
      </address>
    </author>

    <author fullname="Qiangzhou Gao" initials="Q." surname="Gao">
      <organization>Huawei Technologies</organization>

      <address>
        <postal>
          <street/>

          <city/>

          <region/>

          <code/>

          <country/>
        </postal>

        <phone/>

        <facsimile/>

        <email>gaoqiangzhou@huawei.com</email>

        <uri/>
      </address>
    </author>

    <author fullname="Zhenbin Li" initials="Z. " surname="Li">
      <organization>Huawei Technologies</organization>

      <address>
        <postal>
          <street/>

          <city/>

          <region/>

          <code/>

          <country/>
        </postal>

        <phone/>

        <facsimile/>

        <email>robinli314@163.com</email>

        <uri/>
      </address>
    </author>

    <date day="1" month="November" year="2025"/>

    <abstract>
      <t>With the development of large language models (LLM), AI Agent
      software continues to emerge. AI agents deployed on different network
      devices need to collaborate to accomplish some complex tasks, such as
      network measurement and network troubleshooting. This collaboration
      requires cross-device communication between AI agents.</t>

      <t>This document proposes a cross-device communication framework for AI
      agents in network devices, and analyzes the requirements for the
      communication protocol.</t>
    </abstract>
  </front>

  <middle>
    <section title="Introduction">
      <t>With the development of large language models (LLM), AI Agent
      software continues to emerge. They have played a significant role in
      enhancing work and production efficiency. Deploying AI Agents on network
      devices will be the next beneficial attempt.</t>

      <t>AI agents deployed on different network devices need to collaborate
      to accomplish more complex tasks, especially those that span multiple
      devices and involve network-level operations. For example, this can help
      us perform better in areas such as network measurement<xref
      target="I-D.zeng-mcp-network-measurement"/> and network
      troubleshooting<xref target="I-D.zeng-mcp-troubleshooting"/>.</t>

      <t>This collaboration requires communication between AI agents, so this
      document proposes a cross-device communication framework for AI agents
      in network devices, and analyzes the requirements for the communication
      protocol.</t>

      <t>In this framework, the agents that communicate with each other are
      peers, capable of using synchronous and asynchronous communication
      methods, and support both structured and unstructured messages.</t>
    </section>

    <section title="Requirements Language">
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
      "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
      "OPTIONAL" in this document are to be interpreted as described in BCP 14
      <xref target="RFC2119">RFC 2119</xref> <xref target="RFC8174">RFC
      8174</xref> when, and only when, they appear in all capitals, as shown
      here.</t>
    </section>

    <section title="Terminology">
      <t>A2A: Agent2Agent Protocol</t>

      <t>MCP: Model Context Protocol</t>
    </section>

    <section title="Framework and Key Components">
      <t/>

      <t>The figure below shows the communication framework, including three
      network devices A~C, with some AI agents deployed on each device.</t>

      <t><figure>
          <artwork><![CDATA[                                              Device B                   
                                             +-------------------------+ 
                                             |   +------------------+  | 
                                   /---------+-->|Integrated Agent 1|  | 
                                   |         |   +------------------+  | 
                                   |         |   +------------------+  | 
                                   | /-------+-->|Integrated Agent 2|  | 
                                   | |       |   +------------------+  | 
                                   | |       |                         | 
  Device A                         | |       +-------------------------+ 
 +-------------------------+       | |                                   
 | +-------------------+ --+-------/ |                                   
 | |Communication Agent| --+---------/  communicate using Agent Protocol                                 
 | +++-----------------+ --+-------\                                    
 |  ||  +--------------+   |       |                                      
 |  ||->|Worker Agent 1|   |       |           Device C                  
 |  |   +--------------+   |       |         +-------------------------+ 
 |  |   +--------------+   |       |         |   +-------------------+ | 
 |  |-->|Worker Agent 2|   |       \---------+-->|Communication Agent| | 
 |      +--------------+   |                 |   +++-----------------+ | 
 +-------------------------+                 |    ||  +--------------+ | 
                                             |    ||->|Worker Agent 1| | 
                                             |    |   +--------------+ | 
                                             |    |   +--------------+ | 
                                             |    |-->|Worker Agent 2| | 
                                             |        +--------------+ | 
                                             +-------------------------+ 

Figure 1: Cross-device Communication Framework for AI Agents in Network Devices
]]></artwork>
        </figure></t>

      <t>Agents on network devices are categorized into three types:
      Communication Agent, Worker Agent, and Integrated Agent.</t>

      <t><list style="symbols">
          <t>Communication Agent: Responsible for the intelligent agent
          communication of this network device with external systems. It
          aggregates the capabilities of all local Worker Agents to generate
          the overall capability of the network device for external
          representation. It receives cross-device access requests from Worker
          Agents and uses the Agent protocol to communicate with Communication
          Agents on other devices. It also manages asynchronous or long-term
          tasks.</t>

          <t>Worker Agent: It performs specific functions for a particular set
          of tasks locally, such as network measurement and troubleshooting.
          It does not handle AI agent communication across devices. Worker
          Agents on different devices do not communicate with each other.
          Within a device, Worker Agents can communicate with each other or
          with the Communication Agent using either the Agent protocol or
          custom methods. This document does not impose any restrictions on
          the communication methods.</t>

          <t>Integrated Agent: Possesses both the functions of Worker Agent
          and Communication Agent. It has the capability to perform specific
          tasks and communicate with other agents.</t>
        </list></t>

      <t/>

      <t>The Communication Agents on each device have a peer relationship with
      each other. Based on the invocation relationship during a single
      communication, they can be further categorized into two roles: Client
      Agent and Server Agent.</t>

      <t><list style="symbols">
          <t>Client Agent: Constructs task requirements into request messages
          and sends them to the Server Agent via the Agent Protocol. It waits
          for the Server Agent to return a response message. The task result
          is obtained by parsing the response message, or recording the task
          ID in the response message returned by the Server Agent and
          retrieving the task result from the Server Agent by the task ID
          later.</t>

          <t>Server Agent: In terms of capability discovery, it constructs the
          capabilities of AI agents in the device into capability negotiation
          messages and sends them to the Client Agent via the Agent Protocol.
          For processing task requests, it receives request messages from the
          Client Agent through the Agent Protocol. For short-term tasks, after
          completing the task, it constructs the task result into a response
          message. For long-term tasks, it generates a task ID and constructs
          the task ID into a response message. The response message is then
          sent to the Client Agent via the Agent Protocol. When a long-term
          task is completed, the task result is cached, and the Server Agent
          waits for the Client Agent to retrieve the task result using the
          task ID.</t>
        </list></t>

      <t/>

      <t>The cross-device communication protocol between AI agents in network
      devices is referred as Agent Protocol.</t>

      <t><list style="symbols">
          <t>Agent Protocol: The communication protocol between agents on two
          devices, which includes functions such as capability discovery and
          negotiation, task assignment and result collection, authentication,
          and secure communication. For example, emerging protocols like A2A
          or MCP, or mature protocols like NETCONF/YANG, can be used.</t>
        </list></t>

      <t/>
    </section>

    <section title="Requirements">
      <t/>

      <section title="Requirements for AI Agent in Network Devices">
        <t>TBD</t>
      </section>

      <section title="Requirements for Agent Protocol">
        <t/>

        <t>The communication protocol between AI agents in network devices is
        referred as Agent Protocol. There are some requirements for it.</t>

        <t>[REQ 2-1a] Agent Protocol MUST support synchronous request/response
        interaction.</t>

        <t>[REQ 2-1b] Agent Protocol SHOULD support streaming interaction for
        better experience in some man-machine interaction scenarios.</t>

        <t>[REQ 2-1c] Agent Protocol MUST support to response task id
        immediately and acquire the result by task id later.</t>

        <t>[REQ 2-1d] Agent Protocol SHOULD support bidirectional interaction
        for the scenarios where Server Agent asks for more information from
        Client Agent.</t>

        <t>[REQ 2-1e] Agent Protocol MUST support to exchange structured
        messages, such as message in JSON or Protobuf format.</t>

        <t>[REQ 2-1f] Agent Protocol SHOULD support to exchange unstructured
        messages, such as natural language.</t>

        <t>[REQ 2-1g] TBD</t>
      </section>

      <section title="Requirements for Security schema ">
        <t>TBD</t>
      </section>
    </section>

    <section title="Illustration">
      <t/>

      <section title="Using A2A as the communication protocol">
        <t>TBD</t>
      </section>

      <section title="Using MCP as the communication protocol">
        <t>TBD</t>
      </section>
    </section>

    <section title="IANA Considerations">
      <t>TBD</t>
    </section>

    <section title="Security Considerations">
      <t>TBD</t>

      <t/>
    </section>
  </middle>

  <back>
    <references title="Normative References">
      <?rfc include="reference.RFC.2119"?>

      <?rfc include="reference.RFC.8126"?>

      <?rfc include='reference.RFC.8174'?>
    </references>

    <references title="Informative References">
      <?rfc include='reference.I-D.zeng-mcp-troubleshooting'?>

      <?rfc include='reference.I-D.zeng-mcp-network-measurement'?>
    </references>
  </back>
</rfc>
