Doca Firefly
NVIDIAOfficialCreated by NVIDIA
- Skill
- Tool integration
- Cloud and DevOps
- Apache-2.0
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The doca-firefly skill provides guidance for deploying and managing the DOCA Firefly Service container on BlueField DPU hardware. It focuses on configuring PTP-related subsystems, including PTP, PHC2SYS, PPS, SyncE, and the Firefly Servo, to ensure precise time synchronization. The skill covers the four primary PTP configuration axes (role, profile, domain, and interface), the necessary wiring of the BlueField PHC to host-side followers, and troubleshooting common synchronization issues. It is designed for operators managing time-sensitive workloads like SMPTE ST 2110, 5G UPF, or distributed databases that require sub-microsecond precision.
What it does
- Guides the deployment and configuration of the DOCA Firefly Service container.
- Explains the four PTP configuration axes: role, profile, domain, and interface.
- Details the integration between the BlueField PHC and host-side time followers.
- Provides troubleshooting steps for PTP synchronization failures and clock drift.
- Outlines the six internal PTP-stack subsystems managed within the Firefly container.
- Defines the operational boundary between Firefly and consumer workloads like Rivermax.
When to use it
- When deploying the DOCA Firefly Service container on BlueField Arm.
- When determining if PTP-grade time is required versus standard NTP/chrony.
- When configuring PTP roles, profiles, and domains for a specific network environment.
- When debugging PTP sync issues or host clock drift relative to the BlueField PHC.
- When pairing Firefly with time-sensitive workloads like Rivermax SMPTE.
Advantages
- Provides a structured approach to complex PTP configuration on BlueField.
- Clarifies the distinction between container-internal and host-side time synchronization.
- Offers a clear taxonomy for debugging PTP state and offset issues.
- Ensures consistent configuration of PTP axes across different deployment scenarios.
Usage examples
- “My Firefly container is running but PTP is stuck in LISTENING state.”
- The agent will guide you through checking the four PTP configuration axes (role, profile, domain, and interface) to ensure they match your network topology.
- “Firefly reports it is synced, but my host clock is still drifting.”
- The agent will help you verify the host-side follower configuration (e.g., chrony or ptp4l) to ensure it is correctly reading the disciplined BlueField PHC.
- “Do I need Firefly for my distributed application, or is chrony enough?”
- The agent will help you evaluate your time-precision requirements to decide if PTP-grade synchronization is necessary for your specific workload.
- “How do I pair Firefly with a Rivermax SMPTE workload?”
- The agent will explain how Firefly disciplines the PHC and how to correctly configure the Rivermax workload to consume that time source.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/nvidia/doca-firefly/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip doca-firefly.zip -d .agents/skills
Documentation by NVIDIA
DOCA Firefly Service
Examples
“Container green but PTP never advances past LISTENING.” — this is in scope. Check role / profile / domain / interface before changing host chrony.
“Firefly says synced but the host clock still drifts.” — wire the BlueField PHC follower; Firefly does not replace host-side chrony / ptp4l bodies.
Instructions
Follow Loading order below. Open the tasks companion for configure / sync / debug. Open the capabilities companion for PTP axes. Do not open every companion file.
Subsystem inventory. DOCA Firefly is NOT just "a PTP daemon." The shipped
doca_firefly.yamlexposes six PTP-stack subsystems via environment variables, each with its own*_STATE,*_CONFIG_FILE, and (where relevant)*_INTERFACE/*_DEVICEknobs (the count is six because the PTP Monitor subsystem ships an internalphc2sysmonitor client that is distinct from the standalone PHC2SYS subsystem — both ship in the same container image):
PTP (
PTP_STATE,PTP_INTERFACE,PTP_CONFIG_FILE) — theptp4ldaemon (or master, depending on profile) that drives the BlueField PHC.PTP Monitor (
MONITOR_STATE,MONITOR_CONFIG_FILE,MONITOR_CLIENT_TYPE,MONITOR_CLIENT_PHC2SYS_INTERFACE,MONITOR_CLIENT_CONNECTION_TIMEOUT) — the monitor server + client surface; the internalphc2sysmonitor client (MONITOR_CLIENT_TYPE=phc2sys) is a real subsystem inside Firefly, not just a host-side concern.PHC2SYS (
PHC2SYS_STATE,PHC2SYS_ARGS,PHC2SYS_CONFIG_FILE) — the container-internalphc2sysinstance (not host-only).PPS (
PPS_STATE,PPS_DEVICE) — the Pulse-Per-Second output (with the additionalenable_while_runninganddo_nothingstates beyond plain enable/disable).SyncE (
SYNCE_STATE,SYNCE_INTERFACE,SYNCE_CONFIG_FILE) — Synchronous Ethernet frequency distribution; orthogonal to PTP.Firefly Servo (
SERVO_STATE,SERVO_CONFIG_FILE) — the proprietary Firefly servo loop (alternative to the upstream linuxptp servo).The valid
PROFILEvalues are exactlydefault/media/telco-l2/custom(perdoca_firefly.yamlcomments) — the agent must not invent additional values. Subsystems configured asdefined_by_profileare controlled by the activePROFILE.Configuration-override env vars follow the pattern
CONF_<SUBSYSTEM>_<section>_<key>(e.g.CONF_PTP_global_priority1,CONF_SYNCE_global_backend,CONF_MONITOR_global_telemetry_export); these are the documented surface for overriding individual config keys without shipping a full custom config file.Configuration hierarchy: the mounted Firefly config file is mandatory and owns the primary PTP axes (role, profile, domain, interface, and transport).
CONF_<SUBSYSTEM>_<section>_<key>variables are optional, documented per-key overrides of that file; they are not a second standalone configuration model.
Where to start: This skill is for operating the DOCA Firefly
Service container, not for linking against a library. Firefly is
the PTP / PHC2SYS / PPS / SyncE / Servo / Monitor stack that
drives and observes the BlueField PTP Hardware Clock (PHC); it is
not the host-side time follower, not the consumer workload, and
not a programming surface. If the user wants to deploy the
container, open the tasks companion and start at
## configure. If the question is what shape
of service is Firefly and what PTP roles / profiles does it speak,
start at the capabilities companion. If DOCA is not installed
on the BlueField yet, route to
doca-setup/SKILL.md first. If the user's
real question is “I have a Rivermax SMPTE workload and the docs say I
need PTP”, the right pairing is this skill plus
doca-rmax/SKILL.md — Firefly disciplines
the PHC; Rivermax reads the disciplined time.
Example questions this skill answers well
The CLASSES of Firefly questions this skill is built to answer, each with one worked example. The class is the load-bearing piece; the worked example is one instance.
“Do I actually need Firefly, or is NTP / chrony good enough?” — worked example: “my distributed app is fine on chrony today; is there a reason to add PTP?”. Answered by the PTP-vs-NTP path- selection rule in the capabilities companion
the env-prep checklist in the tasks companion.
“What four PTP configuration axes do I have to decide before starting the container?” — worked example: “a SMPTE ST 2110 broadcast plant that wants Firefly in slave role on the wire-side port”. Answered by the four-axis configuration table in the capabilities companion
the PTP-config step in the tasks companion.
“Firefly's container is running but the host's time isn't following — what did I miss?” — worked example: “
ptp4l/ Firefly says it's locked butchronyc trackingon the host shows drift”. Answered by the END-TO-END time-sync discipline in the capabilities companionthe host-follower step in the tasks companion.
“PTP locks but the offset / jitter is way past spec — what's wrong with the path?” — worked example: “sync acquired but offset is in the tens of microseconds”. Answered by the PTP-aware-path rule in the capabilities companion
the layered debug ladder in the tasks companion.
“How does Firefly pair with a Rivermax SMPTE workload?” — worked example: “SMPTE ST 2110 video sender that needs to be PTP- locked”. Answered by the Rivermax-pairing rule in the capabilities companion
the pairing step in the tasks companion, which routes the Rivermax side to
doca-rmax/SKILL.mdand refuses to collapse the two services into one.
“My Firefly container starts but PTP never reaches
SLAVE/MASTERstate — was it role, domain, profile, or interface?” — worked example: “container green but the ports-state output never advances pastLISTENING”. Answered by the four-axis-mismatch rule in the capabilities companionthe layered ladder in the tasks companion.
Audience
This skill serves external operators and platform teams who deploy
the DOCA Firefly Service container to provide PTP-grade time
synchronization to time-sensitive workloads on BlueField + the host
behind it. Concretely: people running the Firefly container on
BlueField Arm, choosing its PTP role / profile / domain / interface
from the public Firefly guide, wiring the host-side follower (chrony
with the PHC source, or ptp4l reading the PHC) so the host clock
tracks the BlueField PHC, and validating the end-to-end discipline
before scaling a Rivermax, 5G UPF, financial-trading, or distributed-
database workload that depends on it.
It is not for NVIDIA developers contributing to Firefly itself,
nor a programming guide for building on DOCA libraries (see
doca-programming-guide/SKILL.md). Firefly is a service: the
operator runs a container and configures PTP; there is no
libfirefly.so to link against.
Path selection up front. Use Firefly when sub-microsecond, PTP-grade time precision is required on BlueField AND the host (SMPTE ST 2110 broadcast workloads layered on Rivermax, 5G UPF time requirements, distributed systems that need PTP-grade time, anything where NTP / chrony jitter is not tight enough). Do not reach for Firefly when NTP / chrony already meets the workload's time-precision budget, when no PTP-aware switching / boundary-clock infrastructure exists in the path, or when pure software-side time precision is sufficient — in those cases the correct answer is to keep the host's existing chrony / NTP setup and route the agent away from Firefly, not to deploy it speculatively.
When to load this skill
Load this skill when the user is doing hands-on Firefly deployment work on a BlueField where DOCA is already installed. Concretely:
Deciding whether Firefly is the right answer for the user's time-precision requirement (vs. keeping NTP / chrony on the host).
Deploying the Firefly container on BlueField Arm — choosing image source per the public DOCA Firefly Service Guide, mounting the Firefly config, and starting / stopping the container.
Choosing the four PTP configuration axes — PTP role (master / slave / boundary clock / transparent clock), profile (the
PROFILEenv var accepts EXACTLYdefault/media/telco-l2/customper the shippeddoca_firefly.yaml; these map onto industry PTP profile names:default→ IEEE 1588,media→ SMPTE 2059-2,telco-l2→ G.8275.1 only (G.8275.2 corresponds to the separatetelco-l3config, reached viacustom) — do NOT put the industry names directly into the env var), domain number, network interface — for the user's deployment.Wiring the host-side follower so the host clock tracks the BlueField PHC (chrony with the PHC source, or
ptp4l/phc2sysreading the PHC) — without this step the host clock does NOT follow the Firefly-disciplined PHC, regardless of how cleanly Firefly comes up.Pairing Firefly with a time-sensitive consumer workload (Rivermax SMPTE, 5G UPF, finance, distributed databases) and validating the end-to-end discipline.
Reading the Firefly container's logs, the PHC offset, the ports-state output, or any other documented observability surface to confirm PTP is locked.
Debugging a Firefly deployment where the container is healthy but PTP is not syncing, or PTP is syncing but the host clock is not following, or sync is up but jitter is past spec.
Do not load this skill for general DOCA orientation, install of
DOCA itself, library-API questions, or non-PTP time topics. For
those, route via
doca-public-knowledge-map/SKILL.md,
doca-setup/SKILL.md, or the matching
libs/<library> skill.
What this skill provides
This is a thin loader. Substantive material lives in two companion files:
the capabilities companion — Firefly's architecture (container that drives the BlueField PHC and speaks PTP on the wire), the four PTP configuration axes (role / profile / domain / interface, with transport as a fifth knob), the deployment shape (container on BlueField Arm per the public Container Deployment Guide), the pairing surface (Rivermax + host-side time-sync follower), the observability surface (container logs + PHC offset + ports state), the error taxonomy (four-axis-mismatch / host-follower / PTP-aware- path / container-runtime), and the safety policy (PTP-vs-NTP path selection, END-TO-END discipline, smoke-before-scale).
the tasks companion — step-by-step workflows for the in-scope Firefly verbs:
configure,build,modify,run,test,debug, plus aDeferred task verbsblock routing out-of-scope questions and aCommand appendixof recurring commands.
The skill assumes a BlueField where DOCA is already installed and
the operator has the privileges the public Firefly Service Guide
expects to pull, run, and configure containers on BlueField Arm.
It does not cover installing DOCA — that path goes through
doca-setup/SKILL.md.
What this skill deliberately does not ship
This skill is agent guidance, not a templates or sample-config bundle. To keep the boundary clean, it deliberately does not contain — and pull requests should not add:
Pre-baked Firefly configuration files (full PTP config blocks, ready-to-run role / profile / domain bundles) intended to be copy-pasted into production. PTP configuration is deployment- specific (per the user's profile, domain plan, interface naming, and upstream PTP topology); the safe answer for an external operator is to derive the config from the public Firefly Service Guide against their own deployment. The agent's job is to prescribe the procedure and the four-axis decision, not to ship a config the user might run unmodified.
Container image names, tags, or registry paths. The authoritative image source is the public DOCA Firefly Service Guide reachable through
doca-public-knowledge-map ## DOCA services(doca-public-knowledge-map/SKILL.md#doca-services); Firefly's image tag is version-bound and changes between DOCA releases. Inventing or memorizing a tag is the canonical hallucination failure mode for a service skill.Host-side chrony stanzas or
ptp4l/phc2sysconfig files. Those are host-environment-specific and live on the host, not inside the Firefly container. The skill names that the host-side follower must be wired and what its source must be (the BlueField PHC); the chrony /ptp4lconfig bodies belong to the host operator and to upstream Linux PTP documentation.A
samples/,templates/, orreference/subtree of any kind. A mock or incomplete artifact in this skill's tree, even one labeled “reference”, is misleading: operators will read it as production-ready.
Loading order
Read this skill first to confirm the user's question is in scope and that Firefly is the right answer at all (vs. keeping NTP / chrony on the host).
For Firefly's deployment shape, the four PTP configuration axes, the Rivermax + host-follower pairing surface, the error taxonomy, the observability surface, and the END-TO-END safety policy, see the capabilities companion.
For step-by-step workflows — configure, build, modify, run, test, debug — see the tasks companion.
Related skills
doca-public-knowledge-map/SKILL.md— the routing table to the public DOCA Firefly Service Guide and the rest of the public DOCA documentation set. The Firefly URL is listed under## DOCA services(doca-public-knowledge-map/SKILL.md#doca-services).doca-setup/SKILL.md— env preparation and install verification on the BlueField where the Firefly container will run, including the I have no install yet path via the public NGC DOCA container. This skill assumes its preconditions are satisfied on BlueField Arm.doca-version/SKILL.md— canonical DOCA version-handling rules. Firefly's container tag is version-bound; this skill's## Version compatibilitycross-links the four-way match rule and adds the container-tag-lags-host-package overlay.doca-structured-tools-contract/SKILL.md— the bundle's structured-tools precedence rule (detect / prefer / fall back / report). The Command appendix in the tasks companion honors this contract.doca-programming-guide/SKILL.md— general DOCA patterns. Firefly is service-shaped not library- shaped, so the build / modify / first-app pattern there does not apply directly, but the cross-library debug discipline (frontend- before-backend, env-before-program) remains useful when Firefly reports an error that originated in the container runtime or in a DOCA library it called.doca-rmax/SKILL.md— the canonical paired workload. SMPTE ST 2110 Rivermax streams depend on a Firefly-disciplined PHC; Firefly is the time-source side and Rivermax is the timing-precise data-plane side. The two skills load together for any broadcast-style deployment, and they do NOT collapse into one another — Firefly does not stream media; Rivermax does not discipline the PHC.doca-dms/SKILL.md— sibling service skill. The agent reading both skills should see the same service-skill shape (container, BlueField Arm, deployment pattern, smoke-before-scale, env preconditions, config schema) layered on top of a different per-service domain (DMS = device management via gNMI / gNOI; Firefly = time synchronization via PTP).doca-debug/SKILL.md— the cross-cutting debug ladder (install / version / build / link / runtime / program / driver). Firefly-specific debug (PTP not syncing, host clock not following, jitter past spec) overlays on top of that ladder.
Files
- ATTRIBUTION.mdAdded by AutoGineer894 B
- BENCHMARK.md9.9 KiB
- CAPABILITIES.md22.8 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md17.4 KiB
- SKILLCARD.yaml2.7 KiB
- TASKS.md29.1 KiB
- evals/evals.json2.5 KiB
- skill-card.md5.2 KiB
- skill.oms.sig5.1 KiB
CAPABILITIES.md
DOCA Firefly Service — Capabilities
Where to start: The pattern overview below names the recurring Firefly-class operational patterns. Pick the pattern first, then drill into the H2 that owns the substance. For the how of executing each pattern, jump to TASKS.md.
This file enumerates Firefly's documented capabilities, deployment
shape, configuration axes, and operational behaviors as described in
the public DOCA Firefly Service Guide. Treat it as a map of what is
documented, not a substitute for reading the live page when
configuring a real deployment. For the public URL itself, route
through
doca-public-knowledge-map ## DOCA services (doca-public-knowledge-map/SKILL.md#doca-services)
— this skill does not duplicate the URL routing.
Pattern overview
Every Firefly-class question this skill teaches resolves into one of FIVE patterns. The patterns are CLASSES — they apply across every Firefly deployment, not just one PTP role or one consumer workload.
| Firefly pattern | Class shape | Where the substance lives |
|---|---|---|
| 1. Decide whether Firefly is the right answer | PTP-grade time precision vs. chrony / NTP good enough; PTP-aware path available or not | ## Safety policy path-selection rule |
| 2. Pick the four PTP configuration axes | PTP role + profile + domain + interface (transport as fifth knob) — every axis is a mismatch hazard | ## Capabilities and modes four-axis table |
| 3. Wire the END-TO-END time-sync discipline | Firefly disciplines the BlueField PHC; the host clock follower (chrony / ptp4l) reads the PHC; the consumer workload reads the disciplined time | ## Safety policy END-TO-END rule + ## Capabilities and modes deployment shape |
| 4. Pair with a time-sensitive consumer | Rivermax SMPTE, 5G UPF, finance, distributed databases — each pairs with Firefly in the same shape (Firefly = time source; consumer = time reader) | ## Capabilities and modes pairing table |
| 5. Map a Firefly symptom back to its layer | Container-runtime vs. four-axis mismatch vs. host-follower vs. PTP-aware-path-vs-jitter — four independent layers, each with its own owner | ## Error taxonomy layered split |
Two cross-cutting rules that apply to every pattern above:
PTP is end-to-end; Firefly only owns the BlueField PHC. The most common first-time-deploy failure is "Firefly says it's locked, but my host clock / workload still drifts". That is by construction: Firefly disciplines the PHC; the host clock and the consumer workload each need their own follower wired to the PHC. Pretending Firefly alone makes the whole stack PTP-correct is the load-bearing misconception this skill exists to prevent.
Operate the documented path; do not invent one. Firefly's config schema, container image source, PTP role names, profile names, and observability surface are all documented in the public DOCA Firefly Service Guide. Quoting config keys, image tags, or CLI flags not in the public guide is the most common hallucination failure mode for this skill.
Capabilities and modes
Service shape
Firefly is a long-running container that ships from NGC and runs
on the BlueField Arm cores. The container is the daemon: it owns the
PTP state machine, drives the BlueField PHC, and speaks PTP on the
configured network interface to upstream and downstream PTP peers.
There is no host-side Firefly binary the user installs — Firefly is
the container; the host's relationship to Firefly is to read the
disciplined PHC via the host's own time-sync follower (chrony or
ptp4l / phc2sys).
Three architectural properties the operator must hold throughout:
The PHC is the boundary. Firefly drives the BlueField PTP Hardware Clock; everything else (BlueField OS clock, host OS clock, consumer workload clock) is downstream of the PHC and must be disciplined to follow it. Firefly does NOT discipline the host clock directly.
The container is the unit of deployment. Operators do not start
fireflyas a host binary; they start the Firefly container per the public Container Deployment Guide pattern (same shape as every other DOCA service container — see the siblingdoca-dms/SKILL.mdfor the same shape on a different per-service domain).PTP behavior is configured by file, not by CLI flag. The container's PTP role, profile, domain, interface, and transport are set in the documented Firefly config file the operator mounts into the container. The agent should NOT invent CLI flag names; the config file is the contract.
Deployment shape
The public Firefly Service Guide documents the container deployment
on BlueField Arm. The shape lines up with every other DOCA service
container — pull from NGC, mount the config, start under the
documented runtime (the BlueField OS's container manager per the
public Container Deployment Guide). For the canonical container-
deployment recipe shared with the other DOCA service containers,
route through
doca-public-knowledge-map ## DOCA services (doca-public-knowledge-map/SKILL.md#doca-services).
Two deployment-shape rules:
BlueField Arm only. Firefly is a BlueField-side service; it does not run on the host. The host's relationship to Firefly is via the network (PTP on the wire) and via the PHC (time follower).
One Firefly container per BlueField, with the interface set the selected role requires. A single-port role may use one wire-side interface, while a boundary-clock or other multi-port role requires the interface set defined by that role's documented recipe. Never run containers that contend for the same PHC; that is a configuration error, not a redundancy strategy.
Four-axis PTP configuration
Every Firefly deployment must commit to four PTP configuration axes
before starting the container. Get any one wrong and PTP does not
sync — the symptom is "container green, PTP never advances past
LISTENING", and the diagnosis walks the four axes in order. The
axes are jointly documented in the public Firefly Service Guide;
quote the exact valid values from there rather than from memory.
| Axis | Class shape | Mismatch symptom | Where to look |
|---|---|---|---|
| PTP role | Master (best clock on segment); slave (follows an upstream master); boundary clock (slave-on-one-port + master-on-another, propagates time across segments); transparent clock (forwards PTP with residence-time correction) | Container starts, ports-state never advances; or two masters on the same segment fight | Public Firefly Service Guide's PTP role section |
| Profile | PROFILE env var accepts EXACTLY default / media / telco-l2 / custom (per the comments in the doca_firefly.yaml shipped with the service). These four env-var values map onto the industry-standard PTP profile names: default → IEEE 1588 default profile; media → SMPTE 2059-2 (broadcast); telco-l2 → ITU-T G.8275.1 ONLY (telecom full timing over L2 / Ethernet; the bundled ptp4l-telco-l2.conf extends G.8275.1.cfg); custom → whatever the user's custom config file specifies. ITU-T G.8275.2 (telecom partial timing) corresponds to the separate telco-l3 config (ptp4l-telco-l3.conf extends G.8275.2.cfg), which is NOT an accepted PROFILE env-var value and is reached only via custom. Do NOT put the industry-standard names (SMPTE 2059-2, G.8275.1, G.8275.2, IEEE 1588) directly into the PROFILE env var — those are NOT accepted env-var values | Profiles silently disagree with the upstream master; sync acquires then breaks | shipped doca_firefly.yaml PROFILE comments + Public Firefly Service Guide's profile section |
| Domain number | PTP allows multiple time domains on the same network; only peers on the same domain see each other | Container green, zero PTP peers seen even though tcpdump shows PTP frames on the wire | Public Firefly Service Guide's domain section |
| Network interface | Which BlueField port carries PTP — typically the wire-side port, not the management port; must be a port with hardware PTP timestamping enabled on the NIC | Container green, no PTP traffic egresses; or PTP traffic egresses but jitter is huge because timestamping is software-only | Public Firefly Service Guide's interface section |
| Transport (fifth knob) | L2 multicast / L3 unicast / L3 multicast; must match the upstream PTP topology | Frames on the wire but never matched by upstream — the upstream is L2 multicast and Firefly is configured L3 unicast (or vice versa) | Public Firefly Service Guide's transport section |
The agent's rule: the four-axis decision precedes everything else. A deployment that starts the container before the operator can name the role, profile, domain, and interface is going to debug the wrong axis first. Force the decision up front.
Pairing with time-sensitive consumers
Firefly is the time-source side of every supported pairing. The consumer workload is the time-reader side. Both sides must be wired; Firefly alone is not a finished deployment.
| Consumer workload | Why it needs Firefly | Pairing shape |
|---|---|---|
| Broadcast SMPTE ST 2110 on Rivermax | SMPTE 2110 mandates PTP-locked time on every endpoint that emits or receives video / audio / ancillary streams; the Rivermax SDK assumes the PHC is being disciplined externally | Firefly drives the PHC with the SMPTE 2059-2 profile; the Rivermax-using workload reads the disciplined PHC via doca-rmax/SKILL.md; the host clock follower wires chrony or ptp4l to the PHC so the host OS clock also follows. See doca-rmax CAPABILITIES.md ## Safety policy (doca-rmax/CAPABILITIES.md#safety-policy) for the Rivermax-side precondition matrix |
| 5G UPF (5G User Plane Function) | 5G timing requirements (G.8275.1 / G.8275.2 telecom profiles) demand PTP-grade time | Firefly drives the PHC with the G.8275.x profile; the UPF workload reads disciplined time from the host clock follower wired to the PHC |
| Financial trading | Regulatory time-stamping requirements (e.g. sub-microsecond time accuracy on trade records) | Firefly drives the PHC with the user's chosen profile; trading process reads disciplined time |
| Distributed databases needing high-precision time | Conflict ordering, distributed transactions, and externally consistent reads benefit from PTP-grade time | Same shape — Firefly drives PHC; DB process reads disciplined time |
The agent's rule: when the user mentions Rivermax / SMPTE / 5G UPF / finance / distributed time precision, name Firefly and the consumer pairing and the host-side follower in the same breath. Naming only one of the three is how end-to-end discipline gets silently broken.
Configuration model
The Firefly container is configured by a documented config file
that the operator mounts into the container at the path the public
guide names. The config file declares the four-axis PTP
configuration (role, profile, domain, interface) plus the transport
choice and any advanced PTP knobs the user's profile expects. Quote
config keys from the live public Firefly Service Guide; do not infer
them from generic ptp4l or linuxptp knowledge — Firefly's config
schema is documented per the public guide and may not be 1:1 with
upstream PTP daemons.
Version compatibility
For the canonical DOCA version-detection chain, the four-way match
rule, NGC container semantics, and the headers-win-over-docs rule,
see doca-version/SKILL.md. The body lives
there; this skill does not duplicate it.
The Firefly-specific overlay is:
Firefly is a NGC container; the container tag is the runtime version anchor. Same pattern as
doca-dms/SKILL.md: the Firefly container ships from NGC with its own tag that may lag the host's DOCA package version, and the relevant version anchor for an as-deployed Firefly is the container tag pulled, notpkg-config --modversionon the host. Always quote both versions when the user reports a Firefly behavior; if they diverge, route todoca-version TASKS.md ## debug(doca-version/TASKS.md#debug) layer 2 before diagnosing the Firefly behavior itself.Profile support is version-bound. Profiles like SMPTE 2059-2 / G.8275.1 / G.8275.2 are jointly conditional on the Firefly container version and the BlueField OS / firmware version. When the user asks "does this profile work on my deployment?", the authoritative answer is the public Firefly Service Guide page whose version matches the container tag pulled.
Read the public Firefly Service Guide version header. The guide is versioned; the on-page version must match the container tag the operator is using. A mismatch between the docs version and the container tag is the canonical "my config doesn't work even though it matches the docs" failure mode.
Take the YAML from the NGC Firefly resource. The shared
doca_container_configsbundle from the Container Deployment Guide has carried a stale Firefly YAML (image1.5.0-doca2.9.0); the NGC Firefly resource carries the YAML for the current release. Check theimage:tag before deploying. PTP also depends on firmware 24.34.1002 or higher,REAL_TIME_CLOCK_ENABLE, OVS hardware offload with TX timestamping, and NTP disabled on the BlueField — see TASKS.md ## configure step 2.
Error taxonomy
Firefly errors fall into five layers, each with its own owner. The agent's rule: walk the layers in order; do NOT skip down without clearing the layer above.
| Layer | Symptom | Root cause class | Where to fix |
|---|---|---|---|
| 1. Container runtime | Container fails to start, restart-loops, exits immediately, image pull fails | Image tag wrong, registry credentials missing, BlueField runtime not configured to run this container, config file mount path wrong | BlueField container runtime + the public Container Deployment Guide via doca-public-knowledge-map/SKILL.md |
| 2. Four-axis PTP config | Container green, PTP never advances past LISTENING; or no peers seen on the wire; or wrong upstream master selected | One or more of the four axes (role / profile / domain / interface) mismatches the upstream PTP infrastructure | ## Capabilities and modes four-axis table; the fix is config, not container |
| 3. Host-side follower | PTP locks (Firefly says synced; PHC offset is tight); host OS clock drifts; chronyc tracking or date shows seconds-of-drift | Host-side chrony / ptp4l / phc2sys not configured to follow the PHC; the BlueField PHC is in sync but the host has not been told to read it | Host's chrony / ptp4l / phc2sys configuration (upstream Linux PTP / chrony docs) — Firefly is correct |
| 4. PTP-aware path | PTP reaches SLAVE/MASTER, all four axes match the peer, but offset and jitter remain past the profile's spec | First verify domain, transport, profile compatibility, and peer identity from config plus captured PTP traffic. Layer 2 normally stalls at LISTENING/UNCALIBRATED or sees zero peers; layer 4 reaches a synchronized state with persistently bad metrics, indicating variable path latency from a non-PTP-aware switch. | Network-side fix: insert boundary clocks at the non-PTP-aware switch, or replace the switch with a PTP-aware one — Firefly cannot fix a non-PTP-aware path from the endpoint |
| 5. Consumer workload | Firefly correct; PHC correct; host clock follows PHC; but the consumer workload still reports time drift | The workload reads its own time source instead of the disciplined system clock; e.g., a Rivermax workload that was never wired to the disciplined PHC | The consumer-side skill — for Rivermax, doca-rmax CAPABILITIES.md ## Safety policy (doca-rmax/CAPABILITIES.md#safety-policy); for 5G UPF or a distributed DB, the workload's own docs |
The agent's rule: never recommend a Firefly config change without first identifying which of the five layers is the cause. The most common debug failure for this skill is misreading a layer-3 symptom (host clock drifts) as a layer-2 problem (Firefly config) and rewriting the Firefly config when the fix is on the host.
Observability
Documented observability surfaces the agent should reach for, in order of how cheaply they answer the "is Firefly actually working" question:
Container state. First — is the Firefly container actually running? The BlueField container manager reports container status, restart count, and the container's stdout / stderr log stream. A restart loop is a layer-1 (container runtime) symptom per
## Error taxonomy; diagnose it before touching PTP config.Firefly's own logs. The container's stdout (and any documented log destination the public guide specifies) is the primary Firefly observability surface. Look for the PTP state machine's transitions (
LISTENING → UNCALIBRATED → SLAVE,LISTENING → MASTER, etc.) and for the documented error / warning lines. The agent should NOT invent log line formats; quote what the live container is emitting.PHC offset and frequency. The BlueField PHC's offset (relative to its master) and frequency adjustment are the numeric proof that PTP is disciplining the clock. The PHC is a Linux-kernel PTP clock and is read with the standard upstream PTP tooling (e.g.
pmc -u -b 0 'GET CURRENT_DATA_SET',phc_ctl /dev/ptpN get); the agent should defer to upstream Linux PTP documentation for the exact invocation rather than memorize one.Host-side follower status. Whatever follower the host is running (chrony with the PHC source, or
ptp4l/phc2sys) exposes its own status —chronyc tracking,chronyc sources,pmcagainst the host-side PTP daemon. A healthy Firefly + unhealthy host follower = layer-3 symptom per the error taxonomy.PTP-on-the-wire confirmation. When the agent suspects a four-axis mismatch (layer 2), the cheapest confirmation is a
tcpdumpfor PTP traffic on the configured interface — does Firefly egress PTP frames at all, are any PTP frames ingressing from a master, do the domain numbers in the frames match the configured domain. The agent should defer to upstream Linux PTP /tcpdumpdocumentation for the exact filter; the load-bearing point is "go look at the wire before changing config a fifth time".
For the cross-library debug-time observability (DOCA_LOG_LEVEL,
--sdk-log-level, the trace build flavor — relevant when Firefly
calls into a DOCA library that emits structured logs), see
doca-debug CAPABILITIES.md ## Observability (doca-debug/CAPABILITIES.md#observability).
Safety policy
Overlay on the bundle-wide hardware-safety meta-policy. The rules below are this skill's per-artifact overlay on the cross-cutting rules in
doca-hardware-safetyCAPABILITIES.md ## Safety policy (doca-hardware-safety/CAPABILITIES.md#safety-policy) (specifically ### Per-artifact overlay pattern (doca-hardware-safety/CAPABILITIES.md#per-artifact-overlay-pattern)). When the two layers disagree, the stricter wins; when either layer says STOP, the agent stops.
Firefly's safety surface is path-selection first, then the END-TO-END discipline, then the smoke-before-scale rule, then the operational disciplines around the container itself.
Path-selection rule (load-bearing). Firefly is the right answer only when PTP-grade time precision is actually required AND a PTP-aware path is actually available. Concretely:
Use Firefly when the consumer workload (SMPTE ST 2110 on Rivermax, 5G UPF, financial trading, sub-microsecond distributed-database time) genuinely needs PTP-grade time precision AND the network between Firefly and the PTP master is PTP-aware (PTP-aware switches in the path, or boundary clocks where the switches are not PTP-aware).
Do NOT reach for Firefly when chrony / NTP already meets the workload's time-precision budget (which is typical for normal workloads), when no PTP-aware switching / boundary-clock infrastructure exists in the path, or when pure software-side time precision is sufficient. In those cases the right answer is to keep the host's existing chrony / NTP setup and explicitly tell the user "Firefly is the wrong tool here; here's why" — not to deploy it speculatively and end up debugging PTP that was never needed.
END-TO-END discipline (load-bearing). Firefly disciplines the BlueField PHC. The host clock follower (chrony with the PHC source, or
ptp4l/phc2sysreading the PHC) is the operator's responsibility. The consumer workload's wiring to the disciplined time (e.g. Rivermax reading the PHC) is also the operator's responsibility. A Firefly deployment that names only the BlueField side and stops there is a deployment that will fail silently at the host or workload, not a deployment that works. The agent must always teach the three legs together: BlueField PHC + host clock follower + consumer workload.Smoke before scale. Before pointing the time-sensitive consumer workload at the disciplined PHC, the agent must walk the user through a smoke: Firefly container running, PTP advanced to
SLAVE/MASTER, PHC offset within profile spec, host follower'schronyc tracking/pmcstatus reporting Reference ID = PHC and a tight offset. Only then layer the consumer workload on top. A workload that comes up before the smoke passes silently uses a wrong time source, and the bisection across Firefly / host / workload is much harder.One Firefly container per BlueField, using the interface set the selected role requires. A single-port role may use one interface; a boundary-clock or other documented multi-port role may use its required set. Never run containers that contend for the same PHC. PTP redundancy is a network-side concern (multiple PTP masters, BMCA election), not a reason for competing Firefly containers.
Don't paper over a non-PTP-aware path. When the symptom is "sync acquired but jitter is way past spec" and the layer is "a non-PTP-aware switch in the path" per
## Error taxonomy, the honest answer is "the network path doesn't support the precision you asked for; the fix is a PTP-aware switch or boundary clocks, not a Firefly config knob". Silently turning down the user's precision expectation, or pretending a Firefly knob can fix a non-PTP-aware switch, is a user-visible regression dressed up as helpfulness.
Public-source pointer
The single canonical public source for Firefly is the DOCA
Firefly Service Guide, reachable through
doca-public-knowledge-map ## DOCA services (doca-public-knowledge-map/SKILL.md#doca-services).
Verify that the version of the guide matches the Firefly container
tag pulled on the BlueField — Firefly's config surface, supported
profiles, and observability output are documented to evolve, so
config keys and profile names can change between releases.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
The author says: BlueField-Arm-only DOCA service container; pulled from NVIDIA NGC and started under the BlueField OS container runtime. Host-side install is irrelevant. Requires a reachable PTP master (or runs as the master itself) and a PTP-aware network path; the host-side time follower (chrony / ptp4l / phc2sys reading the BlueField PHC) is also operator-owned. The validation steps require a live DOCA install.
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- NVIDIA
- Publisher
- NVIDIA (Official)
- Source
- NVIDIA/skills · skills/doca-firefly · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download doca-firefly.zip