p4lang / p4-applications

P4 Applications WG repo
107 stars 45 forks source link

Telemetry Report: Support packet fragments longer than 1020 bytes #89

Closed mickeyspiegel closed 3 years ago

mickeyspiegel commented 3 years ago

Some customers do not want to truncate the packet fragments included in telemetry reports. This commit defines the maximum value of 'Report Length' 0xFF as a special value that indicates a length greater than or equal to 0xFF in 4-byte words. That value indicates that this individual report extends to the end of the UDP payload, i.e. there are no subsequent individual reports in this telemetry report.

When coalescing of multiple individual reports into a single telemetry report is desired, the operator must specify a maximum truncate length less than or equal to 254 * 4 = 1016 bytes, including metadata and other individual report fields.

jklr commented 3 years ago

@rsivakolundu