Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

WebSocket Heartbeat Bandwidth

Budget periodic ping and pong traffic for long-lived connections.

Networking workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaBidirectional heartbeat bandwidth = n*(ping+pong)*8/interval/1e6; Daily heartbeat transfer = n*(ping+pong)/interval*86400/1e9

Made for real tasks

  • Budget periodic ping and pong traffic for long-lived connections.
Explore step-by-step workflows →

Worked example

Inputs

Concurrent connections
100000 connections
Heartbeat interval
30 s
Ping on-wire size
80 bytes
Pong on-wire size
80 bytes

Expected results

Bidirectional heartbeat bandwidth
4.266666667 Mbit/s
Daily heartbeat transfer
46.08 GB

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Enter concurrent connections, heartbeat interval, ping on-wire size, pong on-wire size in the displayed units.
  2. Calculate the scenario, then compare it with measurements before changing a system.

Try this example

{
  "n": 100000,
  "interval": 30,
  "ping": 80,
  "pong": 80
}

Accuracy and scope

Supplied byte sizes include chosen framing; no reconnects or application messages.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.