< Home

Data Model for Real-Time Traffic Statistics

The file name of the configuration model for real-time traffic statistics is huawei-capture.yang.

Table 1 Real-time traffic statistics configuration objects
Object Description Value Range Remarks
/huawei-capture:trace-pkt Collects statistics on the traffic of a single packet flow in real time. N/A N/A
/huawei-capture:trace-pkt/input/destination-ip-address Specifies the destination IPv4 address of packets. The value is in dotted decimal notation. N/A
/huawei-capture:trace-pkt/input/destination-port Specifies the transport-layer destination port number of packets. The value is an integer in the range from 0 to 65535. N/A
/huawei-capture:trace-pkt/input/destination-mac Specifies the destination MAC address of packets. The value is in the format of H:H:H:H:H:H, where H represents a hexadecimal number of 1 to 2 bits. N/A
/huawei-capture:trace-pkt/input/source-ip-address Specifies the source IPv4 address of packets. The value is in dotted decimal notation. N/A
/huawei-capture:trace-pkt/input/source-port Specifies the transport-layer source port number of packets. The value is an integer in the range from 0 to 65535. N/A
/huawei-capture:trace-pkt/input/source-mac Specifies the source MAC address of packets. The value is in the format of H:H:H:H:H:H, where H represents a hexadecimal number of 1 to 2 bits. N/A
/huawei-capture:trace-pkt/input/protocol Specifies the protocol number of packets. The value is an integer in the range from 1 to 255. N/A
/huawei-capture:trace-pkt/input/timeout Specifies the timeout interval for real-time traffic statistics. The value is an integer in the range from 1 to 300, in seconds. The default value is 60. N/A
/huawei-capture:trace-pkt/input/trace-cancel Indicates whether to cancel the real-time traffic statistics collection. The value is of the Boolean type:
  • true: Cancel the real-time traffic statistics collection.
  • false: Deliver the real-time traffic statistics configuration.
The default value is false.
N/A
/huawei-capture:trace-multi-pkt Collects statistics on the traffic of multiple packet flows in real time. N/A Currently, only collects statistics on the traffic of a single packet flow in real time is supported.
/huawei-capture:trace-multi-pkt/input/trace-pkt-list/trace-pkt-id Specifies the ID of the packet flow. The value is an integer in the range from 0 to 65535. N/A
/huawei-capture:trace-multi-pkt/input/trace-pkt-list/destination-ip-address Specifies the destination IPv4 address of packets. The value is in dotted decimal notation. N/A
/huawei-capture:trace-multi-pkt/input/trace-pkt-list/destination-port Specifies the transport-layer destination port number of packets. The value is an integer in the range from 0 to 65535. N/A
/huawei-capture:trace-multi-pkt/input/trace-pkt-list/destination-mac Specifies the destination MAC address of packets. The value is in the format of H:H:H:H:H:H, where H represents a hexadecimal number of 1 to 2 bits. N/A
/huawei-capture:trace-multi-pkt/input/trace-pkt-list/source-ip-address Specifies the source IPv4 address of packets. The value is in dotted decimal notation. N/A
/huawei-capture:trace-multi-pkt/input/trace-pkt-list/source-port Specifies the transport-layer source port number of packets. The value is an integer in the range from 0 to 65535. N/A
/huawei-capture:trace-multi-pkt/input/trace-pkt-list/source-mac Specifies the source MAC address of packets. The value is in the format of H:H:H:H:H:H, where H represents a hexadecimal number of 1 to 2 bits. N/A
/huawei-capture:trace-multi-pkt/input/trace-pkt-list/protocol Specifies the protocol number of packets. The value is an integer in the range from 1 to 255. N/A
/huawei-capture:trace-multi-pkt/input/trace-pkt-list/timeout Specifies the timeout interval for real-time traffic statistics. The value is an integer in the range from 1 to 300, in seconds. The default value is 60. N/A
/huawei-capture:trace-multi-pkt/input/trace-pkt-list/trace-cancel Indicates whether to cancel the real-time traffic statistics collection. The value is of the Boolean type:
  • true: Cancel the real-time traffic statistics collection.
  • false: Deliver the real-time traffic statistics configuration.
The default value is false.
N/A
Table 2 Real-time traffic statistics result query
Object Description Value Range Remarks
/huawei-capture:get-pkt-trace Displays the real-time traffic statistics of a single packet flow. N/A Parameters under this object can be configured but do not take effect.
/huawei-capture:get-multi-pkt-trace Displays the real-time traffic statistics of multiple packet flows. N/A Parameters under this object can be configured but only trace-pkt-id takes effect.
/huawei-capture:get-multi-pkt-trace/input/trace-pkt-list/trace-pkt-id Displays real-time traffic statistics of the packet flow with a specified ID. The value is an integer in the range from 0 to 65535. Currently, only one packet flow can be specified.
Table 3 Information returned by the switch after the real-time traffic statistics are queried
Object Description
/huawei-capture:get-multi-pkt-trace/output/trace-pkt-reply/trace-pkt-id Indicates the ID of a packet flow.
  • /huawei-capture:get-pkt-trace/output/input-interface/packet-interface-list
  • /huawei-capture:get-multi-pkt-trace/output/trace-pkt-reply/input-interface/packet-interface-list
Displays the real-time traffic statistics result of the packets received by a port:
  • packet-interface: port name
  • packet-counter: total number of packets received by the port
  • /huawei-capture:get-pkt-trace/output/output-interface/packet-interface-list
  • /huawei-capture:get-multi-pkt-trace/output/trace-pkt-reply/output-interface/packet-interface-list
Indicates the real-time traffic statistics result of the packets sent by a port:
  • packet-interface: port name
  • packet-counter: total number of packets sent by the port
Table 4 Notification message
Item Description
esn Indicates the device ESN.
trace-pkt-id Indicates the ID of a packet flow.
result Indicates the result of real-time traffic statistics collection.
input-interface Indicates the interface that receives a packet flow.
input-counter Indicates the number of received packets.
output-interface Indicates the interface that sends a packet flow.
output-counter Indicates the number of sent packets.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >