Guest User

Untitled

a guest
Aug 30th, 2025
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. Short answer: you can’t “prove” intent, but you can collect pretty strong evidence that somewhere past your LAN the link is batching/scheduling your traffic (common on cable/GPON/DSL or when a shaper/policer is in play). Here’s how to test it cleanly.
  2.  
  3. # What “bundling” would look like
  4.  
  5. * You send tiny packets at steady spacing (e.g., every 1–2 ms).
  6. * They **arrive** in clumps (many back-to-back packets) followed by small idle gaps (e.g., 5–20 ms), repeating.
  7. * The clump size and gap are fairly consistent and **don’t** match your sender’s spacing.
  8.  
  9. # Control the variables first
  10.  
  11. 1. **Wire only** (no Wi-Fi).
  12. 2. **Use UDP** probes to avoid TCP behaviors (Nagle, delayed ACKs).
  13. 3. **Disable NIC offloads on capture hosts** so your pcap isn’t faked by GRO/LRO/TSO:
  14. `sudo ethtool -K eth0 gro off gso off lro off tso off`
  15. 4. **Avoid your router’s own shaper** during the test (disable SQM/cake/fq\_codel shaping for a minute, or test well below line rate).
  16.  
  17. # Minimal experiment (client → VPS)
  18.  
  19. You need a Linux box at home and a cheap VPS (or a friendly server) on the Internet.
  20.  
  21. **On the VPS (receiver):**
  22.  
  23. ```bash
  24. sudo tcpdump -ni eth0 udp port 5555 -w /tmp/rx.pcap
  25. ```
  26.  
  27. **On your home box (sender):**
  28.  
  29. * Send a perfectly regular stream of small UDP packets:
  30.  
  31. ```bash
  32. nping --udp -p 5555 --data-length 32 --rate 500 -c 10000 <VPS_IP>
  33. # 500 pps ≈ every 2 ms
  34. ```
  35.  
  36. Stop tcpdump and pull `/tmp/rx.pcap` to your PC. In Wireshark:
  37.  
  38. * View → Time Display Format → “Seconds since previous captured frame”.
  39. * Make an **IAT (inter-arrival time) histogram** (Statistics → I/O Graphs: graph packets/s and add a graph of `delta time displayed`).
  40. * If you see **stair-step patterns** like “8–16 packets at \~0 µs spacing” then a \~10 ms gap, repeating, that’s batching.
  41.  
  42. # Isolate where it happens
  43.  
  44. Do the **same capture at three points**:
  45.  
  46. 1. **LAN side** of your sender (just to confirm you transmit evenly).
  47. 2. **WAN side** of your home router/ONT (MikroTik example):
  48.  
  49. ```
  50. /tool/sniffer/start interface=<wan> filter-ip-protocol=udp filter-port=5555 file-name=wan.cap
  51. # run nping
  52. /tool/sniffer/stop
  53. ```
  54.  
  55. 3. **Remote VPS** (as above).
  56.  
  57. Compare inter-packet gaps:
  58.  
  59. * Even at (1) but clumpy at (2) → your **router/ONT** (local shaping or DOCSIS/GPON upstream scheduler) is creating bursts.
  60. * Even at (2) but clumpy at (3) → **beyond your last-mile** (ISP/core shaping/policing) is doing it.
  61. * Clumpy already at (1) → your **sender** (OS/app) or NIC offloads are batching.
  62.  
  63. # Optional higher-precision checks
  64.  
  65. * **OWAMP/TWAMP (owping/twamp)**: measures **one-way** delay (needs NTP/chrony sync) so you can see periodic delay spikes that line up with the clumps.
  66. * **iperf3 -u** at modest, fixed bitrate plus a pcap on the receiver to visualize bursts under load.
  67. * Try multiple destinations (VPS in different ASNs). If the clump pattern stays the same, it’s likely **last-mile scheduling** (e.g., DOCSIS request/grant cycles, GPON TDMA windows, DSL interleaving/shaper).
  68.  
  69. # What it might actually be
  70.  
  71. * **Last-mile schedulers** (DOCSIS/GPON/5G) transmit your upstream in **bursts** by design.
  72. * **Token-bucket shapers/policers** (ISP or CPE) release traffic in **quantized bursts** once tokens accrue.
  73. * **Your own gear**: SQM off → bigger bursts; SQM on (cake/fq\_codel) → smoother spacing. NIC **GRO/LRO** can *look* like bundling in captures.
  74.  
  75. # “Proof” standard
  76.  
  77. If you show: (a) steady transmit spacing, (b) consistent burst pattern only after the last-mile/ISP hop, and (c) the pattern persists to multiple remote nets and times of day, you’ve built solid, operator-grade evidence that your packets are being **batched/paced** beyond your LAN.
  78.  
  79. If you want, tell me your router/ONT model (you’ve used MikroTik before) and I’ll tailor exact capture commands and a quick Wireshark “recipe” for the histogram/graphs.
  80.  
Advertisement
Add Comment
Please, Sign In to add comment