Skip to content

About

BSV Layered Multicast subtree-aware filtering egress gateway listener for scaled networks.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

323 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shard-listener

CI CodeQL Release Go Reference License

Part of the BSV Layered Multicast open-source project; see the main repository for the full architecture, design docs, and BRC specifications.

Multicast subscriber and forwarder for the BSV transaction sharding pipeline. Receives BRC-124/BRC-128 frames from the shard-proxy multicast fabric, applies shard and subtree filters, forwards matching frames to a configurable downstream consumer over unicast UDP/TCP and/or multicast egress (domain bridging), and performs NORM-inspired NACK-based gap recovery via HashKey/SeqNum per-flow sequence tracking with BRC-126 beacon-discovered retry endpoints and tier-based escalation.

FF05::B:<shard>:9001 ──multicast──►  shard-listener  ──UDP/TCP──►  downstream :9100
[Control Groups]    ──multicast──►  (BRC-127 SubtreeGroupAnnounce) └─multicast►  FF05::B:<shard>
                                           │  shard + subtree filter
                                     gap detected
                                           │
                          NACK (BRC-126) ──▼──────►  [retry-endpoint]:9300
                                           ◄─── ACK / MISS

Feature list: docs/architecture.md#features.

Quick start

# Subscribe to all groups; forward to localhost:9100 over UDP (ASM, default)
shard-listener \
  -iface eth0 \
  -shard-bits 2 \
  -egress-addr 127.0.0.1:9100

SSM (requires PIM-SSM in the fabric and a raised net.ipv6.mld_max_msf; the data-plane and block-broadcast groups are joined from the -ssm-publishers-static sources, the proxies' addresses):

shard-listener \
  -iface eth0 \
  -shard-bits 2 \
  -scope site \
  -source-mode ssm \
  -ssm-publishers-static 2001:db8::10,2001:db8::11 \
  -ssm-bootstrap-beacon  retry-endpoint-headless.svc.cluster.local \
  -egress-addr 127.0.0.1:9100

-ssm-bootstrap-manifest (the manifest announcers) sources only the manifest port, so it matters only with -manifest-consumer-enabled; see the configuration reference.

Build

make build       # -> build/shard-listener
make test        # unit tests (race detector)
make test-e2e    # end-to-end tests (see docs/testing.md)
make docker      # build Docker image

Documentation

Dependencies

  • github.com/lightwebinc/shard-common: frame, bundle, objfmt, shard, netjoin, bootstrap, manifest, cache, txidset, teewire, seqhash, pow, logging, tracing, hostinfo
  • Prometheus client (client_golang; common in tests) + OpenTelemetry SDK, OTLP gRPC and Prometheus exporters
  • golang.org/x/sys: SO_REUSEPORT, multicast socket options; golang.org/x/net: batched sends for the retry tee
  • github.com/alicebob/miniredis/v2: in-process Redis for egress dedup tests

Container image

The Dockerfile produces a gcr.io/distroless/static:nonroot image with the single static binary at /usr/local/bin/shard-listener, and LICENSE, NOTICE and LICENSE-THIRD-PARTY in /usr/share/doc/shard-listener/. Configure via Helm values.yaml, container environment variables, or CLI flags.

Helm chart

A Kubernetes Helm chart is published from a dedicated chart repository:

  • Repository: charts/shard-listener
  • Install: helm install shard-listener oci://ghcr.io/lightwebinc/charts/shard-listener (add --version to pin a released chart)

Supports workloadType=Deployment (default) and workloadType=DaemonSet. Most flags accepted by this binary are exposed under .config in the chart's values.yaml; the rest are set through extraEnv. The chart hardcodes NUM_WORKERS=1 to avoid SO_REUSEPORT multicast duplication. See the chart README for the full reference.

Releases

Releases and release notes live on GitHub Releases; there is no CHANGELOG.

License

See LICENSE. Third-party notices are in NOTICE and LICENSE-THIRD-PARTY.

About

BSV Layered Multicast subtree-aware filtering egress gateway listener for scaled networks.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages