Table 1 describes the key fields in the telemetry packet reported by the device to the NMS.
{"node_id_str":"@dta","subscription_id_str":"subscript","sensor_path":"huawei-ifit:ifit/huawei-ifit-statistics:flow-statistics/flow-statistic","proto_path":"huawei_ifit.Ifit","collection_id":29,"collection_start_time":"2020-02-20 23:41:16.647","msg_timestamp":"2020-02-20 23:41:16.721","data_gpb":{"row":[{"timestamp":"2020-02-20 23:41:16.647","content":"{"flow-statistics":{"flow-statistic":[{"flow-id":"1179649","direction":"Direction_INGRESS","address-family":"AddressFamily_IPV4","source-ip":"10.1.1.1","destination-ip":"10.1.1.2","source-mask":24,"destination-mask":24,"source-port":0,"destination-port":0,"protocol":255,"vpn-name":"vpn1","if-index":8,"error-info":0,"interval":10,"period-id":"158221327","packet-count":"82237","byte-count":"9046070","timestamp-second":1582213260,"timestamp-nanosecond":43014419,"ttl":255,"dscp":255}]}}","path":{"node":[]}}],"delete":[],"generator":{"generator_id":0,"generator_sn":0,"generator_sync":false}},"collection_end_time":"2020-02-20 23:41:16.647","current_period":0,"except_desc":"OK","product_name":"NetEngine 8000 F","encoding":"Encoding_GPB","data_str":""}
When bidirectional static flows are configured, the data format of the backward flow is the same as that of the forward flow. For details, see the forward flow example.
{"node_id_str":"A70","subscription_id_str":"ifittest","sensor_path":"huawei-ifit:ifit/huawei-ifit-statistics:flow-peer-ip-statistics/flow-peer-ip-statistic","proto_path":"huawei_ifit.Ifit","collection_id":2374,"collection_start_time":"2020-02-17 16:00:06.097","msg_timestamp":"2020-02-17 16:00:06.120","data_gpb":{"row":[{"timestamp":"2020-02-17 16:00:06.097","content":"{"flow-peer-ip-statistics":{"flow-peer-ip-statistic":[{"flow-id":"1376257","direction":"Direction_INGRESS","peer-ip":"10.1.1.1","vpn-name":"l3vpn","error-info":1,"interval":10,"if-index":613,"period-id":"158192640","packet-count":"2891452","byte-count":"329625528","timestamp-second":1581926391,"timestamp-nanosecond":186691056}]}}","path":{"node":[]}}],"delete":[],"generator":{"generator_id":0,"generator_sn":0,"generator_sync":false}},"collection_end_time":"2020-02-17 16:00:06.097","current_period":0,"except_desc":"OK","product_name":"NetEngine 8000 F","encoding":"Encoding_GPB","data_str":""}
{"node_id_str":"A70","subscription_id_str":"ifittest","sensor_path":"huawei-ifit:ifit/huawei-ifit-statistics:flow-locator-statistics/flow-locator-statistic","proto_path":"huawei_ifit.Ifit","collection_id":10,"collection_start_time":"2020-02-17 06:15:16.047","msg_timestamp":"2020-02-17 06:15:16.104","data_gpb":{"row":[{"timestamp":"2020-02-17 06:15:16.047","content":"{"flow-locator-statistics":{"flow-locator-statistic":[{"flow-id":"1769473","direction":"Direction_INGRESS","locator-prefix":"2001:db8:1::1","prefix-length":64,"vpn-name":"srv6bev6vpn","error-info":1,"interval":10,"period-id":"158189131","if-index":613,"packet-count":"1445728","byte-count":"164812992","timestamp-second":1581891300,"timestamp-nanosecond":691200260}]}}","path":{"node":[]}}],"delete":[],"generator":{"generator_id":0,"generator_sn":0,"generator_sync":false}},"collection_end_time":"2020-02-17 06:15:16.047","current_period":0,"except_desc":"OK","product_name":"NetEngine 8000 F","encoding":"Encoding_GPB","data_str":""}
{"node_id_str":"A70","subscription_id_str":"ifittest","sensor_path":"huawei-ifit:ifit/huawei-ifit-statistics:flow-locator-statistics/flow-locator-statistic","proto_path":"huawei_ifit.Ifit","collection_id":10,"collection_start_time":"2020-02-17 06:15:16.047","msg_timestamp":"2020-02-17 06:15:16.104","data_gpb":{"row":[{"timestamp":"2020-02-17 06:15:16.047","content":"{"flow-locator-statistics":{"flow-locator-statistic":[{"flow-id":"1769473","direction":"Direction_INGRESS","locator-prefix":"2001:db8:1::1","prefix-length":64,"vpn-name":"srv6bev6vpn","error-info":1,"interval":10,"period-id":"158189131","if-index":613,"packet-count":"1445728","byte-count":"164812992","timestamp-second":1581891300,"timestamp-nanosecond":691200260}]}}","path":{"node":[]}}],"delete":[],"generator":{"generator_id":0,"generator_sn":0,"generator_sync":false}},"collection_end_time":"2020-02-17 06:15:16.047","current_period":0,"except_desc":"OK","product_name":"NetEngine 8000 F","encoding":"Encoding_GPB","data_str":""}
Field |
Data Type |
Description |
---|---|---|
node_id_str |
Character string |
Device name |
subscription_id_str |
Character string |
Telemetry subscription name |
sensor_path |
Character string |
Sampling XPath |
proto_path |
Character string |
Sampling proto |
collection_id |
Integer |
Collection ID |
collection_start_time |
YYYY-MM-DD, HH:MM:SS |
Collection timestamp |
msg_timestamp |
YYYY-MM-DD, HH:MM:SS |
Message timestamp |
data_gpb |
- |
Message content |
timestamp |
YYYY-MM-DD, HH:MM:SS |
Timestamp |
flow-id |
Integer |
ID of a flow to be measured |
direction |
Character string |
Instance direction |
address-family |
Character string |
Address type |
source-ip |
Dotted decimal notation |
Source IP address |
destination-ip |
Dotted decimal notation |
Destination IP address |
source-mask |
Integer |
Source IP address mask |
destination-mask |
Integer |
Destination IP address mask |
source-port |
Integer |
Source port |
destination-port |
Integer |
Destination port |
protocol |
Integer |
Protocol type |
vpn-name |
Character string |
VPN name |
if-index |
Integer |
Interface index |
error-info |
Integer |
Error flag
|
interval |
Integer |
Measurement period |
period-id |
Integer |
Period ID |
packet-count |
Integer |
Number of packets |
byte-count |
Integer |
Number of packet bytes |
timestamp-second |
Integer |
Second part of the timestamp |
timestamp-nanosecond |
Integer |
Nanosecond part of the timestamp |
ttl |
Integer |
TTL value |
dscp |
Integer |
Differentiated services code point |
peer-ip |
Dotted decimal notation |
Peer IP address |
locator-prefix |
32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X |
Peer locator |
prefix-length |
Integer |
Peer locator prefix |