| Internet-Draft | MCP NetMeas | October 2025 |
| Zeng & Mao | Expires 23 April 2026 | [Page] |
- Workgroup:
- Network Working Group
- Published:
- Intended Status:
- Informational
- Expires:
MCP-based Network Measurement Framework: Using Model Context Protocol for Intelligent Network Measurement
Abstract
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.¶
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 23 April 2026.¶
Copyright Notice
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.¶
1. Introduction
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:¶
- Network devices (routers, switches, firewalls) act as MCP servers¶
- Network controllers or management systems act as MCP clients¶
- Natural language queries drive measurement operations¶
- AI systems assist in analysis and decision-making¶
The key benefits of this approach include:¶
- Natural Language Interface: Network operators can perform measurements using natural language queries¶
- AI-Assisted Analysis: Intelligent analysis of measurement results and anomaly detection¶
- Standardized Communication: Uniform protocol across different vendor devices¶
- Automated Workflows: Reduced manual intervention in measurement processes¶
2. Terminology
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).¶
3. MCP-Based Network Measurement Architecture
3.1. Architectural Components
+------------------+ MCP Protocol +------------------+
| |<----------------------------->| |
| MCP Client | JSON-RPC 2.0 over | MCP Server |
| (Controller) | TCP/HTTP/WebSocket | (Network Device)|
| | | |
+------------------+ +------------------+
| |
| |
v v
+------------------+ +------------------+
| | | |
| AI/LLM System | | Network |
| | | Hardware |
+------------------+ +------------------+
3.2. Communication Flow
The communication process involves five phases:¶
- Discovery Phase: MCP client discovers available MCP servers and their capabilities¶
- Capability Negotiation: Client and server negotiate supported measurement features¶
- Measurement Execution: Client requests measurements using natural language or structured queries¶
- Data Collection: Server provides measurement data through resources or tool execution¶
- Analysis and Response: Client processes results, potentially with AI assistance¶
3.3. MCP Server Capabilities
MCP servers (network devices) MUST expose:¶
Measurement Resources:¶
- Interface statistics (bandwidth, utilization, errors)¶
- Routing information (tables, protocols, neighbors)¶
- Device performance metrics (CPU, memory)¶
- Network topology data (LLDP/CDP information)¶
Measurement Tools:¶
4. Use Cases
4.1. Real-time Network Performance Monitoring
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¶
4.2. Intelligent Fault Diagnosis
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¶
4.3. Network Topology Discovery
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¶
4.4. Capacity Planning and Trend Analysis
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¶
4.5. Security Incident Response Measurement
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¶
5. Protocol Operations
5.1. Measurement Request Format
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"
}
¶
5.2. Measurement Response Format
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"
}
¶
6. Security Considerations
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.¶
6.1. Authentication and Authorization
MCP-based network measurement systems MUST implement:¶
- Strong Authentication: All MCP communications MUST be authenticated using industry-standard mechanisms (TLS mutual authentication, OAuth 2.0, etc.)¶
- Role-Based Access Control: Different measurement capabilities MUST be restricted based on user roles and privileges¶
- Device Authorization: Network devices MUST verify client authorization before exposing sensitive measurement data¶
7. IANA Considerations
This document has no IANA actions.¶
8. Normative References
- [RFC2119]
- Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, , <https://www.rfc-editor.org/info/rfc2119>.
- [RFC8174]
- Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, , <https://www.rfc-editor.org/info/rfc8174>.
- [RFC8259]
- Bray, T., "The JavaScript Object Notation (JSON) Data Interchange Format", STD 90, RFC 8259, , <https://www.rfc-editor.org/info/rfc8259>.
9. Informative References
- [MCP-SPEC]
- Anthropic, "Model Context Protocol Specification 2025-06-18", URL https://modelcontextprotocol.io/specification/2025-06-18/basic, .
- [RFC1157]
- Case, J., Fedor, M., Schoffstall, M., and J. Davin, "Simple Network Management Protocol (SNMP)", RFC 1157, , <https://www.rfc-editor.org/info/rfc1157>.
- [RFC3954]
- Claise, B., "Cisco Systems NetFlow Services Export Version 9", RFC 3954, , <https://www.rfc-editor.org/info/rfc3954>.