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.
/v1/cache replication and reads over IBRL using router credit.PayerGrant in your browser wallet or CLI, and run ibrl-node.FIRESTARTER_IBRL_BIND on an eligible enrolled Firestarter storage node.$0.75/TB ($0.00075/GB) suggested, capped at 4× ($3.00/TB per hop).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-api03 · 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.json04 · 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
}
}"min_cost" (default) or "min_latency".1 path and up to 3 relays per path; setting max_paths > 1 opens node-disjoint multipath flows.05 · USD FUNDING & GRANTS
Funding overlay traffic with payer grants
Overlay flows settle in USD against prepaid Pipe account credit in the following order:
ReceiverGrant naming the sender (e.g., storage routers covering node responses), the receiver pays first within its period cap.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.# 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--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).
PayerGrants (including cumulative wallet spend) and ReceiverGrants.storage.write. Revokes remaining spend capacity on an owned payer grant while keeping expiry replay defense intact.via_usage NAT forwarding records.pending / credited / refunded), clawbacks, enforcement events, and payout eligibility for owned enrolled nodes.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.
08 · TROUBLESHOOTING
Common errors & settlement states
router_relay_share or the rolling 30-day router_relay_budget. Traffic still completes; excess router relay pay is capped and not re-charged.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.signMessage, use ibrl-node grant-payer --wallet-key ....--via <reachable-relay-hex> to reach a host behind strict/symmetric NAT, or open UDP port 7400 on relay hosts.ibrl_status in the Relay directory: pin or filter only verified / observed IBRL relays rather than storage_only nodes.