for your eyes only
Knowledge Hurts – a blog of thoughts, things and stuff.

SPAN protocol implementation on NS-2 with gcc 4.3

Jim Lindeman submitted to Benjie Chen code of his SPAN implementation for ns-2. It has been available since 2005 here: http://pdos.csail.mit.edu/~benjie/span/span_ns.html

I updated it to run with gcc 4.x and made it into a patch file in order to apply it in an easy way. It is available at http://www.box.net/shared/esc71ny5ns .

How to apply:

Download the ns-2.28-allinone distribution,  http://www.box.net/shared/ottfdyaz60 (patch for configure scripts in ns-2.28) and http://www.box.net/shared/esc71ny5ns (patch that inserts SPAN into a fresh ns-2.28-allinone), then unzip all files.

cd ns-allinone-2.28
patch -p1 < ns2.28-gcc4-configure-scripts.patch
patch -p1 < ns2.28-span-gcc4.patch
./install

Have fun with the SPAN protocol on NS-2, THE Network Simulator.

Read on! Knowledge hurts.

Advertisement

7 Responses to “SPAN protocol implementation on NS-2 with gcc 4.3”

  1. A ver cabrones, que tiene que funcionar con mpls!!!

    Asi se hace en la universidad carlos III de España…

    Sí, es correcto…

  2. MPLS? Are you sure you’re not mixing up something?

  3. hi, i am working on ns 2.34 and want to run span code how i do this kndly tell me m very thank ful to u

  4. The fact that you are working on ns 2.34 doesn’t mean that any protocol that was ever simulated with ns2 will run on this version.

    Most of the time, a certain protocol implementation has been written for a certain version of ns2. Unfortunatelly, not all APIs inside of ns2 are very stable. That means that a lot of adaptation is needed for things to work smoothly.

    I actually have done the work to adapt Span to ns 2.28, but I remember it only hardly runs.

    My advice: Check, if you cannot use ns 2.28 for your purposes concerning the Span protocol. If you want to compare it with other protocols, the version of ns2 is not as important as really understanding the simulated protocols.
    Look at the change logs of ns2 between ns 2.28 and 2.34. If you see a relevant module of ns2 that has changed in between and will influence your results, then you really will have to adapt Span to ns 2.34, wich will indeed be a lot of work. Otherwise – let it be.

  5. SIR,im working in SPAN protocol..how much is the throughput value for SPAN protocol u got? please tell me so that it will be useful…also how many source and destinations u have considered?
    please guide me with SPAN,what all parameters can be analyzed…please reply sir…Thank you

  6. I did work on the SPAN protocol, but the assumptions might not be exactly what you need. I would suggest, you start looking at the SPAN papers that have been published and if that info is not specific enough for you, there is no other way than simulating it yourself.

    • ok sir,i understand. i have deployed nodes uniformly in the field.Here cbr rate is 1Kbps. The field size is 100m*100m and 100 nodes are deployed.. i got throughput as 200bytes..just see whether it is correct please tell me just the range of values for throughput approximately..Thank you


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.