Skip to content
Eddie Kohler edited this page Oct 17, 2017 · 3 revisions

Block Element Documentation

NAME

Block — Click element; drops packets with high rate

SYNOPSIS

Block(THRESH)

Ports: 1 input, 2 outputs
Processing: agnostic

DESCRIPTION

THRESH is an integer.

Splits packets based on the dst rate annotation set by Monitor. If the annotation is less or equal to THRESH, the packet is pushed on output 0, otherwise on 1.

Is THRESH is 0 then all packets are pushed on output 0.

EXAMPLES

 b :: Block(500);
 
 ... -> Monitor(...) ->
 ... -> b[0] -> ...
 ... -> b[1] -> Discard;

Discards all packets that are preceded by more than 500 siblings.

ELEMENT HANDLERS

  • thresh (read/write) — value of THRESH

SEE ALSO

IPFlexMonitor

Generated by click-elem2man from ../elements/standard/block.hh:6 on 2017/10/17.

Clone this wiki locally