"매 communicating parties 가 매 따라야 하는 rules 의 명시". 매 syntax (frame format), 매 semantics (meaning of fields), 매 timing (sequencing) 의 3 axes 로 정의. 매 2026 의 hot stack: HTTP/3 (QUIC), gRPC, MCP (Model Context Protocol), WebSocket, MQTT 5.
매 핵심
매 protocol 의 layers
Physical / Link: Ethernet, Wi-Fi 7, 5G NR.
Network: IPv6 (default 2026), IPv4 legacy.
Transport: TCP, UDP, QUIC.
Application: HTTP/3, gRPC, MCP, MQTT, AMQP.
매 design dimensions
Stateful vs stateless: 매 server-side state 보관 여부.
Sync vs async: 매 request-response vs publish-subscribe.
Push vs pull: 매 server-initiated vs client-initiated.
Text vs binary: 매 human-readable vs efficient.
Versioning: 매 backward / forward compatibility 의 strategy.
매 응용
Web: HTTP/3 over QUIC — 매 default.
AI tools: MCP (Anthropic 2024) 매 LLM ↔ tool 의 universal.
Microservices: gRPC 매 internal RPC.
IoT: MQTT 5 매 lightweight pub-sub.
Realtime: WebSocket / WebTransport.
💻 패턴
MCP server (Anthropic, 2026 standard)
frommcp.serverimportServerfrommcp.typesimportTool,TextContentserver=Server("knowledge-base")@server.list_tools()asyncdeftools():return[Tool(name="query",description="Query the KB",inputSchema={"type":"object","properties":{"q":{"type":"string"}},"required":["q"],},)]@server.call_tool()asyncdefcall(name,args):return[TextContent(type="text",text=search(args["q"]))]
importasyncioimportwebsocketsasyncdefhandler(ws):asyncformsginws:awaitws.send(f"echo: {msg}")asyncdefmain():asyncwithwebsockets.serve(handler,"0.0.0.0",8765):awaitasyncio.Future()# run forever