Skip to content
HALOWERK

Internet Routing and Networks

packet token bucket conformance

Return token balance and conforming packet decisions for a supplied ordered arrival trace.

POST https://netz.halowerk.com/v1/packet-token-bucket-conformance

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
packetsarrayYes
ratenumberYes
capacitynumberYes
initialnumberYes
Show full input schema
{
  "type": "object",
  "properties": {
    "packets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "arrival": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000
          },
          "bytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000000
          }
        },
        "required": [
          "arrival",
          "bytes"
        ],
        "additionalProperties": false
      },
      "maxItems": 200,
      "minItems": 1
    },
    "rate": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000
    },
    "capacity": {
      "type": "number",
      "minimum": 1,
      "maximum": 1000000000
    },
    "initial": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000000
    }
  },
  "required": [
    "packets",
    "rate",
    "capacity",
    "initial"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "packets": [
    {
      "arrival": 0,
      "bytes": 8
    },
    {
      "arrival": 1,
      "bytes": 8
    }
  ],
  "rate": 5,
  "capacity": 10,
  "initial": 10
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub โ†’