This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.
CheckAverageLength -- Click element; splits a flow of packets depending on their average length.
CheckAverageLength(MIN)
Ports: 1 input, 2 outputs
Processing: Push
Drivers: linuxmodule
Package: unibo_qos
CheckAverageLength splits packets depending on the average length of the last ELM packets received. Only if packets' average lenght is less than the value of min, they get out from output port 1 (thus they could pertain to a real-time flow), from port 0 otherwise. (ELM = 15 packets).
elementclass class_stat {
$first, $av_length, $av_rate, $dscp |
split::SplitFirst($first);
check_length::CheckAverageLength($av_length);
check_rate::Meter($av_rate);
set::SetIPDSCP($dscp);
input->split;
split[1]->[1]output;
split[0]->check_length;
check_length[0]->[2]output;
check_length[1]->check_rate;
check_rate[0]->[3]output;
check_rate[1]->set->[0]output;
}
In the above example, CheckAverageLength is used in combination with the SplitFirst, Meter and SetIPDSCP elements to hook a real-time (not-RTP) flow and mark its packets' DSCP field.
Generated by 'click-elem2man' from 'package/checkaveragelength.hh' on 19/May/2006.