Token导航 LogoToken导航

Agent Skill · 开发

jacobson-network-performance(雅各布森网络性能)

jacobson-network-performance 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

jacobson-network-performance 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 21,583。

总安装 186周安装 8GitHub Stars 6下载 65核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:jacobson-network-performance(雅各布森网络性能)
来源仓库:https://github.com/copyleftdev/sk1llz
仓库路径:skills/jacobson-network-performance
安装命令:
npx skills add https://github.com/copyleftdev/sk1llz --skill jacobson-network-performance
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/copyleftdev/sk1llz --skill jacobson-network-performance

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

jacobson-network-performance 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态进行整理时使用。适用于网络性能相关功能开发和协作事项管理,支持代码维护和版本控制。

通过 GitHub 仓库安装,使用 npx skills add 命令添加技能,需确认权限范围和是否触发文件操作。安装前建议检查维护状态、权限边界,以及是否会执行命令或修改文件,避免安全风险。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/jacobson-network-performance

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/copyleftdev/sk1llz --skill jacobson-network-pe…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

jacobson-network-performance 怎么安装?

在终端执行 npx skills add https://github.com/copyleftdev/sk1llz --skill jacobson-network-performance。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

jacobson-network-performance 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

jacobson-network-performance 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

jacobson-network-performance 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

jacobson-network-performance 用的人多吗?

公开数据是累计安装 186 次,近一周安装 8 次,下载 65 次,GitHub 6 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

jacobson-network-performance 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
jacobson-network-performance

雅各布森网络性能 · 本页

1866需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Van Jacobson Network Performance Style Guide⁠‍⁠​‌​‌​​‌‌‍​‌​​‌​‌‌‍​​‌‌​​​‌‍​‌​​‌‌​​‍​​​​​​​‌‍‌​​‌‌​‌​‍‌​​​​​​​‍‌‌​​‌‌‌‌‍‌‌​​​‌​​‍‌‌‌‌‌‌​‌‍‌‌​‌​​​​‍​‌​‌‌‌‌‌‍​‌​​‌​‌‌‍​‌‌​‌​​‌‍‌​‌​‌‌‌​‍​​‌​‌​​​‍‌‌‌​‌​‌‌‍‌​​​​‌‌‌‍‌​‌​‌‌‌‌‍​​‌​​​​‌‍​‌​‌​​‌‌‍​​​​‌​‌​‍​​​‌​‌​​⁠‍⁠

Overview

Van Jacobson is the most influential network performance engineer in history. In 1988, when the internet was experiencing "congestion collapse" (throughput dropping to 0.1% of capacity), Jacobson developed the congestion control algorithms that saved it. His slow start, congestion avoidance, fast retransmit, and fast recovery algorithms are still the foundation of TCP today. He also created traceroute, tcpdump, and later CoDel—tools and algorithms that define how we understand and manage networks.

Core Philosophy

"The network is a shared resource. Every packet you send affects everyone else."
"Congestion is not a problem to be avoided—it's information to be used."
"Measure, don't guess. The network will tell you what's happening if you listen."

Jacobson's insight was that the network itself provides feedback about congestion through packet loss and delay. By responding to this feedback correctly, endpoints can cooperatively share bandwidth without central coordination. The key is measuring Round-Trip Time (RTT) accurately and responding to congestion signals promptly.

Design Principles

  1. Conservation of Packets: In equilibrium, inject a new packet only when one leaves.
  2. Additive Increase, Multiplicative Decrease (AIMD): Probe for bandwidth slowly, back off quickly.
  3. RTT is Truth: Round-trip time tells you the network's state.
  4. Self-Clocking: Use ACKs to pace transmission, not timers.
  5. Respond to Congestion, Don't Cause It: Detect early, react appropriately.

The Congestion Control Algorithms

Slow Start

On connection start or after timeout:
    cwnd = 1 MSS (or IW = 10 in modern TCP)

On each ACK received:
    cwnd = cwnd + MSS  (exponential growth)

Until:
    cwnd >= ssthresh  →  enter Congestion Avoidance
    OR packet loss    →  enter Fast Recovery
