Network Fundamentals Cloud 标志

Network Fundamentals Cloud

社区
Tibsfox
network-fundamentals-cloud

Networking fundamentals as they apply to cloud infrastructure — virtual networks, subnets, routers, NAT, floating IPs, security groups, VLAN/VXLAN segmentation, load balancing, SDN concepts, and how Neutron-style cloud networks sit on top of physical topology. Covers TCP behavior at scale, congestion control, tail latency, overlay networks, and the operational gotchas that come from network layering. Use when designing cloud network topology, debugging cross-AZ latency, or reviewing a proposed VPC/SG design.

Add to TypingMind

概览

发布者Tibsfox
代码仓库gsd-skill-creator
技能名称network-fundamentals-cloud
星标数
70
复刻数
9
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 Tibsfox 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Network Fundamentals Cloud AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/cloud-systems/network-fundamentals-cloud
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Tibsfox/gsd-skill-creator.git /tmp/gsd-skill-creator
mkdir -p .claude/skills
cp -r /tmp/gsd-skill-creator/examples/skills/cloud-systems/network-fundamentals-cloud .claude/skills/network-fundamentals-cloud
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Network Fundamentals Cloud,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Network Fundamentals Cloud。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Network Fundamentals Cloud 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Network Fundamentals for Cloud

The cloud's network is physical hardware pretending to be software. Virtual networks, subnets, security groups, and load balancers are abstractions over a datacenter's actual wires and switches — and every abstraction leaks at the operational layer. This skill covers the networking concepts a cloud-systems practitioner needs to design, debug, and reason about cloud network topology, and the places where the underlying physical reality surfaces as a surprise.

Agent affinity: hamilton-cloud (datacenter network economics), vogels (service-oriented network boundaries), dean (high-performance intra-datacenter networking)

Concept IDs: cloud-neutron-networking, cloud-security-groups-policies, cloud-multi-service-coordination

The OSI Layers, Minus the Nonsense

Cloud networking mostly lives at four layers:

  • L2 (link). MAC addresses, Ethernet frames, VLAN tags, ARP. The layer virtual switches speak.
  • L3 (network). IP addresses, routing, subnets. Where SDN controllers live.
  • L4 (transport). TCP, UDP, QUIC. Where load balancers often terminate.
  • L7 (application). HTTP, gRPC, database protocols. Where service meshes live.

The cloud network is a stack of overlays: your L2 frames are encapsulated in L3 IP packets that traverse the physical network, unwrapped at the other end, and delivered as if they were on the same switch. Understanding that the overlay and underlay are distinct helps when debugging "this ping should work" moments.

Virtual Networks and Tenant Isolation

A cloud virtual network gives a tenant a dedicated L2 or L3 network with their own address space, independent of other tenants on the same hardware. Two common isolation mechanisms:

VLANs (IEEE 802.1Q). A 12-bit tag in the Ethernet frame. Maximum 4094 VLANs per physical network — fine for a small datacenter, inadequate for a cloud with thousands of tenants.

VXLAN (RFC 7348). Encapsulates Ethernet frames in UDP, with a 24-bit segment ID (about 16 million segments). Frames are tunneled over the L3 network, so the physical topology doesn't need to provide L2 adjacency. VXLAN (and its cousins GENEVE, NVGRE, STT) is how large clouds do multi-tenant network isolation.

The virtual network abstraction in Neutron or AWS VPC presents the tenant with a subnet, a default gateway, security groups, and routes — and hides VXLAN or the cloud-specific overlay entirely. When it breaks, troubleshooting requires descending into the overlay.

Subnets, Routers, and the Default Gateway

A subnet is an IP range (e.g., 10.0.1.0/24) assigned to a virtual network, along with DHCP for instance addresses and a default gateway address. Instances in the subnet can talk to each other directly; to reach other subnets they route through the gateway.

