org.onosproject.net.behaviour.QosDescription Maven / Gradle / Ivy
/*
* Copyright 2017-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.onosproject.net.behaviour;
import com.google.common.annotations.Beta;
import org.onlab.util.Bandwidth;
import org.onosproject.net.Annotated;
import org.onosproject.net.Description;
import java.util.Map;
import java.util.Optional;
/**
* Default implementation of immutable Qos description.
*/
@Beta
public interface QosDescription extends Description, Annotated {
/**
* Denotes the type of the Qos.
*/
enum Type {
/**
* Corresponds to Hierarchy token bucket classifier.
*/
HTB,
/**
* Corresponds to Hierarchical Fair Service Curve classifier.
*/
HFSC,
/**
* Corresponds to Stochastic Fairness Queueing classifier.
*/
SFQ,
/**
* Corresponds to Controlled Delay classifier classifier.
*/
CODEL,
/**
* Corresponds to Fair Queuing with Controlled Delay classifier.
*/
FQ_CODEL,
/**
* No operation.
*/
NOOP,
/**
* DPDK egress policer.
*/
EGRESS_POLICER
}
/**
* Returns qos identifier.
*
* @return qos identifier
*/
QosId qosId();
/**
* Returns qos type.
*
* @return qos type
*/
Type type();
/**
* Returns the max rate of qos, Valid only in specific qos type.
*
* @return Maximum rate shared by all queued traffic, in bit/s.
*/
Optional maxRate();
/**
* Returns Committed Information Rate of Qos, Valid only in specific qos type.
* the CIR is measured in bytes of IP packets per second.
*
* @return cir
*/
Optional cir();
/**
* Returns Committed Burst Size of Qos, Valid only in specific qos type.
* the CBS is measured in bytes and represents a token bucket.
*
* @return cbs
*/
Optional cbs();
/**
* Returns map of integer-Queue pairs, Valid only in specific qos type.
*
* @return queues
*/
Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy