analyze

package
v0.0.0-...-4f58d46 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Overview

Design: (none -- research/analysis tool) RFC: rfc/short/rfc6396.md -- per-record-type AS width; rfc/short/rfc6793.md -- AS4_PATH is always 4-octet

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) RFC: rfc/short/rfc6396.md -- MRT BGP4MP records; RFC 4271 Section 4.3 UPDATE layout via internal/mrt

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.

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) RFC: rfc/short/rfc6396.md -- MRT record layout; RFC 8050 add-path subtypes

Shared MRT parsing helpers for ze-analyze subcommands. Provides constants, file opening, record iteration, and wire format helpers. Wire decoding itself is delegated to internal/mrt; this file only adapts it to the callback shape the subcommands use.

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