analyze

package
v0.0.0-...-dc082c2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Overview

Design: (none -- research/analysis tool)

Analyzes AS_PATH suffix sharing across MRT dumps to determine whether a reversed trie would be effective for AS_PATH dedup.

Measures: unique full paths, unique suffixes at each depth, trie node count, and the compression ratio vs naive per-path storage.

Output: JSON to stdout, human summary to stderr.

Design: (none -- research/analysis tool)

Analyzes MRT dumps for BGP attribute repetition patterns to guide caching optimization decisions. Measures per-attribute uniqueness, bundle dedup rates, temporal locality (consecutive hit rates), and per-peer community extraction.

Output: JSON to stdout, human summary to stderr.

Design: (none -- research/analysis tool)

Analyzes MRT dumps to generate per-ASN community defaults. Identifies which communities appear in nearly every route from a given ASN, enabling pre-configured caching where defaults are assumed present and only exceptions (absences) need encoding.

Output: YAML or JSON with per-ASN defaults and savings estimates.

Design: (none -- research/analysis tool)

Counts BGP attributes per route to produce a distribution table. Shows how many routes have N attributes -- useful for understanding attribute set complexity in real routing tables.

Design: (none -- research/analysis tool)

Analyzes MRT BGP4MP dumps to measure UPDATE message density: how many NLRIs per UPDATE, and how many UPDATEs per second.

This data directly informs per-peer channel sizing for the forward pool: if most UPDATEs carry 1 NLRI, the channel absorbs updates not prefixes. The per-second distribution reveals what "burst" means in production.

Design: (none -- research/analysis tool)

Download MRT RIB dumps and BGP4MP updates from RIPE RIS and RouteViews. Replaces test/internet/download.sh with a Go implementation.

Design: (none -- research/analysis tool)

Dumps MRT records as BGP UPDATE hex, one per line. Useful for piping into ze bgp decode or other analysis tools.

Design: (none -- research/analysis tool)

Shared MRT parsing helpers for ze-analyze subcommands. Provides constants, file opening, record iteration, and wire format helpers.

Index

Constants

View Source
const (
	BMPCommonHdrLen = 6
	BMPPeerHdrLen   = 42
)

BMP v3 header sizes (RFC 7854).

Variables

This section is empty.

Functions

func Dispatch

func Dispatch(args []string) int

func Register

func Register(name string, handler func([]string) int, meta subdispatch.SubMeta)

func Subcommands

func Subcommands() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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