1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-04-17 21:38:27 +00:00
Commit graph

19 commits

Author SHA1 Message Date
Wilhelm Schonfeldt
9db9849a59
feat(structured): release structured feature set (squash merge)
Summary:
- Add structured traceroute support with comprehensive IP enrichment (ASN/org/RDNS).
- Improve MikroTik traceroute cleaning and aggregation; collapse repeated tables into a single representative table.
- Enhance traceroute logging for visibility and add traceroute-specific cleaning helpers.
- Add/adjust IP enrichment plugins and BGP/traceroute enrichment integrations.
- UI updates for traceroute output and path visualization; update docs and configuration for structured output.

This commit squashes changes from 'structured-dev' into a single release commit.
2025-09-30 16:46:01 +02:00
Wilhelm Schonfeldt
0398966062
feat: Add structured traceroute support with comprehensive IP enrichment
MAJOR NEW ARCHITECTURE - STRUCTURED TRACEROUTE:
- Complete rewrite of traceroute data processing with structured output
- Dedicated TracerouteResult and TracerouteHop data models
- Platform-specific parsers with unified output format
- Rich metadata including ASN, organization, country, and prefix information
- AS path visualization with organization names in React Flow charts

SUPPORTED PLATFORMS:
- TraceroutePluginMikrotik: Handles MikroTik's complex multi-table format
  * Progressive statistics parsing with deduplication
  * Timeout hop handling and continuation line processing
  * Loss percentage and RTT statistics extraction
- TraceroutePluginHuawei: Unix-style traceroute format parser
  * Standard hop_number ip_address rtt format support
  * Timeout hop detection with * notation
  * Automatic cleanup of excessive trailing timeouts

COMPREHENSIVE IP ENRICHMENT SYSTEM:
- Offline enrichment using BGP.tools bulk data (1.3M+ CIDR entries)
- PeeringDB integration for IXP detection and ASN organization data
- Ultra-fast pickle cache system with combined data files
- Integer-based bitwise IP matching for maximum performance
- Bulk ASN organization lookup capabilities
- Private/reserved IP handling with AS0 fallbacks
- Country code mapping from ASN database
- Graceful fallbacks for missing enrichment data

FRONTEND ENHANCEMENTS:
- New traceroute table components with consistent formatting
- Enhanced AS path visualization with organization names
- Improved copy-to-clipboard functionality with structured data
- Unified table styling across BGP and traceroute results
- Better error handling and loading states

CONCURRENT PROCESSING INFRASTRUCTURE:
- Thread executor implementation for blocking I/O operations
- Query deduplication system to prevent resource conflicts
- Non-blocking Redis cache operations using asyncio executors
- Event coordination for waiting requests
- Background cleanup for completed operations
- Prevents website hangs during long-running queries

PLUGIN ARCHITECTURE IMPROVEMENTS:
- Platform-aware plugin system with proper execution restrictions
- Enhanced MikroTik garbage output cleaning
- IP enrichment plugins for both BGP routes and traceroute
- Conditional plugin execution based on platform detection
- Proper async/sync plugin method handling

CRITICAL BUG FIXES:
- Fixed double AS prefix bug (ASAS123456 → AS123456)
- Resolved TracerouteHop avg_rtt field/property conflicts
- Corrected Huawei traceroute source field validation
- Fixed plugin platform restriction enforcement
- Eliminated blocking I/O causing UI freezes
- Proper timeout and empty response caching prevention
- Enhanced private IP range detection and handling

PERFORMANCE OPTIMIZATIONS:
- Pickle cache system reduces startup time from seconds to milliseconds
- Bulk processing for ASN organization lookups
- Simplified IXP detection using single PeeringDB API call
- Efficient CIDR network sorting and integer-based lookups
- Reduced external API calls by 90%+
- Optimized memory usage for large datasets

API & ROUTING ENHANCEMENTS:
- Enhanced API routes with proper error handling
- Improved middleware for concurrent request processing
- Better state management and event handling
- Enhanced task processing with thread pool execution

This represents a complete transformation of hyperglass traceroute capabilities,
moving from basic text output to rich, structured data with comprehensive
network intelligence and concurrent processing support.
2025-09-28 13:48:04 +02:00
thatmattlove
b617df24d1 fixes #267: fix response caching 2024-06-30 22:22:44 -04:00
thatmattlove
0c0bdc7f9b update UI dependencies, fix layout issues 2024-02-28 22:26:16 -05:00
thatmattlove
2dd03ad81d refactor and restructure ui theme hooks 2021-12-19 23:30:09 -07:00
thatmattlove
93adc09e63 refactor, restructure typescript types 2021-12-18 23:45:06 -07:00
thatmattlove
c8663d7029 improve component types 2021-12-17 21:08:45 -07:00
thatmattlove
85566b81ab UI improvements, hookstate → zustand migration, cleanup 2021-09-21 08:20:44 -07:00
thatmattlove
76bf5eb380 Implement UI configuration response model 2021-09-10 23:13:27 -07:00
checktheroads
879b750b58 upgrade react-flow & fix rendering of AS graph 2021-04-24 11:15:01 -07:00
checktheroads
207b6ab9de fix as path graph layout 2021-02-01 01:11:23 -07:00
checktheroads
6ffbf95abd add typings for eslint 2021-01-03 23:51:09 -07:00
checktheroads
2011892f72 improve as path component styling 2021-01-02 12:54:41 -07:00
checktheroads
bbbfe9423b migrate theme functions to typescript [skip ci] 2021-01-01 00:26:00 -07:00
checktheroads
8144ae4c1e improve global state management & data flow [skip ci] 2020-12-31 21:48:02 -07:00
checktheroads
fc018955c0 restructure components & clean up unused code [skip ci] 2020-12-29 15:58:36 -07:00
checktheroads
80af987034 improve form & results style & layout [skip ci] 2020-12-29 02:08:45 -07:00
checktheroads
e407258f72 continue typescript & chakra v1 migrations [skip ci] 2020-12-25 00:45:23 -07:00
checktheroads
d263fb9203 continue typescript & chakra v1 migrations [skip ci] 2020-12-22 02:00:36 -07:00