Skip to content
P
Personal workspaceYour services, together
WorkspaceDocumentation

IBRL OVERLAY · DOCUMENTATION

IBRL overlay documentation

Policy-routed UDP delivery across measured links with Reed-Solomon FEC, cryptographic hop proofs, and metered USD relay billing.

Simple USD billingRelay hops charge your prepaid USD account balance at $0.75/TB suggested ($3.00/TB hard cap per hop) based strictly on verified delivered bytes.

01 · ARCHITECTURE & WHO NEEDS IT

How IBRL works (and whether you need to set it up)

IBRL (Internet Bandwidth Resource Layer) runs a decentralized UDP mesh over measured links. Every node acts simultaneously as a sender, relay, and receiver over one UDP socket, advertising signed beacons with region, ASN, queue depth, and measured RTT/loss.

1 · S3 & PipeBox usersAutomatic — zero setup. Storage routers already transport internal /v1/cache replication and reads over IBRL using router credit.
2 · Gateways & streamsOpt-in for apps and file streams. Add USD credit under Billing, sign a PayerGrant in your browser wallet or CLI, and run ibrl-node.
3 · Firestarter relaysOpt-in to earn USD per verified relayed byte by binding FIRESTARTER_IBRL_BIND on an eligible enrolled Firestarter storage node.
Default relay rate$0.75/TB ($0.00075/GB) suggested, capped at 4× ($3.00/TB per hop).
Base58 ↔ 64-hex keysBase58 wallet addresses and ledger 64-hex IDs represent the exact same 32-byte Ed25519 key. The IBRL console shows both automatically.
Shared trust & auditsPer-pair evidence is capped at 10 corroborations; auditors weigh 5× and block over-claiming relays immediately.

02 · S3 & PUBLIC STORAGE

S3 & public reads over IBRL

Firestarter storage routers running with LATTICE_IBRL_BIND automatically send internal /v1/cache reads, writes, repairs, and deletes to storage nodes over encrypted IBRL streams, with responses covered by the router's own ReceiverGrant.

For public objects, direct redirect responses carry the x-lattice-ibrl-exit header naming the IBRL node ID of each replica in Location / x-lattice-alt order so IBRL-native clients can dial the replica's embedded HTTP exit over the overlay.

# Inspect the replica exit IDs on a public read redirect:
curl -sI https://pipe.network/s3/<public-bucket>/<object-key>
# Look for:
#   location: https://.../v1/cache/...
#   x-lattice-ibrl-exit: <64-hex-node-id>[,<replica-2-node-id>]

# Point a local ibrl-node gateway at that exit ID:
ibrl-node gateway \
  --key client.key \
  --bind 0.0.0.0:0 \
  --seed 152.236.4.73:7400 \
  --exit <64-hex-node-id> \
  --listen 127.0.0.1:8080 \
  --origin https://<replica-origin> \
  --ledger https://api.pipenet.ai/control-api \
  --trust-from https://api.pipenet.ai/control-api
Unauthenticated anonymous public requests always return redirects rather than zero-cost proxy streaming; bring a gateway funded by your own USD account credit when initiating IBRL egress from outside the router mesh.

03 · INSTALL & COMMAND LINE

Installing & running ibrl-node

Build ibrl-node from the lattice-ibrl crate (or use an enrolled Firestarter host via firestarter-cache ibrl ...). Clients behind firewalls can bind ephemerally with --bind 0.0.0.0:0; public relays should open UDP port 7400 (or behind symmetric NAT, pass --via <relay-node-id>). Both 64-hex seed files and CLI keypair JSON files (~/.config/solana/id.json) are accepted directly by --key and --wallet-key.

# 0. Build ibrl-node from source (Rust toolchain required)
cargo build --release -p lattice-ibrl --bin ibrl-node
export PATH="$PWD/target/release:$PATH"

# 1. Create a node keypair (32-byte hex seed; prints its 64-hex Node ID)
ibrl-node keygen client.key

# 2. Send a file or unbounded encrypted stream to another IBRL node
ibrl-node send \
  --key client.key \
  --bind 0.0.0.0:0 \
  --seed 152.236.4.73:7400 \
  --to <destination-node-id> \
  --file model-weights.bin \
  --stream \
  --policy policy.json \
  --ledger https://api.pipenet.ai/control-api

# 3. Traverse a symmetric NAT using a reachable relay (--via)
ibrl-node run \
  --key nat-client.key \
  --bind 0.0.0.0:7400 \
  --seed 152.236.4.73:7400 \
  --via <via-relay-node-id> \
  --ledger https://api.pipenet.ai/control-api

# 4. Re-verify a proof bundle offline
ibrl-node settle bundle.json

04 · ROUTE POLICY

Configuring policy.json

Use the interactive policy builder in the IBRL console to set your max $/TB route budget, latency/loss SLOs, region filters, and one-click pinned relays. RoutePolicy::from_production_json merges your file onto production defaults so omitted safety fields (such as the 3-hop × 4× cost cap, $9.00/TB) remain enforced. In raw JSON, integer price fields use micro-USD ($1.00 = 1,000,000, so 9000 = $9.00/TB).

{
  "v": 1,
  "on_miss": "refuse",
  "max_p95_ms": 60,
  "max_loss_ppm": 10000,
  "max_atoms_per_gb": 9000,
  "min_trust_num": 80,
  "min_trust_den": 100,
  "regions_allow": ["eu-west", "us-east"],
  "asn_deny": [64666],
  "objective": "min_cost",
  "max_relays": 3,
  "max_paths": 2,
  "require_relay": false,
  "trust_penalty_atoms_per_gb": 1500,
  "stability": {
    "min_hold_secs": 30
  }
}
objective"min_cost" (default) or "min_latency".
max_paths & max_relaysDefaults to 1 path and up to 3 relays per path; setting max_paths > 1 opens node-disjoint multipath flows.
trust_penalty_atoms_per_gbRanks unproven relays as if they cost slightly more during path selection without increasing what you actually pay.
pinnedOptional ordered array of exact 64-hex relay node IDs that bypasses the route stabilizer. Pin IBRL-observed relays rather than storage-only nodes.

05 · USD FUNDING & GRANTS

Funding overlay traffic with payer grants

Overlay flows settle in USD against prepaid Pipe account credit in the following order:

01Receiver grant (if applicable)If the receiving node submitted a ReceiverGrant naming the sender (e.g., storage routers covering node responses), the receiver pays first within its period cap.
02Delegated PayerGrant (browser wallet or CLI, recommended)Sign the wallet's half (IBRL-PAYER-v1) directly inside Payer grants using your browser wallet without exporting any private key, then download grant.json and countersign on the node via consent-payer. Or run ibrl-node grant-payer with ~/.config/solana/id.json.
03Sender's own credit accountFalls back to charging the sender's hex public key account directly if funded with USD credit. Unfunded flows retry automatically for 7 days.
# Browser wallet flow: download grant.json from /dashboard/ibrl, then on the node host:
ibrl-node consent-payer \
  --grant grant.json \
  --key node.key \
  --ledger https://api.pipenet.ai/control-api

# CLI single-host flow (--cap uses micro-USD: $5.00 = 5,000,000):
ibrl-node grant-payer \
  --wallet-key ~/.config/solana/id.json \
  --key node.key \
  --cap 5000000 \
  --days 30 \
  --ledger https://api.pipenet.ai/control-api
Signed in with Google? Google login creates a non-signing account until you link an Ed25519 funding wallet under Linked accounts. When re-authorizing a revoked or exhausted node from the same wallet, set a strictly longer --days expiry and a cumulative --cap greater than lifetime spent credit.

06 · CUSTOMER API REFERENCE

Customer HTTP endpoints

All customer IBRL endpoints live on the Pipe control plane (https://api.pipenet.ai/control-api) using either Platform CLI Bearer tokens (Authorization: Bearer pcli_... with storage.read / storage.write scopes) or signed-in browser BFF sessions via /api/customer?path=ibrl/.... Monetary amounts in raw JSON fields are returned as exact micro-USD decimal strings (6 decimal places, $1.00 = 1,000,000).

GET /v1/ibrl/pricingPublic network pricing snapshot: suggested ($0.75/TB) & 4× ceiling ($3.00/TB) rates, bootstrap UDP seeds, IBRL-observed vs total nodes, active regions, and auditor status.
GET /v1/customer/ibrl/overviewWallet-scoped summary: active payer grants, cumulative USD spend, funded/unfunded/refused flows, and NAT via bytes.
GET /v1/customer/ibrl/payersLists countersigned PayerGrants (including cumulative wallet spend) and ReceiverGrants.
POST /v1/customer/ibrl/payers/{node}/revokeRequires storage.write. Revokes remaining spend capacity on an owned payer grant while keeping expiry replay defense intact.
GET /v1/customer/ibrl/flows?limit=25&status=fundedLists recent proof-bundle settlement flows and via_usage NAT forwarding records.
GET /v1/customer/ibrl/flows/{flow_id}Per-hop relay breakdown (paid rate vs clamped ticket rate, claimed vs payable bytes, corroborated status), fault attributions, and clawback refunds for one flow.
GET /v1/customer/ibrl/earningsRelay operator USD earnings, hourly payout epochs (pending / credited / refunded), clawbacks, enforcement events, and payout eligibility for owned enrolled nodes.
GET /v1/customer/ibrl/relays?region=eu-west&limit=50Lists active and draining mesh nodes with ibrl_status (verified, observed, or storage_only), rates, audits, and trust score.
# Public pricing snapshot (no auth required)
curl -s https://api.pipenet.ai/control-api/v1/ibrl/pricing | jq .

# Programmatic Platform CLI Bearer token (storage.read / storage.write)
curl -s https://api.pipenet.ai/control-api/v1/customer/ibrl/flows \
  -H "Authorization: Bearer $PIPE_CLI_TOKEN" | jq .

curl -s https://api.pipenet.ai/control-api/v1/customer/ibrl/flows/<flow-uuid> \
  -H "Authorization: Bearer $PIPE_CLI_TOKEN" | jq .

curl -s https://api.pipenet.ai/control-api/v1/customer/ibrl/earnings \
  -H "Authorization: Bearer $PIPE_CLI_TOKEN" | jq .

curl -s -X POST https://api.pipenet.ai/control-api/v1/customer/ibrl/payers/<node-hex>/revoke \
  -H "Authorization: Bearer $PIPE_CLI_TOKEN" | jq .

# Signed-in browser BFF equivalent
curl -s "https://pipe.network/api/customer?path=ibrl/overview" \
  -H "Cookie: __Host-pipe_session=..." | jq .

07 · EARNING USD AS A RELAY

Running a Firestarter relay & tracking payouts

Set FIRESTARTER_IBRL_BIND=0.0.0.0:7400 on your enrolled Firestarter storage node so the storage daemon runs the embedded IBRL overlay under the node's device key. Nodes with auto pricing track GET /v1/nodes/pricing smoothly around the $0.75/TB suggested relay rate. Monitor closed hourly payouts, clawbacks, and eligibility in the Relay earnings tab on /dashboard/ibrl.

Hourly USD payoutsVerified relay earnings close hourly into USD payouts credited to eligible enrolled nodes. Unclaimed payouts older than 30 days refund to the original payer; auditor-witnessed overclaims trigger immediate withholding and clawbacks.

08 · TROUBLESHOOTING

Common errors & settlement states

Flow stays unfundedThe settlement ledger found insufficient USD credit on the authorized payer or sender wallet. Add credit on Billing or increase the node's grant cap — unfunded flows retry automatically for 7 days.
Flow marked refusedApplies to internal router-funded S3 traffic when hops exceed router_relay_share or the rolling 30-day router_relay_budget. Traffic still completes; excess router relay pay is capped and not re-charged.
409 stale_payer_grantYou submitted a PayerGrant whose not_after timestamp is not strictly later than the currently stored grant (including after revoking). Issue a new grant with longer --days AND a cumulative --cap higher than lifetime cumulative spend.
Browser wallet cannot sign / Google sessionGoogle sessions do not hold an Ed25519 key until you link one under Linked accounts. If a hardware wallet blocks off-chain binary signMessage, use ibrl-node grant-payer --wallet-key ....
UDP blocked or symmetric NATPass --via <reachable-relay-hex> to reach a host behind strict/symmetric NAT, or open UDP port 7400 on relay hosts.
Policy error or no relays foundCheck ibrl_status in the Relay directory: pin or filter only verified / observed IBRL relays rather than storage_only nodes.