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


Traffic Sampling and Forwarding Configuration

To configure forwarding options and traffic sampling, include statements at the [edit forwarding-options] hierarchy level:

[edit forwarding-options]
accounting group-name {
    output {
        cflowd [ hostnames ] { 
            aggregation {
                autonomous-system;
                destination-prefix;
                protocol-port;
                source-destination-prefix {
                    caida-compliant;
                }
                source-prefix;
            }
            autonomous-system-type (origin | peer);
            port port-number;
            version format;
        }
        flow-active-timeout seconds;
        flow-inactive-timeout seconds;
        interface [ interface-names ] {
            engine-id number;
            engine-type number;
            source-address address;
        }
    }
}
family family-name {
    filter {
        input filter-name;
    }
    flood {
        input filter-name;
    }
}
hash-key {
    family inet {
        layer-3 ;
        layer-4 ;
    }
    family mpls {
        label-1;
        label-2;
        payload {
            ip;
        }
    }
}
helpers {
    bootp {
        description description-of-service;
        interface interface-group {
            description description-of-interface;
            maximum-hop-count number;
            minimum-wait-time seconds;
            no-listen;
            server [ addresses ];
        }
        maximum-hop-count number;
        minimum-wait-time seconds;
        server [ addresses ];
    }

    domain {
        description description-of-service;

        server address < [ routing-instance routing-instance-names ] >;

        interface interface-name {
            description description-of-interface;

            no-listen;

            server address < [ routing-instance routing-instance-names ] >;

        }
    }
    tftp {
        description description-of-service;

        server address < [ routing-instance routing-instance-names ] >;

        interface interface-name {
            description description-of-interface;

            no-listen;

            server address < [ routing-instance routing-instance-names ] >;
        }

    }

    traceoptions {

        file {

            files number;

            size bytes;

        }
        flag flag;

        level level;

    }

}
monitoring group-name {
    family inet {
        output {
            cflowd hostname { 
                port port-number;
            }
            export-format cflowd-version-5;
            flow-active-timeout seconds;
            flow-export-destination {
                collector-pic;
            }
            flow-inactive-timeout seconds;
            interface interface-name {
                engine-id number;
                engine-type number;
                input-interface-index number;
                output-interface-index number;
                source-address address;
            }
        }
    }
}
next-hop-group [ group-names ] {
    interface interface-name {
        next-hop [ addresses ];
    }
}
port-mirroring {
    input {
        family inet {
            rate number;
            run-length number;
        }
    }
    output {
        interface interface-name {
            next-hop address;
        }
        no-filter-check;
    }
    traceoptions {

        file filename {

            files number;

            size bytes;

            (world-readable | no-world-readable);

    }
}
sampling {
    disable; 
    input {
        family inet {
            max-packets-per-second number;
            rate number ;
            run-length number ;
        }
    }
    output {
        cflowd hostname {
            aggregation {
                autonomous-system;
                destination-prefix;
                protocol-port;
                source-destination-prefix {
                    caida-compliant;
                }
                source-prefix;
            }
            autonomous-system-type (origin | peer);

            (local-dump | no-local-dump);

            port port-number;
            source-address address;

            version format; 

        }
        file {
            disable;
            filename filename;
            files number;
            size bytes ;
            (stamp | no-stamp);
            (world-readable | no-world-readable);
        }
        flow-active-timeout seconds;
        flow-inactive-timeout seconds;
        interface [ interface-names ] {
            engine-id number;
            engine-type number;
            source-address address;
        }
    }
    traceoptions {
        file filename  {
            files number;
            size bytes ;
            (world-readable | no-world-readable);
        }
    }
}

This chapter describes the following tasks for configuring traffic sampling and forwarding options:


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