[Contents] [Prev] [Next] [Index] [Report an Error]

Sampling a Single SONET/SDH Interface

The following configuration gathers statistical sampling information from a small percentage of all traffic on a single SONET/SDH interface and collects it in a file named sonet-samples.txt.

Create the filter:

[edit firewall family inet]
filter {
sample-sonet {
then {
sample;
accept;
}
}
}

Apply the filter to the SONET/SDH interface:

[edit interfaces]
so-0/0/1 {
unit 0 {
family inet {
filter {
input sample-sonet;
}
address 10.127.68.254/32 {
destination 10.127.74.7;
}
}
}
}

Finally, configure traffic sampling:

[edit forwarding-options]
sampling {
input {
family inet {
rate 100;
run-length 2;
}
}
output {
file {
filename sonet-samples-txt;
files 40;
size 5m;
}
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]