Slow Start Visualization:

RTT 1:  [1]                           cwnd = 1
RTT 2:  [2][3]                        cwnd = 2
RTT 3:  [4][5][6][7]                  cwnd = 4
RTT 4:  [8][9][10][11][12][13][14][15] cwnd = 8
        ↑
        Exponential growth: doubles each RTT

Congestion Avoidance

When cwnd >= ssthresh:

On each ACK received:
    cwnd = cwnd + MSS * (MSS / cwnd)  (linear growth)

    Equivalently: cwnd increases by 1 MSS per RTT

On packet loss (3 duplicate ACKs):
    ssthresh = cwnd / 2
    cwnd = ssthresh + 3 MSS
    Enter Fast Recovery

On timeout:
    ssthresh = cwnd / 2
    cwnd = 1 MSS
    Enter Slow Start
Congestion Avoidance Visualization:

cwnd
  ^
  |         /\
  |        /  \        /\
  |       /    \      /  \
  |      /      \    /    \
  |     /        \  /      \
  |    /          \/        \
  |   /                      ↓ loss: cwnd = cwnd/2
  |  / ← slow start
  | /
  +---------------------------------> time
     ssthresh

Fast Retransmit and Fast Recovery

On receiving 3 duplicate ACKs (same ACK number):
    # Packet was likely lost, not delayed

    ssthresh = cwnd / 2
    cwnd = ssthresh + 3 MSS  (inflate for packets in flight)
    Retransmit the missing segment

On each additional duplicate ACK:
    cwnd = cwnd + MSS  (keep inflating)

On new ACK (acknowledges new data):
    cwnd = ssthresh  (deflate to new window)
    Enter Congestion Avoidance

RTT Estimation

Jacobson's Algorithm

# Jacobson's RTT estimator (RFC 6298)

class RTTEstimator:
    """
    Jacobson's algorithm for RTT estimation.
    The foundation of all TCP timing.
    """

    def __init__(self):
        self.srtt = None      # Smoothed RTT
        self.rttvar = None    # RTT variance
        self.rto = 1.0        # Retransmission timeout

        # Constants (from RFC 6298)
        self.alpha = 1/8      # SRTT smoothing factor
        self.beta = 1/4       # RTTVAR smoothing factor
        self.K = 4            # RTO variance multiplier
        self.G = 0.001        # Clock granularity (1ms)

    def update(self, measured_rtt: float):
        """
        Update RTT estimate with new measurement.
        """
        if self.srtt is None:
            # First measurement
            self.srtt = measured_rtt
            self.rttvar = measured_rtt / 2
        else:
            # Jacobson's algorithm
            # RTTVAR = (1 - beta) * RTTVAR + beta * |SRTT - R'|
            self.rttvar = (1 - self.beta) * self.rttvar + \
                          self.beta * abs(self.srtt - measured_rtt)

            # SRTT = (1 - alpha) * SRTT + alpha * R'
            self.srtt = (1 - self.alpha) * self.srtt + \
                        self.alpha * measured_rtt

        # RTO = SRTT + max(G, K * RTTVAR)
        self.rto = self.srtt + max(self.G, self.K * self.rttvar)

        # Clamp RTO to reasonable bounds
        self.rto = max(1.0, min(60.0, self.rto))

        return self.rto

    def timeout_occurred(self):
        """
        Double RTO on timeout (exponential backoff).
        """
        self.rto = min(60.0, self.rto * 2)

Karn's Algorithm

# Karn's algorithm: Don't update RTT from retransmitted segments

class KarnRTTEstimator(RTTEstimator):
    """
    Karn's algorithm: only measure RTT from non-retransmitted segments.
    Avoids ambiguity about which transmission the ACK is for.
    """

    def __init__(self):
        super().__init__()
        self.retransmitted = set()

    def send_segment(self, seq_num: int, is_retransmit: bool):
        """Track which segments are retransmits."""
        if is_retransmit:
            self.retransmitted.add(seq_num)
        else:
            self.retransmitted.discard(seq_num)

    def receive_ack(self, ack_num: int, measured_rtt: float):
        """
        Only update RTT if segment wasn't retransmitted.
        """
        if ack_num in self.retransmitted:
            # Ambiguous: was this ACK for original or retransmit?
            # Don't update RTT, but do clear the retransmit flag
            self.retransmitted.discard(ack_num)
            return None
        else:
            # Safe to update RTT
            return self.update(measured_rtt)

When Engineering Networks

Always

  • Measure RTT continuously—it's your primary signal
  • Respond to packet loss by reducing rate
  • Use AIMD for stable convergence
  • Implement exponential backoff on timeouts
  • Consider the network as a shared resource
  • Test under realistic congestion conditions

Never

  • Send faster than ACKs arrive (violates self-clocking)
  • Ignore packet loss (the network is telling you something)
  • Use fixed timeouts (RTT varies enormously)
  • Assume the network is empty (others share it)
  • Measure RTT from retransmits (Karn's algorithm)
  • React to single events (smooth your signals)

Prefer

  • RTT-based signals over loss-based (less destructive)
  • Gradual probing over aggressive sending
  • Self-clocking over timer-based pacing
  • Smooth estimates over instantaneous values
  • Multiplicative decrease over additive (stability)
  • End-to-end measurement over assumptions

Code Patterns

TCP Congestion Control Implementation

class JacobsonCongestionControl:
    """
    Jacobson's TCP congestion control.
    The algorithm that saved the internet.
    """

    def __init__(self, mss: int = 1460):
        self.mss = mss
        self.cwnd = mss  # Congestion window
        self.ssthresh = 65535  # Slow start threshold
        self.state = 'SLOW_START'
        self.dup_ack_count = 0
        self.rtt_estimator = RTTEstimator()

    def on_ack(self, bytes_acked: int, is_duplicate: bool, rtt: float = None):
        """
        Process an ACK.
        """
        if rtt is not None:
            self.rtt_estimator.update(rtt)

        if is_duplicate:
            return self._on_duplicate_ack()
        else:
            self.dup_ack_count = 0
            return self._on_new_ack(bytes_acked)

    def _on_new_ack(self, bytes_acked: int):
        """Handle new ACK (acknowledges new data)."""

        if self.state == 'SLOW_START':
            # Exponential growth
            self.cwnd += self.mss

            if self.cwnd >= self.ssthresh:
                self.state = 'CONGESTION_AVOIDANCE'

        elif self.state == 'CONGESTION_AVOIDANCE':
            # Linear growth: +1 MSS per RTT
            # Approximated as: cwnd += MSS * (MSS / cwnd) per ACK
            self.cwnd += self.mss * self.mss // self.cwnd

        elif self.state == 'FAST_RECOVERY':
            # Exit fast recovery
            self.cwnd = self.ssthresh
            self.state = 'CONGESTION_AVOIDANCE'

        return {'cwnd': self.cwnd, 'state': self.state}

    def _on_duplicate_ack(self):
        """Handle duplicate ACK."""
        self.dup_ack_count += 1

        if self.state == 'FAST_RECOVERY':
            # Inflate cwnd for each dup ACK
            self.cwnd += self.mss

        elif self.dup_ack_count == 3:
            # Enter fast recovery
            self.ssthresh = max(self.cwnd // 2, 2 * self.mss)
            self.cwnd = self.ssthresh + 3 * self.mss
            self.state = 'FAST_RECOVERY'
            return {'retransmit': True, 'cwnd': self.cwnd}

        return {'cwnd': self.cwnd, 'state': self.state}

    def on_timeout(self):
        """Handle retransmission timeout."""
        # Timeout is severe: go back to slow start
        self.ssthresh = max(self.cwnd // 2, 2 * self.mss)
        self.cwnd = self.mss
        self.state = 'SLOW_START'
        self.dup_ack_count = 0
        self.rtt_estimator.timeout_occurred()

        return {'retransmit': True, 'cwnd': self.cwnd, 'rto': self.rtt_estimator.rto}

    def bytes_in_flight_limit(self) -> int:
        """Maximum bytes allowed in flight."""
        return self.cwnd

Traceroute Implementation

class Traceroute:
    """
    Jacobson's traceroute: discover the path packets take.
    Uses TTL expiration to elicit ICMP responses from routers.
    """

    def __init__(self,
                 target: str,
                 max_hops: int = 30,
                 probes_per_hop: int = 3,
                 timeout: float = 5.0):
        self.target = target
        self.max_hops = max_hops
        self.probes = probes_per_hop
        self.timeout = timeout

    def trace(self) -> List[Hop]:
        """
        Trace the route to target.
        """
        hops = []
        target_reached = False

        for ttl in range(1, self.max_hops + 1):
            hop_results = []

            for probe in range(self.probes):
                result = self._send_probe(ttl)
                hop_results.append(result)

                if result.reached_target:
                    target_reached = True

            hops.append(Hop(
                ttl=ttl,
                probes=hop_results,
                addr=self._most_common_addr(hop_results),
            ))

            if target_reached:
                break

        return hops

    def _send_probe(self, ttl: int) -> ProbeResult:
        """
        Send a single probe with given TTL.
        """
        # Create UDP or ICMP packet with specified TTL
        sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        sock.setsockopt(socket.IPPROTO_IP, socket.IP_TTL, ttl)
        sock.settimeout(self.timeout)

        # Use high port unlikely to be in use
        dest_port = 33434 + ttl

        start_time = time.time()

        try:
            sock.sendto(b'', (self.target, dest_port))

            # Wait for ICMP response
            icmp_sock = socket.socket(socket.AF_INET, socket.SOCK_RAW,
                                      socket.IPPROTO_ICMP)
            icmp_sock.settimeout(self.timeout)

            data, addr = icmp_sock.recvfrom(1024)
            rtt = (time.time() - start_time) * 1000  # ms

            icmp_type = data[20]  # ICMP type in IP payload

            if icmp_type == 11:  # Time Exceeded
                return ProbeResult(addr=addr[0], rtt=rtt, reached_target=False)
            elif icmp_type == 3:  # Destination Unreachable (we reached it!)
                return ProbeResult(addr=addr[0], rtt=rtt, reached_target=True)

        except socket.timeout:
            return ProbeResult(addr=None, rtt=None, reached_target=False)

        finally:
            sock.close()

Network Diagnostic Tools

class NetworkDiagnostics:
    """
    Jacobson-style network diagnostics.
    Measure, don't guess.
    """

    def measure_bandwidth_delay_product(self,
                                         rtt_ms: float,
                                         bandwidth_mbps: float) -> int:
        """
        Calculate BDP: the amount of data "in flight" for full utilization.

        BDP = RTT × Bandwidth

        This determines optimal buffer and window sizes.
        """
        rtt_seconds = rtt_ms / 1000
        bandwidth_bytes_per_sec = bandwidth_mbps * 1_000_000 / 8

        bdp_bytes = int(rtt_seconds * bandwidth_bytes_per_sec)

        return bdp_bytes

    def diagnose_congestion(self,
                             samples: List[RTTSample]) -> CongestionDiagnosis:
        """
        Diagnose network congestion from RTT samples.
        """
        if len(samples) < 10:
            return CongestionDiagnosis(status='insufficient_data')

        rtts = [s.rtt for s in samples]
        min_rtt = min(rtts)
        avg_rtt = sum(rtts) / len(rtts)
        max_rtt = max(rtts)

        # Buffering = avg_rtt - min_rtt
        buffering_delay = avg_rtt - min_rtt

        # Jitter = variance in RTT
        variance = sum((r - avg_rtt) ** 2 for r in rtts) / len(rtts)
        jitter = variance ** 0.5

        # Diagnose
        if buffering_delay > min_rtt:
            status = 'severe_buffering'
            recommendation = 'Reduce buffer sizes or apply AQM'
        elif buffering_delay > min_rtt * 0.5:
            status = 'moderate_buffering'
            recommendation = 'Consider AQM (CoDel/fq_codel)'
        elif jitter > min_rtt * 0.3:
            status = 'high_jitter'
            recommendation = 'Check for competing traffic or poor link'
        else:
            status = 'healthy'
            recommendation = 'Network performing well'

        return CongestionDiagnosis(
            status=status,
            min_rtt=min_rtt,
            avg_rtt=avg_rtt,
            buffering_delay=buffering_delay,
            jitter=jitter,
            recommendation=recommendation,
        )

    def estimate_available_bandwidth(self,
                                      packet_pairs: List[PacketPair]) -> float:
        """
        Estimate available bandwidth using packet pair technique.
        """
        # Dispersion = time between arrivals of back-to-back packets
        # Bandwidth = packet_size / dispersion

        bandwidths = []
        for pair in packet_pairs:
            if pair.dispersion > 0:
                bw = pair.packet_size / pair.dispersion
                bandwidths.append(bw)

        if not bandwidths:
            return 0.0

        # Use median to filter outliers
        bandwidths.sort()
        median_idx = len(bandwidths) // 2
        return bandwidths[median_idx]

CoDel (Controlled Delay)

class CoDel:
    """
    CoDel: Controlled Delay AQM.
    Jacobson & Nichols' solution to bufferbloat.

    Key insight: control delay, not queue length.
    """

    def __init__(self,
                 target_delay_ms: float = 5.0,
                 interval_ms: float = 100.0):
        self.target = target_delay_ms
        self.interval = interval_ms

        self.first_above_time = None
        self.drop_next = 0
        self.count = 0
        self.dropping = False

    def should_drop(self, packet: Packet, now_ms: float) -> bool:
        """
        Decide whether to drop a packet.

        CoDel only drops when queue delay persistently exceeds target.
        """
        sojourn_time = now_ms - packet.enqueue_time

        if sojourn_time < self.target:
            # Good: delay below target
            self.first_above_time = None
            return False

        # Delay exceeds target
        if self.first_above_time is None:
            # First time above target
            self.first_above_time = now_ms
            return False

        if now_ms - self.first_above_time < self.interval:
            # Haven't been above target long enough
            return False

        # Persistent high delay: start/continue dropping
        if not self.dropping:
            self.dropping = True
            self.count = 1
            self.drop_next = now_ms + self.interval
            return True

        if now_ms >= self.drop_next:
            self.count += 1
            # Decrease interval: drop more aggressively
            self.drop_next = now_ms + self.interval / (self.count ** 0.5)
            return True

        return False

    def dequeue(self, queue: Queue, now_ms: float) -> Optional[Packet]:
        """
        Dequeue with CoDel logic.
        """
        packet = queue.peek()
        if packet is None:
            self.dropping = False
            return None

        if self.should_drop(packet, now_ms):
            queue.pop()  # Drop this packet
            # Try next packet
            return self.dequeue(queue, now_ms)

        return queue.pop()

Mental Model

Jacobson approaches network performance by asking:

  1. What does the RTT tell me? It's the network's heartbeat
  2. Is there packet loss? The network signaling congestion
  3. Am I being fair? Others share this resource
  4. Am I measuring or guessing? Always measure
  5. What's the delay vs. throughput tradeoff? Optimize for the use case

The Network Performance Checklist

□ Measure RTT continuously and accurately
□ Respond to congestion signals (loss, delay)
□ Use AIMD for stable convergence
□ Implement proper timeout calculation (Jacobson's algorithm)
□ Follow Karn's algorithm for retransmit RTT
□ Understand your bandwidth-delay product
□ Check for bufferbloat (RTT under load vs idle)
□ Use appropriate queue management (CoDel/fq_codel)

Signature Jacobson Moves

  • Slow start and congestion avoidance
  • Fast retransmit and fast recovery
  • RTT estimation with variance (Jacobson's algorithm)
  • Self-clocking via ACK pacing
  • AIMD (Additive Increase, Multiplicative Decrease)
  • CoDel active queue management
  • traceroute and tcpdump
  • Conservation of packets principle

平台分布

Codex

35.99%
按下载量换算23

Claude

28.07%
按下载量换算18

Cursor

18.39%
按下载量换算12

Gemini CLI

8.43%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills