Co Location Provider Selection And Network Topology 标志

Co Location Provider Selection And Network Topology

社区
HimanshuJ16
co-location-provider-selection-and-network-topology

在需要为对延迟敏感的服务器选择部署地点时使用:比较不同共置设施和场所间链路,并依据传播物理原理和已公开的设备规格,拆分单向及往返延迟预算。

Add to TypingMind

概览

发布者HimanshuJ16
代码仓库Algo-Trading-Skills
技能名称co-location-provider-selection-and-network-topology
星标数
50
复刻数
7
附带文件
5
许可协议Apache-2.0
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HimanshuJ16/Algo-Trading-Skills.git /tmp/Algo-Trading-Skills
mkdir -p .claude/skills
cp -r /tmp/Algo-Trading-Skills/skills/co-location-provider-selection-and-network-topology .claude/skills/co-location-provider-selection-and-network-topology
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

一旦请求与技能匹配,模型就会自动加载 Co Location Provider Selection And Network Topology。

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

When to Use

Use this skill when deciding where to put the box for latency-sensitive or cross-venue arbitrage strategies. Placing an equities-futures arbitrage engine in Equinix NY4 (Secaucus) instead of CME's Aurora IL data centre adds thousands of microseconds of propagation delay that no amount of code optimisation recovers. The evaluator turns a candidate list into a defensible comparison: it decomposes each path into propagation, switching and cross-connect delay, computes monthly total cost of ownership (TCO), and produces a ranked, weighted latency-versus-cost score.

When NOT to Use

  • As a substitute for a measured latency figure. This is a procurement-stage model. It computes what physics and published equipment specs permit; it does not model queueing delay, congestion, microburst buffering, serialisation delay, kernel/NIC overhead, or the carrier's actual (usually undisclosed) route. Once a circuit is live, measure it — see tick-to-trade-latency-measurement and colocation-latency-budget-accounting.
  • For tick-to-trade / in-host budgeting. This skill stops at the cage door. Everything from NIC ingress to NIC egress belongs to colocation-latency-budget-accounting and strategy-latency-budget-decomposition.
  • For link-availability decisions. Ranking by mean latency says nothing about jitter or rain fade. A microwave link that is 2 ms faster and unavailable during thunderstorms is an availability decision, not a latency one: see microwave-vs-fiber-network-links-for-cross-market-latency and network-jitter-impact-on-strategy-performance.
  • When the candidate set is one facility. Scores are min-max normalised within the supplied candidate set, so a single candidate always scores 0.0. The score is a relative ranking, never an absolute grade.

Prerequisites

  • Route distance in km between each candidate facility and the target matching engine — the physical cable or line-of-sight path, not the great-circle distance. If only a straight-line distance is known, supply it and set route_circuity_factor (fiber rights-of-way typically run 1.15-1.30x straight line).
  • Link medium per path (FIBER or MICROWAVE), switch hop count, and the port-to-port latency of the switches actually deployed.
  • Monthly commercial terms per facility: rack MRC, committed kW, $/kW, and cross-connect MRC.

Units

  • All latency values are microseconds (µs); propagation constants are µs/km. Distances are km. Costs are monthly recurring in a single currency — the model does no FX conversion.
  • composite_score is a penalty in [0, 1]: lower is better. It is not a quality percentage.

Workflow

  1. Topology Definition: Define candidate FacilitySpec nodes (e.g. NY4, CARTERET, AURORA, LD4) and the NetworkLinkSpec paths from each to its target matching engine. location_code must be unique per facility — the evaluator raises rather than guess which facility a link belongs to.
  2. Choose the Propagation Constant Deliberately:
    • Fiber defaults to the conservative planning convention of $5.0,\mu\text{s/km}$ (200 km/ms). SMF-28 physics is $4.897,\mu\text{s/km}$; the default is deliberately slower so the model never promises a latency the medium cannot deliver.
    • Microwave uses $c/n_{\text{air}} = 3.3366,\mu\text{s/km}$. Do not substitute the widespread "3.33 µs/km (300 km/ms)" shorthand — 300,000 km/s exceeds $c$ and is not achievable.
    • If the carrier publishes a measured one-way figure for the circuit, set propagation_us_per_km and use it. Any override faster than light in vacuum is rejected.
  3. Latency Budget Decomposition (calculate_latency_budget):
    • $\text{Route Distance} = \text{Distance (km)} \times \text{Circuity Factor}$
    • $\text{Propagation} = \text{Route Distance} \times \text{Propagation Constant}$
    • $\text{Switching} = \text{Num Switches} \times \text{Switch Latency}$
    • $\text{Total One-Way} = \text{Propagation} + \text{Switching} + \text{Cross-Connect}$
    • total_rtt_us doubles the one-way figure and is therefore only valid for a symmetric path. If the return leg uses a different medium — the common cross-market pattern of microwave out, fiber back — call calculate_round_trip_budget(outbound, inbound) instead.
  4. TCO Calculation (calculate_facility_tco): $\text{TCO} = \text{Rack MRC} + (\text{kW} \times \text{Rate}) + \text{Cross-Connect MRC}$.
  5. Multi-Attribute Scoring (evaluate_colocation_setup): latency and TCO are min-max normalised across the rankable candidates and combined as $\text{Score} = w_{lat} \times \text{NormLatency} + w_{cost} \times \text{NormCost}$. Weights are rescaled to sum to 1, so (7, 3) and (0.7, 0.3) are identical.
  6. Read the Unranked Tail: a facility with no modelled link is returned with rank=None and avg_rtt_us=None, after the ranked entries, and a warning is logged. It is not a zero-latency winner — it is missing data. Model its links, then re-run.

Full procedure: see references/workflows.md. Standards reference: see references/standards.md. Printable pre-flight checklist: see assets/checklist.md.

Common Pitfalls

  • Assuming Vacuum Speed in Glass: Light in silica fiber travels at $c/n_g$ with $n_g \approx 1.4682$ (Corning SMF-28 at 1550 nm), i.e. $\approx 4.9,\mu\text{s/km}$ — roughly 47% slower than the $3.34,\mu\text{s/km}$ vacuum figure. Over the ~1,200 km Chicago-New Jersey corridor that is a ~1.9 ms one-way error.
  • Quoting Microwave at 300,000 km/s: The "3.33 µs/km" shorthand is faster than light in vacuum. It flatters microwave by ~4 µs on a 1,200 km corridor and, worse, normalises modelling numbers that no physical link can achieve.
  • Feeding Great-Circle Distance into a Route Model: Fiber follows highway and rail rights-of-way; microwave follows a chain of tower sites. Using a map's straight-line distance systematically understates every fiber budget by 15-30%. Set route_circuity_factor, or obtain the carrier's route km.
  • Doubling a One-Way Figure Across an Asymmetric Path: Cross-market topologies routinely run microwave in one direction and fiber in the other. total_rtt_us = 2 x one_way is wrong by the full medium delta in that case.
  • Using a Generic Switch Latency: A Layer-1 switch (Arista 7130: 4 ns port-to-port) and an ultra-low-latency L2/L3 switch (Arista 7150: 350 ns) differ by ~90x per hop. Over four hops that is 1.4 µs — larger than the entire propagation delay of an in-building cross-connect. Use the spec sheet for the hardware actually racked.
  • Treating a Missing Link as Zero Latency: Any scoring model that silently substitutes 0 for "not measured" ranks the least-understood facility first. Missing latency data must stay None and stay unranked.
  • Comparing Scores Across Runs: Normalisation is relative to the candidate set. Adding or removing a candidate changes every other candidate's score. Only compare scores computed in the same call.
  • Ignoring Equal-Length Patching: Failing to request matched-length fiber cross-connects inside a shared cage leaves microsecond-scale skew between servers that the topology model — which sees only the ordered lengths — will never show you.

Verification

  • Propagation constants: $1/c = 3.335641,\mu\text{s/km}$ (vacuum floor); microwave $= 3.336642,\mu\text{s/km}$, which equals the published $\approx 5.37,\mu\text{s}$ per statute mile; fiber physics $= 3.335641 \times 1.4682 = 4.897388,\mu\text{s/km}$.
  • Corridor check: model the ~1,200 km Aurora-Secaucus corridor. Fiber at the 5.0 µs/km convention gives $6{,}000,\mu\text{s}$ (6.00 ms) one-way; microwave gives $4{,}003.97,\mu\text{s}$ (4.00 ms). The microwave figure brackets the ~4.1 ms one-way best case widely reported for that corridor's microwave networks — a secondary-source figure this skill has not independently verified, and one that sits above the model output precisely because real routes add tower hops and radio latency the propagation term alone omits.
  • Scoring check: three facilities with RTTs of 100/550/1000 µs and TCOs of $4,000/$6,000/$3,000, scored at $w_{lat}=0.7$, $w_{cost}=0.3$, must produce penalty scores of 0.10, 0.65 and 0.70 and ranks 1, 2, 3 respectively. Flipping to $w_{cost}=1.0$ must reorder them by cost alone.
  • Run python -m unittest discover -s skills/co-location-provider-selection-and-network-topology/scripts.

Related Skills

  • microwave-vs-fiber-network-links-for-cross-market-latency
  • cross-venue-latency-arbitrage-defensive-design
  • colocation-latency-budget-accounting
  • strategy-latency-budget-decomposition
  • network-jitter-impact-on-strategy-performance

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Co Location Provider Selection And Network Topology AI 技能有什么作用?

在需要为对延迟敏感的服务器选择部署地点时使用:比较不同共置设施和场所间链路,并依据传播物理原理和已公开的设备规格,拆分单向及往返延迟预算。

为什么在 TypingMind 中使用 Co Location Provider Selection And Network Topology?

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

如何在 TypingMind 中安装 Co Location Provider Selection And Network Topology?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/HimanshuJ16/Algo-Trading-Skills/tree/main/skills/co-location-provider-selection-and-network-topology。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Co Location Provider Selection And Network Topology?

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

Co Location Provider Selection And Network Topology 可以搭配多少个 AI 模型使用?

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

Co Location Provider Selection And Network Topology AI 技能免费吗?

是的。HimanshuJ16 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

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

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

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

查看全部

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

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