- Table of Contents
-
- 11-Network Management and Monitoring Configuration Guide
- 00-Preface
- 01-System maintenance and debugging configuration
- 02-NQA configuration
- 03-iNQA configuration
- 04-NTP configuration
- 05-PoE configuration
- 06-SNMP configuration
- 07-RMON configuration
- 08-Event MIB configuration
- 09-NETCONF configuration
- 10-SmartMC configuration
- 11-EPA configuration
- 12-CWMP configuration
- 13-EAA configuration
- 14-Process monitoring and maintenance configuration
- 15-Mirroring configuration
- 16-sFlow configuration
- 17-Information center configuration
- 18-Packet capture configuration
- 19-VCF fabric configuration
- 20-Cloud connection configuration
- 21-Ansible configuration
- 22-Chef configuration
- 23-Puppet configuration
- 24-EPS agent configuration
- 25-eMDI configuration
- 26-SQA configuration
- 27-Sampler configuration
- 28-NetStream configuration
- 29-IPv6 NetStream configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
27-Sampler configuration | 60.58 KB |
Contents
Restrictions and guidelines: sampler configuration
Display and maintenance commands for a sampler
Samplers and IPv4 NetStream configuration examples
Example: Configuring samplers and IPv4 NetStream
Configuring samplers
About sampler
A sampler selects a packet from sequential packets and sends the packet to other service modules for processing. Sampling is useful when you want to limit the volume of traffic to be analyzed. The sampled data is statistically accurate and sampling decreases the impact on the forwarding capacity of the device.
The following sampling modes are available:
· Fixed mode—The first packet is selected from sequential packets in each sampling.
· Random mode—Any packet might be selected from sequential packets in each sampling.
A sampler can sample packets for NetStream. Then, only the sampled packets are sent to and processed by the NetStream module. For more information about NetStream, see "Configuring NetStream."
Restrictions and guidelines: sampler configuration
This feature is supported only in R6515P06 and later versions.
Creating a sampler
1. Enter system view.
system-view
2. Create a sampler.
sampler sampler-name mode { fixed | random } packet-interval [ n-power ] rate
By default, no samplers exist.
Display and maintenance commands for a sampler
Execute display commands in any view.
Task |
Command |
Display configuration information about the sampler. |
display sampler [ sampler-name ] [ slot slot-number ] |
Samplers and IPv4 NetStream configuration examples
Example: Configuring samplers and IPv4 NetStream
Network configuration
As shown in Figure 1, configure samplers and NetStream as follows:
· Configure IPv4 NetStream on the device to collect statistics on outgoing traffic.
· Send the NetStream data to port 5000 on the NetStream server.
· Configure random sampling in the outbound direction to select one packet randomly from 256 packets on GigabitEthernet 1/0/2.
Configuration procedure
# Create sampler 256 in random sampling mode, and set the sampling rate to 8. One packet from 256 packets is selected.
[Device] sampler 256 mode random packet-interval n-power 8
# Enable IPv4 NetStream to use sampler 256 to collect statistics about outgoing traffic on GigabitEthernet 1/0/2.
[Device] interface gigabitethernet 1/0/2
[Device-GigabitEthernet1/0/2] ip netstream outbound
[Device-GigabitEthernet1/0/2] ip netstream outbound sampler 256
[Device-GigabitEthernet1/0/2] quit
# Configure the address and port number of the NetStream server as the destination for the NetStream data export. Use the default source interface for the NetStream data export.
[Device] ip netstream export host 12.110.2.2 5000
Verifying the configuration
# Display configuration information for sampler 256.
[Device] display sampler 256
Sampler name: 256
Mode: Random; Packet-interval: 8; IsNpower: Y