nmeta2dpae.classifiers package

Submodules

nmeta2dpae.classifiers.payload_uri_1 module

This module is part of the nmeta2 suite . It defines a custom traffic classifier . To create your own custom classifier, copy this example to a new file in the same directory and update the code as required. Call it from nmeta by specifying the name of the file (without the .py) in main_policy.yaml . Classifiers are called per packet, so performance is important .

class nmeta2dpae.classifiers.payload_uri_1.Classifier(logger)

Bases: object

A custom classifier module for import by nmeta2

classifier(flow)

A really basic HTTP URI classifier to demonstrate ability to differentiate based on a payload characteristic. . This method is passed a Flow class object that holds the current context of the flow . It returns a dictionary specifying a key/value of QoS treatment to take (or not if no classification determination made). . Only works on TCP.

nmeta2dpae.classifiers.statistical_qos_bandwidth_1 module

This module is part of the nmeta2 suite . It defines a custom traffic classifier . To create your own custom classifier, copy this example to a new file in the same directory and update the code as required. Call it from nmeta by specifying the name of the file (without the .py) in main_policy.yaml . Classifiers are called per packet, so performance is important .

class nmeta2dpae.classifiers.statistical_qos_bandwidth_1.Classifier(logger)

Bases: object

A custom classifier module for import by nmeta2

classifier(flow)

A really basic statistical classifier to demonstrate ability to differentiate ‘bandwidth hog’ flows from ones that are more interactive so that appropriate classification metadata can be passed to QoS for differential treatment. . This method is passed a Flow class object that holds the current context of the flow . It returns a dictionary specifying a key/value of QoS treatment to take (or not if no classification determination made). . Only works on TCP.

Module contents