Internet-Draft | MCP NetMeas | October 2025 |
Zeng & Mao | Expires 23 April 2026 | [Page] |
This document proposes a framework for intelligent network measurement using the Model Context Protocol (MCP). By treating network devices as MCP servers and network controllers as MCP clients, this framework enables natural language-driven, AI-assisted network measurement operations. The framework leverages MCP's standardized communication protocol to provide real-time network performance monitoring, intelligent fault diagnosis, topology discovery, and automated measurement workflows. This document describes the architecture, use cases, and security considerations for implementing MCP-based network measurement systems.¶
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 23 April 2026.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Traditional network measurement approaches often require specialized tools, complex configurations, and expert knowledge. As networks grow in complexity and scale, there is an increasing need for more intelligent and automated measurement solutions. The Model Context Protocol (MCP) provides a standardized framework for enabling communication between AI systems and external data sources.¶
This document proposes leveraging MCP to create an intelligent network measurement framework where:¶
The key benefits of this approach include:¶
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.¶
MCP Server: A network device that exposes measurement capabilities and data through the Model Context Protocol.¶
MCP Client: A network controller or management system that initiates measurement requests through MCP.¶
Measurement Resource: Data exposed by MCP servers for network measurement (e.g., interface statistics, routing tables).¶
Measurement Tool: Functions exposed by MCP servers that can be invoked for active measurements (e.g., ping, traceroute).¶
+------------------+ MCP Protocol +------------------+ | |<----------------------------->| | | MCP Client | JSON-RPC 2.0 over | MCP Server | | (Controller) | TCP/HTTP/WebSocket | (Network Device)| | | | | +------------------+ +------------------+ | | | | v v +------------------+ +------------------+ | | | | | AI/LLM System | | Network | | | | Hardware | +------------------+ +------------------+
The communication process involves five phases:¶
MCP servers (network devices) MUST expose:¶
Measurement Resources:¶
Measurement Tools:¶
Scenario: Network operator wants to check link utilization across core routers.¶
MCP Interaction:¶
Operator: "Show me the current utilization of all core router interfaces" MCP Client: Discovers core routers and requests interface statistics MCP Server: Provides Resources containing interface utilization data MCP Client: Aggregates and presents data with AI-generated insights¶
Scenario: Troubleshooting connectivity issues between two sites.¶
MCP Interaction:¶
Operator: "Diagnose connectivity issues between Site A and Site B" MCP Client: Identifies relevant devices and requests diagnostic tools MCP Server: Provides Tools: [traceroute, ping, show interfaces, show route] MCP Client: Executes diagnostic sequence and analyzes results¶
Scenario: Automated mapping of network topology.¶
MCP Interaction:¶
Operator: "Discover and map the current network topology" MCP Client: Requests topology information from seed devices MCP Server: Provides Resources: [neighbors table, interface status, VLAN info] MCP Client: Builds topology graph using AI-assisted correlation¶
Scenario: Predict future capacity needs based on current usage patterns.¶
MCP Interaction:¶
Operator: "Analyze capacity trends for all WAN links" MCP Client: Collects historical utilization data MCP Server: Provides Resources: [historical statistics, error counters] MCP Client: AI analysis generates capacity planning recommendations¶
Scenario: Measure and analyze potential security threats.¶
MCP Interaction:¶
Operator: "Investigate unusual traffic patterns on border routers" MCP Client: Requests security-related measurements MCP Server: Provides Tools: [ACL hit counts, flow analysis, threat detection] MCP Client: Correlates security events with network measurements¶
Measurement requests MUST follow MCP protocol specifications with the following structure:¶
{ "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "network_measurement_tool", "arguments": { "target": "device_or_interface", "measurement_type": "ping_throughput_latency", "parameters": { "count": 10, "interval": 1, "timeout": 5 } } }, "id": "measurement_request_001" }¶
Measurement responses MUST include:¶
{ "jsonrpc": "2.0", "result": { "measurement_id": "measurement_request_001", "timestamp": "2025-10-18T10:30:00Z", "device_id": "router_core_01", "results": { "avg_latency_ms": 25.3, "min_latency_ms": 24.1, "max_latency_ms": 28.7, "packet_loss_percent": 0.0, "throughput_mbps": 987.2 }, "metadata": { "measurement_duration": 15, "path_taken": ["router1", "router2", "router3"] } }, "id": "measurement_request_001" }¶
The Model Context Protocol enables powerful capabilities through arbitrary data access and code execution paths. With this power comes important security and trust considerations that all implementers must carefully address.¶
MCP-based network measurement systems MUST implement:¶
This document has no IANA actions.¶