Mininet Python API Reference Manual
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
mininet.link.TCIntf Class Reference

Interface customized by tc (traffic control) utility Allows specification of bandwidth limits (various methods) as well as delay, loss and max queue length. More...

Inheritance diagram for mininet.link.TCIntf:
mininet.link.Intf

Public Member Functions

def bwCmds (self, bw=None, speedup=0, use_hfsc=False, use_tbf=False, latency_ms=None, enable_ecn=False, enable_red=False)
 Return tc commands to set bandwidth.
 
def tc (self, cmd, tc='tc')
 Execute tc command for our interface.
 
def config (self, bw=None, delay=None, jitter=None, loss=None, gro=False, txo=True, rxo=True, speedup=0, use_hfsc=False, use_tbf=False, latency_ms=None, enable_ecn=False, enable_red=False, max_queue_size=None, **params)
 Configure the port and set its properties. More...
 

Static Public Member Functions

def delayCmds (parent, delay=None, jitter=None, loss=None, max_queue_size=None)
 Internal method: return tc commands for delay and loss.
 

Static Public Attributes

int bwParamMax = 1000
 

Additional Inherited Members

Detailed Description

Interface customized by tc (traffic control) utility Allows specification of bandwidth limits (various methods) as well as delay, loss and max queue length.

Member Function Documentation

◆ config()

def mininet.link.TCIntf.config (   self,
  bw = None,
  delay = None,
  jitter = None,
  loss = None,
  gro = False,
  txo = True,
  rxo = True,
  speedup = 0,
  use_hfsc = False,
  use_tbf = False,
  latency_ms = None,
  enable_ecn = False,
  enable_red = False,
  max_queue_size = None,
**  params 
)

Configure the port and set its properties.

Parameters
bwbandwidth in b/s (e.g. '10m')
delaytransmit delay (e.g. '1ms' )
jitterjitter (e.g. '1ms')
lossloss (e.g. '1' )
groenable GRO (False)
txoenable transmit checksum offload (True)
rxoenable receive checksum offload (True)
speedupexperimental switch-side bw option
use_hfscuse HFSC scheduling
use_tbfuse TBF scheduling
latency_msTBF latency parameter
enable_ecnenable ECN (False)
enable_redenable RED (False)
max_queue_sizequeue limit parameter for netem Helper method: bool -> 'on'/'off'

The documentation for this class was generated from the following file: