Technical Documentation

Configuring the Sampling Service Set

In addition to next-hop and interface service sets there is also a sampling service set. Interface and next-hop service sets are explained in the Junos Services Interfaces Configuration Guide.

The sampling service set is configured using the sampling-service statement at the [edit services service-set service-set-name] hierarchy level.

[edit]services {service-set service-set-name {sampling-service {service-interface interface-name;}}}

The service interface is the interface the sampling is taken from. In the case of a sampling service set, the service interface must be a Multiservices PIC interface with a subunit number of 0 (zero). If the subunit is not specified, 0 is assumed. The reverse-flow statement is not mandatory in this case. If no reverse flow is configured, all the sampled traffic is considered to be forward traffic. The next example makes sure that any sampled packet to the ms-6/1/0.0 interface has the service plug-ins plugin1 and plugin2 applied to it.

[edit]services {service-set sset1 {sampling-service {service-interface ms-6/1/0;}extension-service plugin1;extension-service plugin2;service-order {forward-flow [ plugin1 plugin2 ];reverse-flow [ plugin1 plugin2 ];}}}

Published: 2010-07-15

Help
|
My Account
|
Log Out