Thanx again for the reply.
In the following proc, where it sets ackRcvd_, there I will set
acknowledgment nos. of the packets that it will receive. Where as, 'sntp'
class I just created to monitor that after some timeout if the corresponding
ACKs recvd or not, if not then it will resend the pa
On 7/19/06, Shafiq Hashmi <[EMAIL PROTECTED]> wrote:
> Yeah, I made mistake in deriving from the class. I changed it to Agent now.
> The new code is here. But basically I want to change this variable in Tcl
> code and track it in C++. Is it not possible ?
Ah!, I see now - I thought you wanted thin
Yeah, I made mistake in deriving from the class. I changed it to Agent now.
The new code is here. But basically I want to change this variable in Tcl
code and track it in C++. Is it not possible ?
In C++
class sntp : public Agent{
public:
sntp();
virtual ~sntp();
virtual vo
On 7/19/06, Tarun Saxena <[EMAIL PROTECTED]> wrote:
>
>
> To calculate the bandwidth:
>
> set bw [$sink set bytes_]
This should give you the number of bytes transferred during the
simulation. Bandwidth would be a property of the link over which this
connection is made.
> puts "[$tcp set maxcwnd_
Hello everybody
Can anyone help me how to find energy consumption at MAC layer in a wireless
network ( old trace wireless format) and take results to xgraph to have a graph
with awk script ?
Thanks for help
On 7/19/06, Shafiq Hashmi <[EMAIL PROTECTED]> wrote:
> Thanx for the reply Abhitjeet. Here is the code in Tcl. Of course there are
> tons of other lines in between, but I put the relevant ones only.
Please find comments further inline:
>
> Application/LEACH instproc init args {
>
>$self inst
Hi,
You can simulate a perfect MAC layer with:
$ns_ node-config -macType Mac
Regards,
fran
On Wednesday 19 July 2006 19:19, Kelvin Chou wrote:
> Hi,
> I am simulating a network layer protocol of the wireless ad hoc network,
> and I would like to target on the network layer performance and assum
Hello
I am trying to calculate throughput over a TCP connection for different
upper bounds on the sender window size. The methods used are as following.
For binding the sender's window:
$tcp set maxcwnd_ 3
To calculate the bandwidth:
set bw [$sink set bytes_]
puts "[$tcp set maxcwnd_] [expr $
Hello,
I need to run multiple iterations of my simulation (in the order of
~100). I'd rather not re-run ns2 for each iteration since doing so
requires reestablishing the network and initializing ns2 each time.
Instead, at some time t, I'd like all traffic in the network to
disappear. And at ti
Thanx
- Original Message -
From: "Shafiq Hashmi" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, July 18, 2006 5:03 PM
Subject: [ns] Reading a variable from C++, which is declared and set in OTcl
>
> Hello all,
>
> I want to access a variable created in OTcl, from C++ files. Tried bind()
> fu
Thanx for the reply Abhitjeet. Here is the code in Tcl. Of course there are
tons of other lines in between, but I put the relevant ones only.
Application/LEACH instproc init args {
$self instvar data_no ackRcvd_
set ackRcvd_ 0
}
LEACH/LEACH-C instproc recv {args} {
$self instvar ms
I can't run the following example successfully.
http://www-sop.inria.fr/mistral/personnel/Eitan.Altman/COURS-NS/TCL+PERL/wrls-dsr.tcl
After ruuning :
$ ns wrls-dsr.tcl
I get the following outputs without any other result.
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/
Hi,
I am simulating a network layer protocol of the wireless ad hoc network, and I
would like to target on the network layer performance and assume a perfect MAC
layer in which there is no collision, packet drop or buffering delay. Can I do
this by simply making the following modifications in
regarding your questions, the answer is "yes" to all.
However, there is a much faster way to make temporary changes to the otcl
lib, especially useful when debugging and redefining a standard procedure:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html#_Toc124667330
.."to avoid modifying th
On 7/19/06, Lambrakis Emmanouil <[EMAIL PROTECTED]> wrote:
>
> Hi ns-users,
>
Hello,
>
> I am new to this group. I would like some help with wireless simulations. I
> want to calculate the energy end delay for wireless topology. There are
> same scripts in the ns_ users but all for wired
Hi ns-users,
I am new to this group. I would like some help with wireless simulations. I
want to calculate the energy end delay for wireless topology. There are same
scripts in the ns_ users but all for wired networks. Is there anyone have
any awk script to calcu
Hi,
I am a newer. When I use nrlolsr as adhoc routing protocol for
wired-cum-wireless simulation with the following script in NS2, I found
the udp connection can be set up between wired and wireless nodes, but
the tcp communication can't work. Do you have any idea what's wrong?
Basically,
Hello,
I am trying to simulate ODMRP. The Rice University multicasting extension
compiles successfully [http://www.monarch.cs.rice.edu/]. Please note that I
am using ns-allinone-2.1b8a. However, when I try to run following command
to simulate ODMRP:
./ns scripts/run.tcl -x 1200 -y 800 -stop 900
Hi Jackie
please go to the link below and download the document and the tools files.
http://icapeople.epfl.ch/aad/teaching/ns/ns.html
The document shows you how to setup a scenario to measure the throughput
step by step for 802.11 for any other protocol you require.
The tools folder contains a
Hi,
I am working with wireless network. In that i wanted to make a mobilenode down
at some time and then make it up later. Can i do that in ns-2.28?
Has anybody written a script for that?
Please help.
Vijay
Hi.
My question is: is it possible to add a second send_my_msg() function to
the agent, because a I receive the next error message:
adc/adaptive-receiver.o(.gnu.linkonce.r._ZTV12AdaptiveRcvr+0x68):
undefined reference to `Agent::send_cross_layer_msg(int, char const*)'
It is assumed that this fu
Dear all,
I am new to NS2 and currently doing some simulation work on the 802.11 wireless
network MAC layer. At this moment, I am trying to test the data throughput in
MAC layer via NS2 but I still cannot find a good way to do it. If it is OK,
could someone here give some advise or teach me ho
Dear all:
recently I have read a paper "Medium Access Control With A Dynamic Duty
Cycle For Sensor Networks",the DSMAC proposed in this paper is a modified
version of SMAC.I want to acquire for the source code of DSMAC.Please help
me, thank you!
Best regards!
David
23 matches
Mail list logo