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.

24.5 Memory Leaks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20824.5.1 OTcl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20924.5.2 C/C++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20925 M<strong>at</strong>hem<strong>at</strong>ical Support 21025.1 R<strong>and</strong>om Number Gener<strong>at</strong>ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21025.1.1 Seeding <strong>The</strong> RNG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21125.1.2 OTcl Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21325.1.3 C++ Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21425.2 R<strong>and</strong>om Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21525.3 Integrals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21625.4 <strong>ns</strong>-r<strong>and</strong>om . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21725.5 Some m<strong>at</strong>hem<strong>at</strong>ical-support rel<strong>at</strong>ed objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21825.6 Comm<strong>and</strong>s <strong>at</strong> a glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21826 Trace <strong>and</strong> Monitoring Support 22026.1 Trace Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22026.1.1 OTcl Helper Functio<strong>ns</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22126.2 Library support <strong>and</strong> examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22226.3 <strong>The</strong> C++ Trace Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22426.4 Trace File Form<strong>at</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22526.5 Packet Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22726.6 Queue Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22826.7 Per-Flow Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23026.7.1 <strong>The</strong> Flow Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23026.7.2 Flow Monitor Trace Form<strong>at</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23026.7.3 <strong>The</strong> Flow Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23126.8 Comm<strong>and</strong>s <strong>at</strong> a glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23127 Test Suite Support 23427.1 Test Suite Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23427.2 Write a Test Suite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23428 <strong>ns</strong> Code Styles 23728.1 Indent<strong>at</strong>ion style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23728.2 Variable Naming Conventio<strong>ns</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23728.3 Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237IV Routing 23929 Unicast Routing 24029.1 <strong>The</strong> Interface to the Simul<strong>at</strong>ion Oper<strong>at</strong>or (<strong>The</strong> API) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24029.2 Other Configur<strong>at</strong>ion Mechanisms for Specialised Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24129.3 Protocol Specific Configur<strong>at</strong>ion Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24229.4 Internals <strong>and</strong> Architecture of Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24329.4.1 <strong>The</strong> classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24329.4.2 Interface to Network Dynamics <strong>and</strong> Multicast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24729.5 Protocol Internals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24829.6 Unicast routing objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24929.7 Comm<strong>and</strong>s <strong>at</strong> a glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2496

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

Saved successfully!

Ooh no, something went wrong!