[ns] Fwd: SMAC Collision Handling algorithm

2013-04-22 Thread Sahil Sharma

Subject: SMAC Collision Handling algorithm
To: ns-users@isi.edu




What is the collision handling algorithm applied in ns2 smac code? I can't
see exponential back off anywhere.

Please help.

-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.



-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.


[ns] Printing wrong/absurd values of Contention Window.

2013-04-19 Thread Sahil Sharma

Hi all,

I have put in print statement to print the contention window of every
packet. I am getting absurd output in the console now.

I have added the following statement:
printf(adaptiveListen's cw is %f\n, rTime);
The output is like:
adaptiveListen's cw is 29414984
 adaptiveListen's cw is 218418282
 adaptiveListen's cw is 967854922
 adaptiveListen's cw is 1902233440
 adaptiveListen's cw is 1885731528
 adaptiveListen's cw is -990867736
 adaptiveListen's cw is -2029011640

While I have checked in ns-default.tcl that:
Mac/802_11 set CWMin_ 31
 Mac/802_11 set CWMax_ 1023

So, the values must be b/w these two ranges.

Can anyone explain me the reason for the absurd output and how it can be
rectified??
-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.


[ns] debugging by printf statement

2013-04-17 Thread Sahil Sharma

Hi,

I have made the changes to 802_11.cc and added printf statements to it (I
have hereby attached a copy of the file). If you want to look for the
changes I have done, you may search for [[[  printf(adaptiveListen's cw is
%d\n, rTime)   ]. But I do not see any such statement in the trace
file produced. Where can I get to see this printed output.


Please help.

-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.


[ns] contention window trace for every packet: where it is?

2013-04-16 Thread Sahil Sharma

Hi,

 I want to know where can I get info about contention window of pkt
transmission i.e if I run wireless scenario where node1 sends 100 packets
to node2. Then, i want to know what is exact cw (i.e it must be between
0-31 or exponentially like that due to BEB algorithm) for each of 100
packet sent. This was really easy to do in glomosim.


-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.


[ns] Awk script to calculate energy-left, thruput, delay of every node

2013-04-15 Thread Sahil Sharma

Hi,

I have a simple wireless scenario and I want to calculate throughput, delay
and energy consumption of every node in this scenario. How can I do this?
Is there any official/documented awk script for this?

-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.


Re: [ns] Problem in mark greig's wireless1.tcl

2013-04-14 Thread Sahil Sharma

Hi,

Thanks for the reply. It worked for me.The tcl script wireless1.tcl is
working perfectly now.

I have one more problem, in tutorial its written Running wireless1-out.nam
we see the three mobilenodes moving in nam window. 
I see that wireless1-out.nam have been created in the directory but have no
idea how to run it. What is the exact command to run .nam file.



On Sun, Apr 14, 2013 at 2:40 PM, Guanglou Zheng zhengguang...@gmail.comwrote:

 Hi Sahil

 I think, you may need to run the wireless1.tcl in the directory of  tcl/ex
 .

 Regards,
 Gordon



 -Original Message-
 From: ns-users-boun...@isi.edu [mailto:ns-users-boun...@isi.edu] On Behalf
 Of Sahil Sharma
 Sent: Sunday, 14 April 2013 8:45 AM
 To: ns-users@ISI.EDU
 Subject: [ns] Problem in mark greig's wireless1.tcl


 Hi,

 I am getting this problem when running wireless1.tcl in mark greig's
 tutorials.

 praving@ubuntu:~/Downloads$ ns wireless1.tcl num_nodes is set 3
 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
 INITIALIZE
 THE LIST xListHead Loading connection pattern. couldn't read file
 ../mobility/scene/cbr-3-test: no such file or directory while executing
 source.orig ../mobility/scene/cbr-3-test
 (uplevel body line 1)
 invoked from within
 uplevel source.orig [list $fileName]
 invoked from within
 if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url
 $fileName] uplevel eval $buffer } else { uplevel source.orig [list
 $fileName] .
 (procedure source line 8)
 invoked from within
 source $val(cp)
 (file wireless1.tcl line 88)
 praving@ubuntu:~/Downloads$ tcl/ex/wireless-mitf.tcl
 bash: tcl/ex/wireless-mitf.tcl: No such file or directory


 How can I remove this. Please help.
 --
 Regards,
 Sahil Sharma

 $25: for you a pizza and some beers with friends, for someone might change
 their lives. Think about it.




-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.


[ns] Add data to node

2013-04-13 Thread Sahil Sharma

Hi,

I want to add an int data[ranging 0-7] associated with every node. How and
in which file I need to make the changes?

To be specific, I need to use this data in MaC layer for contending in the
medium i.e in contention window.

-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.


[ns] Trace: Basics

2013-04-13 Thread Sahil Sharma

How can I open the trace file? Where and how can I check the throughput,
delay etc. of the nodes?

-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.


[ns] Problem in mark greig's wireless1.tcl

2013-04-13 Thread Sahil Sharma

Hi,

I am getting this problem when running wireless1.tcl in mark greig's
tutorials.

praving@ubuntu:~/Downloads$ ns wireless1.tcl
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern…
couldn’t read file “../mobility/scene/cbr-3-test”: no such file or directory
while executing
“source.orig ../mobility/scene/cbr-3-test”
(“uplevel” body line 1)
invoked from within
“uplevel source.orig [list $fileName]”
invoked from within
“if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
…”
(procedure “source” line 8)
invoked from within
“source $val(cp)”
(file “wireless1.tcl” line 88)
praving@ubuntu:~/Downloads$ tcl/ex/wireless-mitf.tcl
bash: tcl/ex/wireless-mitf.tcl: No such file or directory


How can I remove this. Please help.
-- 
Regards,
Sahil Sharma

$25: for you a pizza and some beers with friends, for someone might change
their lives. Think about it.