Template record—a template record is used to define the format of subsequent data records that may be
received in current or future export packets. It is important to note that a template record within an export
packet does not necessarily indicate the format of data records within that same packet. A collector
application must cache any template records received, and then parse any data records it encounters by
locating the appropriate template record within the cache.
一个模板记录用来定义其后的数据记录的格式,这个记录可能在当前或者未来的数据包中。
注意:
在一个数据包中的模板记录不是必然的表明在相同包中包含该格式的数据。如果一个包中包含模板记录,并不一定说明该包包含该模板指定的数据。
一个采用v9协议的数据包收集程序必须缓存接收到的任何模板记录,并使用缓存中的合适的模板提取数据记录。
·
Template ID—the template ID is a unique number that distinguishes this template record from all other
template records produced by the same export device. A collector application that is receiving export
packets from several devices should be aware that uniqueness is not guaranteed across export devices.
Thus, the collector should also cache the address of the export device that produced the template ID in
order to enforce uniqueness.
一个模板ID是一个区别其他所有相同设备产生的模板的唯一的数字,在相同设备上,产生的所有模板都具有唯一ID。一个收集应用程序在接收不同设备的数据包时应该忽略模板ID的唯一性。
因此,收集应用程序应当缓存不同设备的不同模板,以确保模板的唯一性。
Source ID
The Source ID field is a 32-bit value that is used to guarantee uniqueness for all flows exported from a particular device.
一个32位值,该值确保从一个单独设备上数据的所有流的唯一性。