02.10.2013 Views

FTOS Configuration Guide for the C-Series - Force10 Networks

FTOS Configuration Guide for the C-Series - Force10 Networks

FTOS Configuration Guide for the C-Series - Force10 Networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sampling Rate<br />

The sFlow sampling rate is <strong>the</strong> number of packets that are skipped be<strong>for</strong>e <strong>the</strong> next sample is taken. sFlow<br />

does not have time-based packet sampling.<br />

The sflow sample-rate command, when issued in CONFIGURATION mode, changes <strong>the</strong> default<br />

sampling rate. By default, <strong>the</strong> sampling rate of an interface is set to <strong>the</strong> same value as <strong>the</strong> current global<br />

default sampling rate.If <strong>the</strong> value entered is not a correct power of 2, <strong>the</strong> command generates an error<br />

message with <strong>the</strong> previous and next power-of-2 value. Select one of <strong>the</strong>se two number and re-enter <strong>the</strong><br />

command. (For more in<strong>for</strong>mation on values in power-of-2, see Sub-sampling on page 308.)<br />

The sample rate can be configured globally or by interface using <strong>the</strong> sample rate command:<br />

Command Syntax Command Mode Usage<br />

[no] sflow sample-rate<br />

sample-rate<br />

Sub-sampling<br />

CONFIGURATION<br />

or<br />

INTERFACE<br />

Sub-sampling is supported on plat<strong>for</strong>m e<br />

Change <strong>the</strong> global or interface sampling rate. Rate<br />

must be entered in factors of 2 (eg, 4096m 8192).<br />

sample-rate range: 256-8388608 <strong>for</strong> C-<strong>Series</strong><br />

2-8388608 <strong>for</strong> E-<strong>Series</strong><br />

The sFlow sample rate is not <strong>the</strong> frequency of sampling, but <strong>the</strong> number of packets that are skipped be<strong>for</strong>e<br />

<strong>the</strong> next sample is taken. Although a sampling rate can be configured <strong>for</strong> each port, TeraScale line cards<br />

can support only a single sampling rate per port pipe.<br />

There<strong>for</strong>e, sFlow Agent uses sub-sampling to create multiple sampling rates per port pipe. To achieve<br />

different sampling rates <strong>for</strong> different ports in a port-pipe, sFlow Agent takes <strong>the</strong> lowest numerical value of<br />

<strong>the</strong> sampling rate of all <strong>the</strong> ports within <strong>the</strong> port pipe, and configures all ports to this value. sFlow Agent is<br />

<strong>the</strong>n able to skip samples on ports where you require a larger sampling rate value.<br />

Sampling rates are configurable in powers of two. This allows <strong>the</strong> smallest sampling rate possible to be<br />

configured on <strong>the</strong> hardware, and also allows all o<strong>the</strong>r sampling rates to be available through sub-sampling.<br />

For example, if Gig 1/0 and 1/1 are in a port pipe, and <strong>the</strong>y are configured with a sampling rate of 4096 on<br />

interface Gig 1/0, and 8192 on Gig 1/1, sFlow Agent does <strong>the</strong> following:<br />

1. Configures <strong>the</strong> hardware to a sampling rate of 4096 <strong>for</strong> all ports with sFlow enabled on that port pipe.<br />

2. Configure interface Gig 1/0 to a sub-sampling rate of 1 to achieve an actual rate of 4096.<br />

3. Configure interface Gig 1/1 to a sub-sampling rate of 2 to achieve an actual rate of 8192.<br />

308 sFlow

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!