Add pscheduler-tool-twampy: TWAMP-Light measurement via Nokia twampy#1626
Open
kaz-tk wants to merge 3 commits into
Open
Add pscheduler-tool-twampy: TWAMP-Light measurement via Nokia twampy#1626kaz-tk wants to merge 3 commits into
kaz-tk wants to merge 3 commits into
Conversation
Adds a new pScheduler tool plugin that provides STAMP (RFC 8762) and TWAMP protocol support using Nokia's twampy CLI client. Supports latency and rtt test types with fragmentation control (DF bit), DSCP/TOS marking, configurable packet count/interval, and source address binding. Includes unit tests for all plugin components (can-run, duration, enumerate, merged-results, participant-data) and full RPM/DEB packaging. Ref: perfsonar#1624 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix per-packet regex to match twampy's actual output format: "Reply from <IP> [rseq=N sseq=N rtt=Xms outbound=Xms inbound=Xms]" - Fix summary regex to parse tabular format (Outbound/Inbound/Roundtrip) - Add --verbose flag (required for per-packet output from twampy) - Combine stdout+stderr parsing (per-packet goes to stderr via logging) - Enforce RFC 8762 minimum padding (30 bytes = 44 byte sender packet) - Map outbound/inbound correctly to T2-T1 / T4-T3 timestamps - Add clock synchronization note for one-way delay measurements - Clarify STAMP/TWAMP-Light compatibility in description - Track both sender and reflector sequence numbers Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pscheduler-tool-twampyplugin providing TWAMP-Light measurement support via Nokia twampylatencyandrtttest types with fragmentation control, DSCP/TOS, configurable packet parametersRef: #1624
Details
Plugin Structure
Follows the standard
pscheduler-tool-*plugin layout:can-run— validates test type (latency/rtt), protocol (stamp/twamp), and twampy availabilityrun— builds and executestwampy sendercommand, parses per-packet output into histograms/statisticsduration— calculates expected test durationenumerate— declares tool metadata (name, supported tests, preference)merged-results— combines multi-participant results with flip supportparticipant-data— returns participant-specific metadataSupported Features
Key Differences from twping
twampyPython CLI instead of C-basedtwping--do-not-fragment)Test Plan
can-run— validates accepted/rejected test types, protocols, fragment optionduration— verifies duration calculation with default and custom parametersenumerate— validates JSON schema, tool name, supported tests, preferencemerged-results— single result, two results, flip optionparticipant-data— returns empty object for single-participant mode🤖 Generated with Claude Code