Dear all,
Can someone help me to wite a code to simulate a wireless sensor cover
I an working on ns2.26 patched with nrlsensor sim
Regards Srirupa
On Mon, 24 Jul 2006 [EMAIL PROTECTED] wrote :
Send Ns-users mailing list submissions to
ns-users@isi.edu
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.isi.edu/mailman/listinfo/ns-users
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than Re: Contents of Ns-users digest...
Today's Topics:
1. Wireless packet size limit + wireless bandwidth question (Heo Heo)
2. Re: transmission power for mobile nodes (Phil Miller)
3. Re: Wireless packet size limit + wireless bandwidth question
(Phil Miller)
4. runnig ns with argument? (a question about DMAC) (chen guoming)
5. R: how to implement DCF in NS2 (Marco Fiore)
6. Install the GPRS module (kaier)
7. How to use SCTP application traffic ? (kerwin)
8. Service based classification for SFQ/DRR (S.Mehdi Sheikhalishahi)
9. Re: Simulate a delay and additional packet payload (Muth S)
--
Message: 1
Date: Sat, 22 Jul 2006 17:18:26 -0700 (PDT)
From: Heo Heo [EMAIL PROTECTED]
Subject: [ns] Wireless packet size limit + wireless bandwidth question
To: ns-users@ISI.EDU
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-1
Hi all,
I was doing a simple wireless simulation in which 2 nodes send are
placed next to each other, with one being the sender and the other being
the receiver (based on the Simple.tcl on ns website). The sender sends
500 packets to the receiver.
1) I tried to change the packet size from 512 to 1024 bytes. I parsed
the trace file I find out that:
- If the packet size is 512 bytes, 500 packets were sent.
- If the packet size is 1024 bytes, 1000 packets were sent.
It seems to me that some layer has automatically split up the 1024-byte
packets
into smaller parts.
So, my question is: what is the default wireless packet size, and how
to change it ? and Which layer actually split up the big packets ?
2) My next question is about the wireless bandwidth.
By default, ns uses a wireless link bandwidth of 2 Mbps. By
changing the packet interval, I have at most 670 Kbps. Because there are only
2 nodes, the 2 nodes must be using full bandwidth for this. Given that
there are some overhead (RTS/CTS, packet headers, etc.), I would think
I should get about 1.5Mbps. So, why is the actual speed so much lower
than that ? Is it natural ?
Thanks a lot for your help.
Heo
-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
starting at 1?/min.
--
Message: 2
Date: Sun, 23 Jul 2006 00:45:20 -0400
From: Phil Miller [EMAIL PROTECTED]
Subject: Re: [ns] transmission power for mobile nodes
To: M. Akif YAZICI [EMAIL PROTECTED]
Cc: ns-users@ISI.EDU
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello everyone,
I am trying to simulate CAP-SV routing protocol for ad hoc networks,
derived from AODV. I need to control the transmission power of each
node and vary it according to the next hop since my protocol logs the
min. power to reach each neighbor. Is there anyone who knows how to
achieve this through C++? I tried the following and it did not work:
Tcl tcl = Tcl::instance();
tcl.evalf(Phy/WirelessPhy set Pt_ %f, myPower);
Or, can I reach the WirelessPhy object through mac/mac-802_11.cc?
There is a variable called netif_ through which I can reach the
nodes and their energy modules as netif_-node()-energy_model(), but
the problem is netif_ is a Phy * instance, not WirelessPhy *.
Try casting it, something like
(WirelessPhy*)netif_-node()-energy_model()
Another thing is what is the relation between Pt_ and Pt_consume_?
My best guess would be that in simulations where energy consumption is
relevant, Pt_ is the power output used to compute signal propagation
and reception, while Pt_consume_ is the power that the node expends
per unit time that it is transmitting.
I am supposed to complete my MS thesis in a month or so, so I am very
short on time. Any help is appreciated. Thanks,
Good luck with it!
Phil
--
Message: 3
Date: Sun, 23 Jul 2006 01:08:56 -0400
From: Phil Miller [EMAIL PROTECTED]
Subject: Re: [ns] Wireless packet size limit + wireless bandwidth
question
To: Heo Heo [EMAIL PROTECTED]
Cc: ns-users@ISI.EDU
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Heo,
Have a look at
http://www-ece.rice.edu/~jpr/ns/docs/ns-802_11b.html.
It answers your direct questions.
You may also wish