Skip to content

Termwright v0.39.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 12:31
· 220 commits to main since this release
  • Quick streams and tests. The Traffic page's + L2 Stream, + L3 Stream and Quick Tests… open one dialog: choose an L2 or L3 stream, a custom frame, or a ready test - latency, jitter, loss under load, RFC 2544 throughput, bad packets, fuzz, VLAN isolation, MTU and jumbo frames, 802.1X clients - answer a few questions (which test ports, whether the switch ports carry the VLAN tagged, whether the switch has IP interfaces in the two subnets) and What Termwright fills in lists every stream and every change to a test port before anything is made, each one editable. Create or Create and Start. An L3 stream gives each test port an address and the switch's IP interface as its gateway, and says what the switch needs to route.
  • Custom frames, without Scapy. A stream's Type can be Custom: paste the frame in hex (Wireshark's Copy as a Hex Stream, a Scapy hexdump, any hex dump); Termwright puts in the test ports' MACs, works out IP and UDP/TCP lengths and checksums per frame (or leaves your bytes as they are) and adds its counting signature, so custom frames are counted and timed like any other.
  • User-defined fields: bytes at an offset that count up or down, or are random, from frame to frame (1 to 4 bytes), in any stream, as hardware testers have them.
  • Faults and fuzzing: 23 malformed frames (bad IP or L4 checksum, wrong lengths, TTL 0 and 1, IP options, fragments, martian and broadcast sources, LAND, TCP SYN+FIN, Xmas and no flags, multicast or zero source MAC, runt, VLAN 4095, two tags, unknown EtherType), and random bytes over a range of offsets with a seed to repeat a failure. A stream's frames can now be dropped to pass (a filter or a fault the switch drops), or only be counted. The API, the connector, the AI chat and Python's add_stream take kind=custom, hex, udfs, bad, fuzz, expect, no_fix and no_sig.
  • Traffic reports to share and keep: HTML, PDF and Excel. Report ▾ on the Traffic page saves an HTML report (one page, nothing outside it), a PDF (printed by Chrome, Edge, Chromium or Brave on the computer, nothing to install) or an Excel workbook with Excel's own charts, or the CSV as before. The report shows the verdict and totals, the topology with each stream as a numbered arrow between its test ports, the throughput, loss and latency graphs, and for each stream the frames sent (its settings) beside the output received (counts, loss, latency percentiles and histogram, the VLAN, priority and DSCP frames arrived with, flows), with the first frame sent and the first received decoded side by side - what the switch changed on the way (MACs and TTL when routed, a VLAN tag) is marked - and as hex dumps; then the test ports. The workbook has the same in sheets (Summary, Graphs, Frames sent, Output received, First frames, Flows, Test ports, Timeline, Topology). The API's report takes format=pdf and format=xlsx too.
  • More protocols on test ports. PEAP-MSCHAPv2 for 802.1X clients (a TLS tunnel to the RADIUS server and MS-CHAPv2 inside, as Windows clients log in; the lab's RADIUS server answers it with a certificate Termwright makes), DHCPv6 for clients behind a test port, VRRP (v2 and v3: the test port as a second router for the switch's virtual address; Go Silent times how fast the switch takes over, Take Over takes it back) and BFD (a single-hop session with the switch; Go Silent for 5 s times how fast the switch notices). Quick Tests has DHCPv6 clients, VRRP failover and BFD failure detection, and the 802.1X test asks for the method. The test port cards show VRRP and BFD, and the clients list their IPv6 addresses.
  • Headers on streams: QinQ, MPLS, GRE, VXLAN and IPv6 extension headers. The stream editor shows a stream's headers in wire order; + Header ▾ adds an outer VLAN tag, up to three MPLS labels, a GRE or VXLAN tunnel or IPv6 extension headers (hop-by-hop, destination options, segment routing, fragment). The frame size stays the size on the wire. Reports decode them all, with the frame inside a tunnel as Inner ….
  • Fixed: the bottom pane's Traffic tab saved reports as HTML only: it has the same Report ▾ (HTML, PDF, Excel, CSV) as the Traffic page now, and saved test runs can be saved as PDF too.
  • Real TCP sessions. A stream's Type can be TCP Session: real connections from a test port to another (or to an address) with the handshake, data both ways (retransmitted when lost) and FIN - how many, how many at once, how fast, how much data, plain or HTTP - and what should happen to them: connect, be refused (reset) or get no answer. Results: tried, connected, refused, timed out, reset, setup time (avg, p95, max), sessions a second, the most open at once. Quick Tests… has TCP sessions and Blocked TCP port (ACL).
  • The fast engine. Engines… on the Traffic page chooses what sends the streams on the KVM hosts: the built-in engine (Python) or the fast one, a compiled helper built into Termwright for Linux x86-64 and ARM64 and copied to the hosts' lab folders - the same streams, counters and reports, about four times as fast: 420,000 frames a second of 64 bytes and 2.5 Gbit/s of 1518 bytes with no loss on two vCPUs (the built-in one: about 100,000). Streams can ask for up to 2,000,000 frames a second with it. The measured numbers are in docs/PERFORMANCE.md.
  • Test ports on real switches. A KVM host's spare network card cabled to a real switch can be a test port (+ Test Port → Host network card): streams, sessions, protocols, tests and reports work on it as on the lab's switches. Cards that are the host's own network, have an address or are in a bridge are not offered; the engine needs root or passwordless sudo there.
  • TRex servers. For line rate on real hardware, Termwright drives TRex (stateless mode) over its API - nothing installed on the TRex server: Engines… → + TRex Server… shows its version and ports, and a ticked port is a test port. Streams between two of its ports are sent and counted by TRex (UDP, TCP SYN, ICMP, raw, ARP, custom; VLAN, DSCP, IMIX, changing fields) with latency on a copy, and show in the same results and reports. Tested against a simulated TRex server.
  • The report's topology draws real devices that test ports are cabled to (dashed) beside the lab, and session streams with their sessions instead of frames.
  • API, connector and Python: GET/PUT /lab/traffic/engines, GET /lab/traffic/nics, POST /lab/traffic/trex, DELETE /lab/traffic/trex/{server}, test ports with host/nic or trex/trexPort, streams with kind: "session"; the connector's lab_traffic has engines, set_engine, nics, add_trex and remove_trex; Python has set_engine(), nics(), add_host_port(), add_trex() and add_trex_port().
  • RADIUS: Many Users… adds numbered users in one go (user1…user100, or user001… with digits), with the number in the password too if you like (pass{n}) and a VLAN; the 802.1X clients test adds them for you.

Commits

  • Release 0.39.0 (5f7905d)
  • Traffic: real TCP sessions, the fast engine, test ports on a host's network card cabled to a real switch, TRex servers; benchmark published (2b20f6e)
  • Traffic: PEAP-MSCHAPv2, DHCPv6, VRRP and BFD on test ports; QinQ, MPLS, GRE, VXLAN and IPv6 extension headers on streams; Report menu in the bottom pane too (b831e8a)
  • Traffic reports: HTML, PDF and Excel with topology, graphs, frames sent and received (dbfb4eb)
  • Traffic: quick streams and tests, custom frames, user-defined fields, faults, fuzzing, expect dropped; RADIUS many users (64b060f)

Full changelog: v0.38.0...v0.39.0

macOS: the app is ad-hoc signed, not notarized - after installing run xattr -dr com.apple.quarantine /Applications/Termwright.app.