beautypg.com

Configuring samplers, Creating a sampler, Displaying and maintaining a sampler – H3C Technologies H3C MSR 5600 User Manual

Page 188: Sampler configuration example, Network requirements

background image

175

Configuring samplers

A sampler samples packets. The sampler selects a packet from among sequential packets, and it sends

the packet to other service modules for processing.
The following sampling modes are available:

Fixed mode—The first packet is selected from among sequential packets in each sampling.

Random mode—Any packet might be selected from among sequential packets in each sampling.

A sampler can be used to sample packets for NetStream. Only the sampled packets are sent to and
processed by the NetStream module. Sampling is useful when you have too much traffic and 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.
For more information about NetStream, see "Configuring NetStream."

Creating a sampler

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create a sampler.

sampler sampler-name mode
{ fixed | random }

packet-interval rate

By default, no sampler exists.

Displaying and maintaining a sampler

Execute display commands in any view.

Task Command

Display configuration information about the sampler
(MSR 2600/MSR 3600).

display sampler [ sampler-name ]

Display configuration information about the sampler
(MSR 5600).

display sampler [ sampler-name ] [ slot slot-number ]

Sampler configuration example

Network requirements

As shown in

Figure 51

, configure IPv4 NetStream on the device to collect statistics on incoming and

outgoing traffic on Ethernet 1/2. The NetStream data is sent to port 5000 on the NetStream server at

12.110.2.2/16. Do the following:

This manual is related to the following products: