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.

Chapter 44Emul<strong>at</strong>ionThis chapter describes the emul<strong>at</strong>ion facility of <strong>ns</strong>. Emul<strong>at</strong>ion refers to the ability to introduce the simul<strong>at</strong>or into a livenetwork. Special objects within the simul<strong>at</strong>or are capable of introducing live traffic into the simul<strong>at</strong>or <strong>and</strong> injecting trafficfrom the simul<strong>at</strong>or into the live network.Emul<strong>at</strong>or cave<strong>at</strong>s:• While the interfaces described below are not expected to change drastically, this facility is still under development <strong>and</strong>should be co<strong>ns</strong>idered experimental <strong>and</strong> subject to change.• <strong>The</strong> facility described here has been developed under FreeBSD 2.2.5, <strong>and</strong> use on other systems has not been tested bythe author.• Because of the currently limited portability of emul<strong>at</strong>ion, it is only compiled into <strong>ns</strong>e (build it with “make <strong>ns</strong>e”), notst<strong>and</strong>ard <strong>ns</strong>.44.1 Introduction<strong>The</strong> emul<strong>at</strong>ion facility can be subdivided into two modes:1. opaque mode – live d<strong>at</strong>a tre<strong>at</strong>ed as opaque d<strong>at</strong>a packets2. protocol mode – live d<strong>at</strong>a may be interpreted/gener<strong>at</strong>ed by simul<strong>at</strong>orIn opaque mode, the simul<strong>at</strong>or tre<strong>at</strong>s network d<strong>at</strong>a as uninterpreted packets. In particular, real-world protocol fields are notdirectly manipul<strong>at</strong>ed by the simul<strong>at</strong>or. In opaque mode, live d<strong>at</strong>a packets may be dropped, delayed, re-ordered, or duplic<strong>at</strong>ed,but because no protocol processing is performed, protocol-specific traffic manipul<strong>at</strong>ion scenarios (e.g. “drop the TCP segmentcontaining a retra<strong>ns</strong>mission of sequence number 23045”) may not be performed. In protocol mode, the simul<strong>at</strong>or is able tointerpret <strong>and</strong>/or gener<strong>at</strong>e live network traffic containing arbitrary field assignments. To d<strong>at</strong>e (Mar 1998), only Opaque Modeis currently implemented.<strong>The</strong> interface between the simul<strong>at</strong>or <strong>and</strong> live network is provided by a collection of objects including tap agents <strong>and</strong> networkobjects. Tap agents embed live network d<strong>at</strong>a into simul<strong>at</strong>ed packets <strong>and</strong> vice-versa. Network objects are i<strong>ns</strong>talled in tap agents<strong>and</strong> provide an entrypoint for the sending <strong>and</strong> receipt of live d<strong>at</strong>a. Both objects are described in the following sectio<strong>ns</strong>.383

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

Saved successfully!

Ooh no, something went wrong!