| created | "2026-01-01T00:00:00.000Z" |
| modified | "2026-04-25T00:00:00.000Z" |
| reviewed | "2026-04-25T00:00:00.000Z" |
| name | network-diagnostics |
| description | Troubleshoot network connectivity, latency, and path issues. Use when you need to trace the route to a host, compare ping latency across endpoints, or inspect local socket/port usage. |
| user-invocable | false |
| allowed-tools | Bash(ping *), Bash(traceroute *), Bash(mtr *), Bash(netstat *), Bash(ss *), Bash(ip *), Read, Grep, Glob, TodoWrite |
Network Diagnostics
When to Use This Skill
| Scenario | Use this skill | Alternative |
|---|
| Trace the route to a remote host | Yes (trippy) | |
| Diagnose packet loss or high latency on a path | Yes (trippy) | |
| Compare ping latency across multiple endpoints | Yes (gping) | |
| Find what process is listening on a port | Yes (ss) | |
| Count established connections to a service | Yes (ss) | |
| Inspect local socket states (TIME_WAIT, etc.) | Yes (ss) | |
| Scan all open ports on a remote host | | network-discovery (RustScan, nmap) |
| Look up DNS records or check propagation | | dns-tools (dog, dig) |
| Enumerate hosts on the local L2 segment | | layer2-discovery (ARP/LLDP) |
| Benchmark HTTP endpoint throughput | | http-load-testing (oha) |
| See real-time per-process bandwidth consumption | | network-monitoring (bandwhich) |
Expert knowledge for network connectivity troubleshooting using modern diagnostic tools that provide richer output than legacy alternatives.
Core Expertise
Tool Selection
| Use Case | Tool | Why |
|---|
| Path analysis with latency | trippy | Combines traceroute + ping with TUI |
| Multi-host latency comparison | gping | Visual graphs, parallel pings |
| Local socket inspection | ss | Modern netstat replacement |
| Quick single-hop latency | gping | Faster feedback than trippy |
| Network path + ASN info | trippy | Built-in ASN/geo lookups |
Advantages Over Legacy Tools
| Modern | Legacy | Improvements |
|---|
| trippy | traceroute, mtr | TUI, jitter stats, ASN/geo, world map |
| gping | ping | Visual graphs, multi-host parallel |
| ss | netstat | Faster, more info, better filtering |
Trippy - Modern Traceroute/MTR
Rust-based network path analyzer combining traceroute and ping with a rich TUI.
Essential Commands
trip example.com
trip -m icmp example.com
trip -m udp example.com
trip -m tcp example.com
trip -m tcp -p 443 example.com
trip -m tcp -p 80 example.com
trip -i en0 example.com
trip -i eth0 example.com
trip --tui-as-mode asn example.com
trip --tui-as-mode prefix example.com
trip --tui-geoip-mode short example.com
trip --tui-geoip-mode long example.com
Non-Interactive Output
trip example.com --mode json -c 10
trip example.com --mode dot -c 10
trip example.com --mode csv -c 10
trip example.com --mode flows -c 10
trip example.com --mode silent -c 10
trip example.com --mode pretty -c 10
Advanced Options
trip example.com -c 100
trip example.com -t 30
trip example.com -S 64
trip example.com -f 5
trip example.com -N 16
trip example.com -g 100ms
gping - Graphical Ping
Visual latency graphs with multi-host parallel ping support.
Essential Commands
gping example.com
gping google.com cloudflare.com amazon.com
gping -4 example.com
gping -6 example.com
gping -i en0 example.com
gping -s example.com
gping -b 100 example.com
Command Execution Mode
gping --cmd "curl -s https://api.example.com/health"
gping --cmd "dig example.com"
gping --cmd "http https://api.example.com/status"
gping --cmd "curl -s localhost:3000" --cmd "curl -s localhost:8080"
Customization
gping -n 0.5 example.com
gping -w 2 example.com
gping --clear example.com
ss - Socket Statistics
Modern replacement for netstat, faster and more informative.
Essential Commands
ss -t
ss -u
ss -l
ss -p
ss -n
ss -tlnp
ss -tulnp
Filtering
ss -t state established
ss -t state listening
ss -t state time-wait
ss -t state close-wait
ss -t sport = :22
ss -t dport = :443
ss -t 'sport = :80 or dport = :80'
ss -t src 192.168.1.0/24
ss -t dst 10.0.0.1
ss -t 'sport = :443 and dst 10.0.0.0/8'
Statistics and Summary
ss -s
ss -e
ss -o
ss -m
ss -i
Common Investigations
ss -tlnp | grep :8080
ss -tlnp 'sport = :8080'
ss -t state established | wc -l
ss -tn dst 192.168.1.100
watch -n 1 'ss -tn state established dport = :443 | wc -l'
Common Patterns
Connectivity Troubleshooting Workflow
gping target.example.com
trip target.example.com
ss -tlnp
ss -tn state established | grep target.example.com
Latency Comparison
gping primary.example.com secondary.example.com backup.example.com
gping 8.8.8.8 1.1.1.1 9.9.9.9
gping --cmd "curl -s api1.example.com" --cmd "curl -s api2.example.com"
Port Availability Check
ss -tlnp 'sport = :80 or sport = :443 or sport = :8080 or sport = :3000'
ss -tlnp 'sport >= :8000 and sport <= :9000'
Network Path Analysis
trip us-east.example.com &
trip eu-west.example.com &
trip ap-southeast.example.com
trip --tui-as-mode asn cdn.example.com
Agentic Optimizations
| Context | Command |
|---|
| Quick latency check | gping -b 10 HOST 2>&1 | head -20 |
| Path analysis (JSON) | trip HOST --mode json -c 5 |
| Listening ports | ss -tlnp |
| Connection count | ss -tn state established | wc -l |
| Port in use | ss -tlnp 'sport = :PORT' |
| Multi-host compare | gping HOST1 HOST2 HOST3 -b 5 |
| TCP path check | trip -m tcp -p 443 HOST --mode pretty -c 3 |
Quick Reference
Trippy Flags
| Flag | Long | Description |
|---|
-m | --mode | Protocol: icmp, udp, tcp |
-p | --port | Target port (tcp/udp mode) |
-i | --interface | Source interface |
-c | --count | Number of probes |
-t | --max-ttl | Maximum TTL/hops |
-f | --first-ttl | Starting TTL |
-S | --packet-size | Packet size in bytes |
| --tui-as-mode | ASN display: asn, prefix |
| --tui-geoip-mode | Geo display: short, long |
| --mode | Output: tui, json, csv, dot, flows, silent, pretty |
gping Flags
| Flag | Long | Description |
|---|
-4 | | Force IPv4 |
-6 | | Force IPv6 |
-i | --interface | Source interface |
-s | --simple-graphics | ASCII-only output |
-b | --buffer | Number of pings to display |
-n | --interval | Ping interval (seconds) |
-w | --watch-interval | Watch timeout |
| --cmd | Ping command execution time |
| --clear | Clear screen before starting |
ss Flags
| Flag | Description |
|---|
-t | TCP sockets |
-u | UDP sockets |
-l | Listening only |
-a | All sockets |
-p | Show process |
-n | Numeric (no DNS) |
-e | Extended info |
-o | Timer info |
-m | Memory usage |
-i | Internal TCP info |
-s | Summary statistics |
ss State Filters
| State | Description |
|---|
established | Active connections |
listening | Listening sockets |
time-wait | Waiting for timeout |
close-wait | Waiting for local close |
syn-sent | Connection initiating |
syn-recv | Connection received |
Installation
brew install trippy gping
cargo install trippy
cargo install gping
trip --version
gping --version
ss --version
Platform Notes
- trippy: ICMP mode requires root or
CAP_NET_RAW capability; UDP/TCP modes work without elevation
- gping: Works without elevation on all platforms
- ss: Linux only; use
netstat -an on macOS for similar functionality
Resources