File: README.NS

package info (click to toggle)
ns2 2.35%2Bdfsg-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 78,808 kB
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 816; awk: 525; csh: 355
file content (70 lines) | stat: -rw-r--r-- 3,201 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
###########################################################

# README         : Diffusion port into ns-2
# author         : Padma Haldar
#
#
###########################################################

We have completed the first-cut of porting diffusion testbed code into ns.
Being the first-cut, we shall continue to work on
extending/debugging/improving the port.
You can get the diffusion code from the latest snapshot from http://www.isi.edu/nsnam/ns/ns-build.html
Please note that since we plan to work on the port,
you'll need to download the latest snapshot to see the most recent updates.

There is a version of diffusion already in ns which was implemented
several years back and had become relatively old and outdated. The newer
version, ported from SCADDS group testbed has several features not present
in the older version. We outline the highlights of this port below:

* Directed Diffusion has been implemented by SCADDS group at USC/ISI.
Briefly it consists of 
(a) an application layer that generates interest (for sinks) and data (for
sources)
(b) a core Diffusion layer that serves as an input/output interface for
all diffusion communications
(c) filters that are used to manipulate data/messages that may have
several applications (in-network aggregration, logging , debugging etc)
(d) an elaborate data naming or attribute system.

* Application layer APIs are defined for subscribing (unsubscribing) to
certain types of data, publishing (unpublish) certain set of data and
for sending and receiving data into/from the network.

* Diffusion interests and data are represented by
attribute-value-operation tuplet. The operation field is used to match
attributes by means of certain operation rules.

* The older version of diffusion already in ns has a very simple attribute
representation (single integer); and filters were not implemented.

* The port is under ~ns/diffusion3 dir and tcl methods for setting up
core-diffusion and diffusion-application agents in a node can be found
under ~ns/tcl/lib/{ns-lib,ns-diffusion}.tcl

* tcl/ex/diffusion3/(simple-diffusion.tcl, diffusion-100.tcl,
diffusion-500.tcl) are
example scripts. The first scenario consists of a simple 3 node topology using ping application,
whereas the second and third scripts use a 100 and 500 node topology
respectively, using the the same ping app.
tcl/test/test-suite-diffusion3.tcl is a test-suite for validating the
port.

* Basic ns tracing can be turned on as shown in the examples.

* For the first-cut, we have a ping application defined as 
(Application/DiffApp/Ping{Source/Sink}). We plan to have other diffusion applications in place in the fiture.
Also note that we still don't have tcl APIs for setting up applications,
attributes etc. we continue to work on them.

*  Note that ns does not currently have a MAC layer that is energy-aware
(for example, a TDMA MAC).  We expect to integrate an energy-aware MAC
developed by Wei Ye shortly, but in the meantime diffusion users
may wish to adjust the 802.11 MAC energy parameters to approximate a
sensor-net specific MAC.

* This version of the port is based on diffusion3.2.0

Any comments, bug-reports and other feedbacks are welcome as usual.