Skip to content

Main content

Ethernet Type Length Branch Tool

Calculate ethernet type length branch from explicit caller-supplied inputs.

Loading tool…

Description

Classify field values at most 1500 as length, at least 1536 as etherType, and the intervening values as reserved.

Packet headers encode several meanings in fixed-width fields. Bit positions, network byte order, and reserved values must be distinguished from validation of an entire message.

Classify field values at most 1500 as length, at least 1536 as etherType, and the intervening values as reserved.

When to use this tool

Use Ethernet Type Length Branch when you need to decode or encode one explicit packet field.

How to use the tool and how it works

  1. Enter field. 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 branch. Use the output convention below.

Classify field values at most 1500 as length, at least 1536 as etherType, and the intervening values as reserved.1

Input fieldMeaning and unitsAccepted input
fieldFieldRequired. Safe integer; minimum 0; maximum 65535.
Output fieldInterpretationReturned shape
branchBranchRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "field": 1500
  },
  "output": {
    "branch": "length"
  }
}

Limitations and assumptions

  • An etherType classification does not identify a protocol or verify frame size.
  • 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 the complete captured header and apply the relevant protocol's structural and state rules.

References

  1. Calculation and input contract: network/ethernet-type-length-branch — tool.io

Similar or alternative tools