beaconing

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package beaconing is the node's beacon policy module: the seam that decides which of the routes the node holds its beacons carry to each receiver, and in what order — a neighbor the node propagates to, or the node itself, which terminates and registers its own set. The beaconer hands the policy only routes the receiver can take, their beacons still arriving over interfaces that lead to their senders, and keeps the first routes of its answer up to what a receiver's beacon store keeps per interface. The implementation is filed beneath this root: the coverage method, which runs the contract suite in impl/beaconingtest.

Kind: policy — which routes the node's beacons carry; one method, bound by the assembly, with no run argument selecting it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Candidate

type Candidate struct {
	// Ingress is the interface the beacon arrived on: the node's parent
	// side of that link.
	Ingress uint16
	// PCB is the candidate beacon.
	PCB *segment.PCB
}

Candidate is a stored beacon with the interface it arrived on.

type Policy

type Policy interface {
	// Select returns the candidates to send the receiver, in the order to
	// send them: each drawn from cands, the routes the receiver can take,
	// none twice, and one at least whenever cands holds any. The receiver
	// is a neighbor, or the node itself for the set it terminates and
	// registers. founder is the founding core the pinned TRC names, zero
	// while no TRC is pinned. The beacons stay as they are: the beacon store
	// holds them.
	Select(receiver, founder addr.IA, cands []Candidate) []Candidate
}

Policy chooses the routes the node's beacons carry: the contract every method keeps. The propagation and registration loops ask it at once.

Directories

Path Synopsis
impl
beaconingtest
Package beaconingtest is the beacon policy module's contract suite: what every method keeps.
Package beaconingtest is the beacon policy module's contract suite: what every method keeps.
coverage
Package coverage is the coverage method of the beacon policy module.
Package coverage is the coverage method of the beacon policy module.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL