12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

QUEUEMONITOR/ED OBJECTSThis derived object is capable of differenti<strong>at</strong>ing regular packet drops from early drops. Some queues distinguish regular drops(e.g. drops due to buffer exhaustion) from other drops (e.g. r<strong>and</strong>om drops in RED queues). Under some circumstances, it isuseful to distinguish these two types of drops.St<strong>at</strong>e Variables are:epdrops_ <strong>The</strong> number of packets th<strong>at</strong> have been dropped “early”.ebdrops_ <strong>The</strong> number of bytes comprising packets th<strong>at</strong> have been dropped “early”.Note: because this class is a subclass of QueueMonitor, objects of this type also have fields such as pdrops_ <strong>and</strong> bdrops_.<strong>The</strong>se fields describe the total number of dropped packets <strong>and</strong> bytes, including both early <strong>and</strong> non-early drops.QUEUEMONITOR/ED/FLOWMON OBJECTS<strong>The</strong>se objects may be used in the place of a conventional QueueMonitor object when wishing to collect per-flow counts <strong>and</strong>st<strong>at</strong>istics in addition to the aggreg<strong>at</strong>e counts <strong>and</strong> st<strong>at</strong>istics provided by the basic QueueMonitor.$fmon classifier This i<strong>ns</strong>erts (read) the specified classifier into (from) the flow monitor object. This is used to map incoming packets to whichflows they are associ<strong>at</strong>ed with.$fmon dumpDump the current per-flow counters <strong>and</strong> st<strong>at</strong>istics to the I/O channel specified in a previous <strong>at</strong>tach oper<strong>at</strong>ion.$fmon flowsReturn a character string containing the names of all flow objects known by this flow monitor. Each of these objects are oftype QueueMonitor/ED/Flow.$fmon <strong>at</strong>tach Attach a tcl I/O channel to the flow monitor. Flow st<strong>at</strong>istics are written to the channel when the dump oper<strong>at</strong>ion is executed.Configur<strong>at</strong>ion Parameters are:enable_in_ Set to true by default, indic<strong>at</strong>es th<strong>at</strong> per-flow arrival st<strong>at</strong>e should be kept by the flow monitor. If set to false, onlythe aggreg<strong>at</strong>e arrival inform<strong>at</strong>ion is kept.enable_out_ Set to true by default, indic<strong>at</strong>es th<strong>at</strong> per-flow departure st<strong>at</strong>e should be kept by the flow monitor. If set to false,only the aggreg<strong>at</strong>e departure inform<strong>at</strong>ion is kept.enable_drop_ Set to true by default, indic<strong>at</strong>es th<strong>at</strong> per-flow drop st<strong>at</strong>e should be kept by the flow monitor. If set to false,only the aggreg<strong>at</strong>e drop inform<strong>at</strong>ion is kept.enable_edrop_ Set to true by default, indic<strong>at</strong>es th<strong>at</strong> per-flow early drop st<strong>at</strong>e should be kept by the flow monitor. If set tofalse, only the aggreg<strong>at</strong>e early drop inform<strong>at</strong>ion is kept.QUEUEMONITOR/ED/FLOW OBJECTS<strong>The</strong>se objects contain per-flow counts <strong>and</strong> st<strong>at</strong>istics managed by a QueueMonitor/ED/Flowmon object. <strong>The</strong>y are generallycre<strong>at</strong>ed in an OTcl callback procedure when a flow monitor is given a packet it cannot map on to a known flow. Note th<strong>at</strong> theflow monitor’s classifier is respo<strong>ns</strong>ible for mapping packets to flows in some arbitrary way. Thus, depending on the type ofclassifier used, not all of the st<strong>at</strong>e variables may be relevant (e.g. one may classify packets based only on flow id, in whichcase the source <strong>and</strong> destin<strong>at</strong>ion addresses may not be significant). St<strong>at</strong>e Variables are:src_ <strong>The</strong> source address of packets belonging to this flow.77

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!