Internet-Draft Agent Gateway Core functional Architectu November 2026
Miao, et al. Expires 24 May 2027 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-miao-agw-core-functional-architecture-01
Published:
Intended Status:
Informational
Expires:
Authors:
C. Miao
ZTE Corporation
R. Chen
ZTE Corporation
J. Yan
ZTE Corporation
X. Zhang
China Mobile

Agent Gateway Core functional Architecture

Abstract

This document defines the core functional architecture of the Agent Gateway as a universal infrastructure component. The Agent Gateway is designed to address key challenges in single-domain multi-agent collaboration and cross-domain multi-agent communication, including trust boundaries, protocol termination, capability discovery, and task routing. The main framework consists of four gateway capabilities: the A2A Gateway (supporting inter-agent communication), the MCP Gateway (supporting tool invocation), the Model Routing Gateway (supporting large language model invocation), and the Network Gateway (supporting underlying network connectivity). The A2A Gateway is further decomposed into five core capabilities: protocol translation, authentication and security, asynchronous task management, peer-to-peer network management, and Agent routing capabilities (including Agent registry, capability discovery, task routing, and load balancing). This document is intended for designers and implementers seeking to build standardized, interoperable agent communication infrastructure.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 24 May 2027.

▲

Table of Contents

1. Introduction

As agent technology evolves from single-device intelligence to multi-device collaboration and cross-domain interconnection, there is a growing demand for inter-agent communication across home, vehicle, and enterprise campus scenarios. Typical use cases include:

Traffic lanes, for instance, have emerged and been commonly used for

Existing agent communication architectures lack a standardized cross-domain trust boundary and protocol termination layer. To address this problem, this document proposes the Agent Gateway as a unified infrastructure component and defines its core functional architecture. This architecture covers four categories of gateway capabilities, corresponding to inter-agent communication, tool invocation, large model routing, and network connectivity, thereby forming a complete end-to-end agent communication middleware.

2. Conventions Used in This Document

2.1. Abbreviations

  • AGW: Agent Gateway

  • QoE: Quality of Experience.

  • SLA: Service Level Agreement.

  • SRv6: Segment Routing over IPv6.

2.2. Requirements Language

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 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

3. Agent Gateway Main Framework

The overall architecture of the Agent Gateway consists of four logical sub-gateways. They may be deployed on the same physical node or distributed across multiple nodes. Each sub-gateway has clearly defined responsibilities and standardized interfaces, collectively providing unified ingress and egress control.

  +------------------------------------------------------+
  |                      Agent Gateway                   |
  |                                                      |
  |  +------------------+  +------------------+          |
  |  |   A2A Gateway    |  |   MCP Gateway    |          |
  |  | (Inter-Agent     |  | (Tool Invocation)|          |
  |  |  Communication)  |  |                  |          |
  |  +--------+---------+  +--------+---------+          |
  |                                                      |
  |  +--------+---------+  +--------+---------+          |
  |  | Model Routing    |  |  Network Gateway |          |
  |  | Gateway          |  | (Network         |          |
  |  | (LLM Invocation) |  |  Connectivity)   |          |
  |  +------------------+  +------------------+          |
  |                                                      |
  |                                                      |
  |                                                      |
  +------------------------------------------------------+

The following subsections describe the functions of each sub-gateway.

3.1. A2A Gateway: Inter-Agent Communication

The A2A Gateway is the core of the Agent Gateway. It is responsible for handling inter-agent connectivity, discovery, task routing, and security management. It exposes standardized A2A protocol endpoints externally (e.g., /.well-known/agent.jsonand POST /a2a/tasks) and connects internally to sub-agents or upstream Supervisor Agents. The A2A Gateway comprises the following five core capabilities:

3.1.1. Protocol Translation

  • Description: Translates external A2A requests (HTTP/HTTPS, WebSocket, gRPC, etc.) into commands understandable by internal agents (e.g., local MQTT, DDS, soft bus messages), and vice versa;

  • Applicable Scenarios: Bridging external protocols with internal proprietary protocols during cross-domain agent communication; unifying protocols across different subsystems (ZigBee, BLE, Wi-Fi) within a single domain;

  • Design Considerations: Support plugin-based protocol adapters to allow dynamic loading of new transport protocols and serialization formats (JSON, Protobuf, CBOR).

3.1.2. Authentication and Security

  • Description: Performs identity verification and authorization checks on all incoming requests to the A2A Gateway. Supports OAuth 2.0 Device Flow, JWT issuance and verification, and Scope whitelisting. For cross-domain requests, mutual TLS (mTLS) or Federation-based trust relationships must be established;

  • Applicable Scenarios: Mandatory identity verification for cross-domain calls; optional within a single domain to prevent malicious nodes from impersonating legitimate agents;

  • Design Considerations: Built-in Certificate Revocation List (CRL) caching; support for Human-in-the-Loop (HITL) triggering of secondary confirmation for highly sensitive operations (e.g., unlocking a door).

3.1.3. Asynchronous Task Management

  • Description: Manages the lifecycle of all tasks passing through the A2A Gateway, including task creation, status tracking, result delivery, and timeout handling. Follows the Task object model defined in the Google A2A protocol (task_id, status, artifacts, messages);

  • Applicable Scenarios: Long-running agent collaboration tasks (e.g., "whole-house cleaning" requiring sequential execution by multiple agents); cross-domain tasks that may require asynchronous waiting due to network latency;

  • Design Considerations: Support persistent task queues (SQLite/LevelDB); provide two result notification methods: callback URL or WebSocket push; support task cancellation and pause/resume.

3.1.4. Peer-to-Peer Network Management

  • Description: Manages peer connections with other domain Agent Gateways. Includes NAT traversal (STUN/TURN/ICE), reverse channel maintenance (WebSocket/MQTT long-lived connections), heartbeat keep-alive, and reconnection strategies;

  • Applicable Scenarios: Between a home domain Gateway and a cloud Relay Gateway; between a home domain Gateway and a vehicle domain Gateway;

  • Design Considerations: Support both active connection initiation and passive acceptance modes; provide connection quality monitoring and automatic switchover to backup paths.

3.1.5. Agent discovery and routing proxy

Agent discovery and routing proxy is the core capability that enables the Agent Gateway (AGW) to forward requests from clients or other agents to the appropriate target agent instances. This functionality relies on two fundamental sub-capabilities: agent registration and agent discovery.

Unlike traditional designs where the AGW itself acts as both the routing engine and the registry, this architecture adopts a decoupled approach by introducing a dedicated, centralized registry component. The registry serves as the single source of truth for all agent metadata, including network addresses, supported capabilities, current load status, and health state.

3.1.5.1. Agent Registration

Each agent instance, upon startup, MUST register itself with the centralized registry. The registration payload SHOULD include at least the following fields or MDI defined in IETF DAWN WG:

  • agent identifier (unique within the administrative domain)

  • network endpoint (IP address and port)

  • list of supported capabilities (see Section 3.1.5.2)

  • transport protocol(s) supported (e.g., HTTP, gRPC, MQTT)

  • optional metadata tags (e.g., version, region, priority)

The registry maintains a lease-based mechanism to detect agent failures. Agents MUST periodically send heartbeat messages to renew their lease; if no heartbeat is received within a configurable timeout period, the registry marks the agent as unavailable and removes it from the active set.

The AGW does NOT participate in the registration process directly. Instead, it subscribes to updates from the registry, either through a push-based notification channel (e.g., WebSocket or long polling) or via periodic polling. This separation ensures that the AGW remains stateless with respect to agent lifecycle management, and that multiple AGW instances share a consistent view of the agent topology without requiring inter-gateway synchronization protocols.

3.1.5.2. Agent Discovery proxy

Agent discovery proxy allows the AGW to determine which agent is best suited to handle a given request based on functional requirements rather than purely static routing rules.

When a client request arrives, the AGW extracts the required capability from the request context (e.g., from a header field, URI path, or message type). The AGW then queries its local cache -- populated from the centralized registry -- to identify the subset of agents that advertise the matching capability. If multiple agents match, the AGW applies a selection policy such as:

  • round-robin

  • least-loaded (based on reported load metrics)

  • affinity-based (sticky sessions using agent identifiers)

  • latency-optimized (selecting the nearest agent geographically)

The centralized registry MAY also support advanced capability queries, such as hierarchical capability namespaces (e.g., "vision.object_detection" vs. "vision.face_recognition") or parameterized capabilities (e.g., "translation.source_lang=en").

3.1.5.3. Caching and Consistency Considerations

To minimize query latency and reduce load on the centralized registry, each AGW SHOULD maintain a local cache of agent registrations and capabilities. The cache TTL (time-to-live) SHOULD be configurable and typically set to a value between 5 and 30 seconds, depending on the expected rate of agent churn.

The system MUST tolerate temporary cache inconsistency. If the AGW routes a request to an agent that has become unavailable since the last cache refresh, the AGW SHOULD retry the request against another matching agent from the cached list, or fall back to a fresh query to the registry. This design provides eventual consistency while maintaining high availability and low routing overhead.

3.1.5.4. Relationship to Existing Service Discovery Mechanisms

The centralized registry described above is intentionally aligned with existing service discovery ecosystems (e.g., etcd, Consul, Kubernetes API Server). In deployments where such infrastructure is already present, the AGW MAY reuse the existing registry by implementing a thin adapter layer that translates the native registry API into the agent registration model defined herein. Conversely, in lightweight or edge deployments where no external registry exists, a minimal embedded registry MAY be co-located with the AGW as a deployment option, but this is considered a non- normative exception rather than the primary architecture.

3.2. MCP Gateway: Tool Invocation

The MCP (Model Context Protocol) Gateway is responsible for managing the registration, discovery, and invocation of external tools. It provides a unified way for agents to invoke non-agent services or device capabilities, such as:

  • Calling a weather API to retrieve real-time data;

  • Controlling IoT devices that do not possess full agent capabilities (via device SDKs);

  • Accessing databases or file systems.

Core Functions:

  • Tool Registration and Metadata Management: Receives tool provider Schema registrations (compliant with MCP Tool Schema specification), including input parameters, output format, and authentication requirements.

  • Tool Invocation Proxy: Forwards tool invocation requests initiated by agents to the corresponding tool backend and returns results to the agent. Supports both synchronous and asynchronous modes.

  • Security Sandbox: Performs permission checks (whether the caller is authorized to use the tool), rate limiting, and input filtering for tool invocations to prevent malicious injection.

  • Tool Chaining: Supports composing multiple tools into composite tools, simplifying orchestration logic on the agent side.

Relationship between the MCP Gateway and the A2A Gateway: The A2A Gateway handles agent-to-agent communication; the MCP Gateway handles agent-to-tool communication. Both may share common infrastructure services such as authentication and logging within the Agent Gateway.

3.3. Model Routing Gateway: Large Language Model Invocation

The Model Routing Gateway provides a unified entry point for agents to invoke large language models (LLMs), enabling model selection, load balancing, and cost control.

Core Functions:

  • Model Registration and Routing: Maintains a list of available models (e.g., Hunyuan, DeepSeek, GPT-4o, etc.) and routes requests to the most suitable model instance based on model preference, task type (reasoning, generation, translation), token budget, and other factors.

  • Unified API Adaptation: Converts vendor-specific APIs (OpenAI-compatible format, Hunyuan API, Claude API, etc.) into a standard interface (e.g., OpenAI Chat Completion format), reducing integration complexity for agents.

  • Context Management and Caching: Implements semantic caching for frequently occurring requests (e.g., common knowledge queries) to reduce duplicate invocations; supports sliding window context truncation to control token consumption.

  • Security and Compliance: Performs content filtering on model outputs (sensitive word detection, privacy leakage detection); records audit logs for compliance purposes.

The Model Routing Gateway is typically deployed in the cloud or at the edge. It works in conjunction with the A2A Gateway: agents delegate inference tasks to the Model Routing Gateway via the A2A Gateway, which then invokes the specific LLM.

3.4. Network Gateway: Network Connectivity

The Network Gateway provides underlying network connection management capabilities, ensuring that the Agent Gateway can stably access the internet and communicate with external entities.

Core Functions:

  • Connection Management: Manages the connection state of multiple network links (Ethernet, Wi-Fi, cellular), supporting primary/backup switching and failover.

  • NAT Traversal: Integrates STUN/TURN/ICE clients to provide underlying P2P capabilities for peer-to-peer network management; relays traffic via TURN when no public IP is available.

  • Firewall and Port Mapping: Automatically configures UPnP or manual port forwarding rules so that external A2A requests can reach the Gateway's listening ports.

  • Quality of Service (QoS): Assigns priority levels to different types of traffic (control commands, media streams, bulk data) to ensure low latency for critical tasks.

  • Network Diagnostics: Provides diagnostic tools such as connectivity testing, bandwidth measurement, and packet loss statistics to assist operations and maintenance.

The Network Gateway typically runs on home routers, edge servers, or cloud hosts, serving as the bridge between the Agent Gateway and the physical network.

4. Security Considerations

As the sole entry point for cross-domain communication, the Agent Gateway must enforce strict security measures:

5. Acknowledgements

TBA.

6. IANA Considerations

TBA.

7. References

7.1. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC6749]
Hardt, D., Ed., "The OAuth 2.0 Authorization Framework", RFC 6749, DOI 10.17487/RFC6749, , <https://www.rfc-editor.org/rfc/rfc6749>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
[RFC8446]
Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 8446, DOI 10.17487/RFC8446, , <https://www.rfc-editor.org/rfc/rfc8446>.

7.2. Informative References

[RFC5246]
Dierks, T. and E. Rescorla, "The Transport Layer Security (TLS) Protocol Version 1.2", RFC 5246, DOI 10.17487/RFC5246, , <https://www.rfc-editor.org/rfc/rfc5246>.
[RFC5389]
Rosenberg, J., Mahy, R., Matthews, P., and D. Wing, "Session Traversal Utilities for NAT (STUN)", RFC 5389, DOI 10.17487/RFC5389, , <https://www.rfc-editor.org/rfc/rfc5389>.
[RFC5776]
Roca, V., Francillon, A., and S. Faurite, "Use of Timed Efficient Stream Loss-Tolerant Authentication (TESLA) in the Asynchronous Layered Coding (ALC) and NACK-Oriented Reliable Multicast (NORM) Protocols", RFC 5776, DOI 10.17487/RFC5776, , <https://www.rfc-editor.org/rfc/rfc5776>.

Authors' Addresses

Chuanyang Miao
ZTE Corporation
Ran Chen
ZTE Corporation
Jinjie Yan
ZTE Corporation
Xiaoqiu Zhang
China Mobile