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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

35 SCTP Agents 28835.1 <strong>The</strong> Base SCTP Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28835.1.1 Configur<strong>at</strong>ion Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28935.1.2 Comm<strong>and</strong>s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29135.2 Exte<strong>ns</strong>io<strong>ns</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29235.2.1 HbAfterRto SCTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29235.2.2 MultipleFastRtx SCTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29235.2.3 Timestamp SCTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29335.2.4 MfrHbAfterRto SCTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29335.2.5 MfrHbAfterRto SCTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29335.3 Tracing SCTP Dynamics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29335.4 SCTP Applic<strong>at</strong>io<strong>ns</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29435.5 Example Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29535.5.1 Singled Homed Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29535.5.2 Multihomed Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29636 Agent/SRM 29836.1 Configur<strong>at</strong>ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29836.1.1 Trivial Configur<strong>at</strong>ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29836.1.2 Other Configur<strong>at</strong>ion Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30036.1.3 St<strong>at</strong>istics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30136.1.4 Tracing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30236.2 Architecture <strong>and</strong> Internals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30436.3 Packet H<strong>and</strong>ling: Processing received messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30436.4 Loss Detection—<strong>The</strong> Class SRMinfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30636.5 Loss Recovery Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30636.6 Session Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30836.7 Extending the Base Class Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30936.7.1 Fixed Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30936.7.2 Adaptive Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30936.8 SRM objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31036.9 Comm<strong>and</strong>s <strong>at</strong> a glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31137 PLM 31337.1 Configur<strong>at</strong>ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31337.2 <strong>The</strong> Packet Pair Source Gener<strong>at</strong>or . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31537.3 Architecture of the PLM Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31637.3.1 I<strong>ns</strong>tanti<strong>at</strong>ion of a PLM Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31637.3.2 I<strong>ns</strong>tanti<strong>at</strong>ion of a PLM Receiver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31637.3.3 Reception of a Packet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31737.3.4 Detection of a Loss . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31837.3.5 Joining or Leaving a Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31837.4 Comm<strong>and</strong>s <strong>at</strong> a Glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318VI Applic<strong>at</strong>ion 32038 Applic<strong>at</strong>io<strong>ns</strong> <strong>and</strong> tra<strong>ns</strong>port agent API 32138.1 <strong>The</strong> class Applic<strong>at</strong>ion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32138.2 <strong>The</strong> tra<strong>ns</strong>port agent API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32238.2.1 Attaching tra<strong>ns</strong>port agents to nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32238.2.2 Attaching applic<strong>at</strong>io<strong>ns</strong> to agents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32338.2.3 Using tra<strong>ns</strong>port agents via system calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32338.2.4 Agent upcalls to applic<strong>at</strong>io<strong>ns</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3238

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

Saved successfully!

Ooh no, something went wrong!