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 OS Services Interfaces Library for Routing Devices.
The sampling service set is configured using the sampling-service statement at the [edit services service-set service-set-name] hierarchy level.
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). The subunit number defaults to 0. The reverse-flow statement is not mandatory. All sampled traffic is considered to be forward traffic. If you set the reverse-flow statement, it is ignored.
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.