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.

option available values defaultgeneraladdressType fl<strong>at</strong>, hierarchical fl<strong>at</strong>MPLS ON, OFF OFFboth s<strong>at</strong>ellite- <strong>and</strong> wireless-orientedwiredRouting ON, OFF OFFllType LL, LL/S<strong>at</strong> ""macTypeMac/802_11, Mac/Csma/Ca, Mac/S<strong>at</strong>,Mac/S<strong>at</strong>/U<strong>ns</strong>lottedAloha, Mac/Tdma ""ifqType Queue/DropTail, Queue/DropTail/PriQueue ""phyType Phy/WirelessPhy, Phy/S<strong>at</strong> ""adhocRoutingwireless-orientedDIFFUSION/RATE, DIFFUSION/PROB, DSDV,DSR, FLOODING, OMNIMCAST, AODV, TORA ""propType Propag<strong>at</strong>ion/TwoRayGround, Propag<strong>at</strong>ion/Shadowing ""propI<strong>ns</strong>tance Propag<strong>at</strong>ion/TwoRayGround, Propag<strong>at</strong>ion/Shadowing ""antType Antenna/OmniAntenna ""channel Channel/WirelessChannel, Channel/S<strong>at</strong> ""topoI<strong>ns</strong>tance ""mobileIP ON, OFF OFFenergyModel EnergyModel ""initialEnergy ""rxPower ""txPower ""idlePower ""agentTrace ON, OFF OFFrouterTrace ON, OFF OFFmacTrace ON, OFF OFFmovementTrace ON, OFF OFFerrProc UniformErrorProc ""FECProc ? ?toraDebug ON, OFF OFFs<strong>at</strong>ellite-orienteds<strong>at</strong>NodeType polar, geo, terminal, geo-repe<strong>at</strong>er ""downlinkBW ""Table 5.1: Available optio<strong>ns</strong> for node configur<strong>at</strong>ion (see tcl/lib/<strong>ns</strong>-lib.tcl).class Classifier : public NsObject {public:~Classifier();void recv(Packet*, H<strong>and</strong>ler* h = 0);protected:Classifier();void i<strong>ns</strong>tall(int slot, NsObject*);void clear(int slot);virtual int comm<strong>and</strong>(int argc, co<strong>ns</strong>t char*co<strong>ns</strong>t* argv);virtual int classify(Packet *co<strong>ns</strong>t) = 0;void alloc(int);NsObject** slot_; /* table th<strong>at</strong> maps slot number to a NsObject */int <strong>ns</strong>lot_;int maxslot_;};51

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

Saved successfully!

Ooh no, something went wrong!