A virtual router connects multiple subnets. In a typical cloud setup:

  • Each project has one or more networks, each with one or more subnets.
  • A virtual router connects the project's subnets to each other (east-west).
  • The router also connects to an external network (the provider's internet-facing network) for north-south traffic.
  • SNAT (source NAT) on the router lets instances reach the internet without having globally routable addresses.
  • Floating IPs (1:1 DNAT) give specific instances public addresses.

The router is a virtual construct but its forwarding is real — every packet hits some SDN data plane.

Security Groups: Stateful L3/L4 Firewalls

A security group is a stateful firewall applied per-instance (or per-port). It has two rule sets:

  • Ingress rules. Traffic entering the instance. Default deny-all.
  • Egress rules. Traffic leaving the instance. Default allow-all in most clouds (this is the security trap).

Rules specify protocol, port range, and source/destination (as CIDR or as another security group). The "source is another security group" is the key pattern — it gives a handle you can reason about without knowing instance IPs.

Statefulness means: if an instance initiates an outbound connection and egress rules permit it, the return traffic is automatically allowed even though no ingress rule exists. Reply traffic follows the conntrack flow.

Default-deny discipline. The baseline security group should allow only the minimum needed. A rule allowing 0.0.0.0/0 on port 22 is almost always a mistake in production.

Load Balancers

Three common shapes:

L4 (TCP/UDP) load balancer. Distributes connections at the transport layer. Doesn't see HTTP headers. Fast and protocol-agnostic. Good for non-HTTP or when preserving client IP matters.

L7 (HTTP) load balancer. Terminates the TCP connection, reads HTTP headers, applies routing rules based on host/path/headers, forwards to backend. Can do TLS termination, rewrite headers, inject tracing.

Global load balancer. DNS-based or Anycast-based. Routes clients to the nearest healthy region. Composed with L4 or L7 load balancers per region.

Health checks determine which backends are "in" the load balancing pool. Tuning health check sensitivity is a classic trade-off: strict checks remove unhealthy backends quickly but also remove healthy ones under transient load; lenient checks send traffic to dying backends.

TCP at Cloud Scale

TCP works differently inside a datacenter than on the open internet.

Intra-datacenter. Low RTT (microseconds), low loss, high bandwidth. TCP's standard loss-as-congestion-signal is too coarse — a single lost packet causes window collapse and latency spikes. DCTCP, BBR, and other modern congestion controls use RTT or ECN instead of loss.

Cross-region. High RTT (tens of milliseconds), noticeable loss. Classical TCP works, but throughput is bound by window size / RTT.

Incast. Many senders transmit to one receiver simultaneously. Synchronized window collapse causes sustained throughput drops. The classic example is MapReduce shuffle.

Head-of-line blocking. TCP delivers bytes in order, so a single lost packet stalls delivery of subsequent packets even if they arrived. HTTP/2's multiplexing exposed this — one HTTP/2 stream's loss stalls all streams. QUIC fixes it by moving to UDP and doing its own ordering per stream.

Tail Latency and the P99 Discipline

At cloud scale, average latency is misleading. A service with 1 ms average latency and a 50 ms P99 is a service where 1 in 100 requests takes 50x longer. Because most user-visible requests fan out to many services, P99 latency of individual services becomes the common-case latency of the whole system.

Dean's tail-at-scale observations. Sources of tail latency: GC pauses, periodic daemons, background maintenance, kernel scheduling quanta, contention on shared resources.

Mitigations.

  • Hedged requests. Send to two replicas after a short delay; use whichever responds first. Costs 2x for a small subset of requests.
  • Tied requests. Send to multiple replicas immediately with a "cancel if another beats you" marker. Costs little once the first responds.
  • Good admission control. Reject rather than queue when the backend is at its limit. Slow failures are worse than fast failures.

SDN and Control Plane Separation

Software-Defined Networking separates the control plane (where routes and policies are computed) from the data plane (where packets are forwarded). Benefits:

  • Policies are defined centrally and pushed to switches.
  • Network state is a database, not the aggregate of dozens of devices.
  • Changes propagate quickly and can be rolled back atomically.

Protocols like OpenFlow, Open vSwitch, and vendor-specific APIs are the plumbing. Cloud networking teams build SDN control planes that compose tenant virtual networks, security groups, and load balancers into actual forwarding rules on physical switches and virtual switches.

MTU and the Fragmentation Problem

Every network path has a maximum transmission unit. When a packet exceeds it, the router either fragments it or sends ICMP "fragmentation needed" back to the sender. Overlay networks reduce effective MTU because the outer encapsulation consumes bytes:

  • Physical Ethernet MTU: 1500 bytes.
  • VXLAN adds ~50 bytes of headers.
  • Effective MTU for tenants: 1450 bytes.

If the tenant's TCP stack thinks MTU is 1500 and ICMP is filtered (common mistake), connections mysteriously stall on large packets. Setting MTU correctly in DHCP / route advertisements, and not filtering ICMP "fragmentation needed" messages, is an operational must-do.

Common Failure Modes

FailureSymptomRoot cause
Asymmetric routingTCP connections stall mid-sessionReturn path goes through a different stateful firewall
MTU mismatchLarge writes hang, small ones workOverlay MTU smaller than expected, ICMP filtered
ARP table overflowIntermittent "no route to host"Too many instances on one L2 segment
Cross-AZ latency spikeP99 inflation, P50 fineTraffic leaking to non-local AZ due to routing policy
Security group leakInstance reachable from unexpected source0.0.0.0/0 rule committed inadvertently
Load balancer health flapBackends cycle in and outHealth check too aggressive, or shared resource causing correlated failures
BGP withdrawalRegion unreachableUpstream routing change, dark fiber cut

When to Use This Skill

  • Designing a VPC / tenant network topology for a new cloud deployment.
  • Debugging a network-layer incident (latency, drops, partial reachability).
  • Reviewing security group rules for over-permissiveness.
  • Planning multi-region or multi-AZ traffic patterns.
  • Sizing load balancers and health check policies.
  • Optimizing for tail latency in a high-fan-out service.

When NOT to Use This Skill

  • Single-host networking. Local loopback has its own patterns.
  • Pure application-level concerns that do not interact with the network fabric.

Decision Guidance

NeedRecommended
Tenant isolation at scaleVXLAN/GENEVE overlay
Intra-datacenter L4DCTCP or BBR-like congestion control
Cross-region replicationTCP with larger windows, or QUIC
High fan-out servicesHedged or tied requests, tight timeouts
Public API endpointL7 LB with TLS termination, WAF in front
Service mesh east-westL4+L7 combined via sidecar
Failure-domain isolationDistinct AZs, distinct BGP sessions, distinct power

References

  • Dean, J., Barroso, L. (2013). "The Tail at Scale." CACM 56(2).
  • Alizadeh, M., et al. (2010). "Data Center TCP (DCTCP)." SIGCOMM.
  • Cardwell, N., et al. (2017). "BBR: Congestion-based Congestion Control." CACM.
  • Mahalingam, M., et al. (2014). "VXLAN: A Framework for Overlaying Virtualized Layer 2 Networks." RFC 7348.
  • Barroso, L., Clidaras, J., Holzle, U. (2013). The Datacenter as a Computer. Morgan & Claypool.
  • Neutron documentation, OpenStack project.
  • AWS VPC documentation.

常见问题

Network Fundamentals Cloud AI 技能有什么作用?

Networking fundamentals as they apply to cloud infrastructure — virtual networks, subnets, routers, NAT, floating IPs, security groups, VLAN/VXLAN segmentation, load balancing, SDN concepts, and how Neutron-style cloud networks sit on top of physical topology. Covers TCP behavior at scale, congestion control, tail latency, overlay networks, and the operational gotchas that come from network layering. Use when designing cloud network topology, debugging cross-AZ latency, or reviewing a proposed VPC/SG design.

为什么在 TypingMind 中使用 Network Fundamentals Cloud?

因为您只需安装一次,就能搭配任何模型使用。Network Fundamentals Cloud 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Network Fundamentals Cloud?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Tibsfox/gsd-skill-creator/tree/main/examples/skills/cloud-systems/network-fundamentals-cloud。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Network Fundamentals Cloud?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Network Fundamentals Cloud 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Network Fundamentals Cloud 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Network Fundamentals Cloud AI 技能免费吗?

Tibsfox 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