Skip to content

Even-numbered destination_port constraint #179

@knneth

Description

@knneth

How does one best describe an IS-05 constraint that the RTP destination port number must be an even number (for a "good" RTCP-/IPMX-sender)?

The problem

  • We initially constrained IPMX senders to the enum [5004, validated-but-configured-outside-of-NMOS-port], but got pushback from customers that more range is needed.
  • Listing every conceivable port number in an enum isn't a feasible option.
  • The pattern keyword is only valid for strings.
  • If we reject odd-numbered ports between a minimum and maximum with an error message, then the NMOS testing suite will roast us.
  • If we allow odd-numbered ports, then we're encouraging potential receiver incompatibilities, and the IPMX testing suite will roast us.

Potential solution
JSON schema defines a multipleOf keyword that seems fitting, but alas, this isn't currently allowed by constraint-schema.json AFAICT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions