EtherQosQueue

Package: inet.linklayer.ethernet

EtherQosQueue

compound module

Queue module that gives the PAUSE frames a higher priority, and can be parametrized with an IOutputQueue for serving the other frames.

EtherFrameClassifier DropTailQueue IOutputQueue PriorityScheduler

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Properties

Name Value Description
display i=block/queue

Gates

Name Direction Size Description
in input
out output

Unassigned submodule parameters

Name Type Default value Description
pauseQueue.frameCapacity int 100

Source code

//
// Queue module that gives the PAUSE frames a higher priority,
// and can be parametrized with an ~IOutputQueue for serving the
// other frames.
//
module EtherQosQueue like IOutputQueue
{
    parameters:
        @display("i=block/queue");
    gates:
        input in;
        output out;
    submodules:
        classifier: EtherFrameClassifier {
            @display("p=100,200");
        }
        pauseQueue: DropTailQueue {
            queueName = "pauseQueue";
            @display("p=250,100");
        }
        dataQueue: <default("DropTailQueue")> like IOutputQueue {
            parameters:
                @display("p=250,300;q=l2queue");
        }
        scheduler: PriorityScheduler {
            @display("p=400,200");
        }
    connections:
        in --> classifier.in;
        classifier.pauseOut --> pauseQueue.in;
        classifier.defaultOut --> dataQueue.in;
        pauseQueue.out --> scheduler.in++;
        dataQueue.out --> scheduler.in++;
        scheduler.out --> out;
}

File: src/inet/linklayer/ethernet/EtherQosQueue.ned