Skip to content

Main content

TCP Window Scale Effective Capacity Tool

Calculate tcp window scale effective capacity from explicit caller-supplied inputs.

Loading tool…

Description

Multiply window by 2 raised to shift, except that synSegment selects an unscaled window.

TCP advertises a receive window in a 16-bit field. A negotiated scale expands its interpretation for one direction, while SYN segments use the unscaled field.

Multiply window by 2 raised to shift, except that synSegment selects an unscaled window.

When to use this tool

Use TCP Window Scale Effective Capacity when you need a window capacity under an explicit scaling convention.

How to use the tool and how it works

  1. Enter window, shift, synSegment. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read effectiveWindow. Use the output convention below.

Multiply window by 2 raised to shift, except that synSegment selects an unscaled window. Window is 0-65535 and shift is 0-14.1

Input fieldMeaning and unitsAccepted input
windowWindowRequired. Safe integer; minimum 0; maximum 65535.
shiftShiftRequired. Safe integer; minimum 0; maximum 14.
synSegmentSyn SegmentRequired. Boolean.
Output fieldInterpretationReturned shape
effectiveWindowEffective WindowRequired. Safe integer.
json
{
  "input": {
    "window": 1000,
    "shift": 4,
    "synSegment": false
  },
  "output": {
    "effectiveWindow": 16000
  }
}

Limitations and assumptions

  • The calculation does not infer a peer's negotiated shift or track TCP state.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Inspect both handshake directions to establish the negotiated shift before interpreting later window fields.

References

  1. Calculation and input contract: network/tcp-window-scale-effective-capacity — tool.io

Similar or alternative tools