Skip to content

[PSA] Make packet arrival time readable in standard way #336

Closed
@jafingerhut

Description

@jafingerhut

This is useful for things like INT, and other features.

I think it might be non-controversial to make at least the time that the packet arrived at a system, or perhaps the time that it started being parsed, available in a standard location, e.g. a metadata field. It would probably be nice if a separate value were also available in egress processing, indicating the time the packet started egress processing (after any queueing delay spent in the PRE queue was finished).

Details that we could try to standardize across implementations, or at least have constants defined in the architecture that let an implementation know what the values are for a particular implementation:

  • number of bits in the time stamp
  • rate that the time stamp increments (e.g. increments one time every clock cycle at 1.5 GHz, or 1.2 GHz, etc. whatever the clock rate of a device is). This seems difficult to make uniform across implementations if the precision will be in clock cycles. An application that did not need such high precision can easily discard least significant bits, but converting to exact multiples of microseconds or milliseconds would not be possible if implementations varied in this way, unless they also permitted a way to do the conversion, e.g. allowed multiplication and/or division by arbitrary constants, or had a built-in conversion function specifically for converting to a particular set of useful units required by some standards.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions