Re: [ns] Ns-users Digest, Vol 80, Issue 28

2010-10-10 Thread Dhara Buch



sir,
1. while executing ./configure command under NS-2.33 directory, I get 
an error 
message specifying that OTCL is not installed. I have installed NS-all in 
one-2.33. Which step should I follow to install OTCL  solve this error. 

2. I have referred Mark Greis's Tutorial. I want to do some changes in 
recv() 
function in ping.cc file. after doing the modification, which commands and in 
which sequence should i execute to make it 
effective?   



  


[ns] Query regarding flow based Poisson distribution generator in ns2!!

2010-10-10 Thread svetla verma

Hi,
  I am a research student from king's college london and currently using
ns2 for my research.
 Is anybody aware of how to implement flow based poisson distribution in
ns2???
Please reply if you have any idea regarding it or have any suitable link..

Thanks,
Svetla


[ns] Channel Throughput

2010-10-10 Thread S.Ziaee

Hi Dears

I am trying to plot output of 802.11 . X axis is load , Y axis is channel
throughput .
I found  formula to calculate Channel throughput like this in some paper :

 E[U]
S = --
E[B] + E[I]

U : utilization time
B: busy time
I : idle time

How can i calculate S in tcl ? I have correctly received packets and total
packets .

i change the above formula to below . Is it right ?

 (Number of Received Packet to Agent) * (Data Packet Transmittion
time)
S =

   Total Simulation Time


Re: [ns] Ns-users Digest, Vol 80, Issue 28

2010-10-10 Thread S.Ziaee

Do you install it on Linux or cygwin ?

On Sun, Oct 10, 2010 at 12:49 PM, Dhara Buch dharab...@yahoo.com wrote:




 sir,
1. while executing ./configure command under NS-2.33 directory, I
 get an error
 message specifying that OTCL is not installed. I have installed NS-all in
 one-2.33. Which step should I follow to install OTCL  solve this error.

2. I have referred Mark Greis's Tutorial. I want to do some changes
 in recv()
 function in ping.cc file. after doing the modification, which commands and
 in
 which sequence should i execute to make it

 effective?







[ns] Error in Tcl installation

2010-10-10 Thread Dhara Buch



Hello,
  While executig make command for tcl8.4.18, I get error message that :
   'tz' is unknown in TclpGetClicks() and Tcl_GetTime().
    How to solve it?
Thank you,
Dhara Buch



  


[ns] delay in the detection of mobile node by static node

2010-10-10 Thread ankit kesharwani

Hi,

I am working in project where i have simulated some static wifi node
(802.11), which are talking to one mobile node
Problem:  the problem is thatthe mobile node is not detected
imediatelly as it comes in the range of static node.
Data transfer between static node and mobile node will start after 6-8
sec after coming in the range.
I think it is happen because of backoff mechanism of 802.11 ,as static
node would not get any node in its vicinity,so
it increases its contention window...select random back off time
from window and go for sleep that period of time.

So please help to configure these setting for 802.11 in ns2...

and please suggest me some direction to fix this problem.where to
look in ns2 to configure the setting so that the
 node will send beacons (repeatedly), with short delay between two
consecutive beacons, so that it will detect mobile node immediately.

 Thank you!!!


Ankit Kesharwani
IIT Kanpur, India



Re: [ns] delay in the detection of mobile node by static node

2010-10-10 Thread S.Ziaee

See this file for 802.11 TCL configuration :
/tcl/lib/ns-default.tcl

And for C++ configuration you should see :
mac/mac-802_11.cc(h)

On Sun, Oct 10, 2010 at 6:52 PM, ankit kesharwani
stylish.an...@gmail.comwrote:


 Hi,

 I am working in project where i have simulated some static wifi node
 (802.11), which are talking to one mobile node
 Problem:  the problem is thatthe mobile node is not detected
 imediatelly as it comes in the range of static node.
 Data transfer between static node and mobile node will start after 6-8
 sec after coming in the range.
 I think it is happen because of backoff mechanism of 802.11 ,as static
 node would not get any node in its vicinity,so
 it increases its contention window...select random back off time
 from window and go for sleep that period of time.

 So please help to configure these setting for 802.11 in ns2...

 and please suggest me some direction to fix this problem.where to
 look in ns2 to configure the setting so that the
  node will send beacons (repeatedly), with short delay between two
 consecutive beacons, so that it will detect mobile node immediately.

  Thank you!!!


 Ankit Kesharwani
 IIT Kanpur, India




[ns] Asking about configure snoop protocol in wired cum wireless architecture

2010-10-10 Thread AS-SUNDAIS

I have configure script for snoop protocol in wired cum wireless
architecture, but i always failed and got segmentation problem..
can you help me about this problem?
this is my script (just main scenario):

source ../lan/vlan.tcl

Phy/WirelessPhy set freq_ 2.472e9  ;#channel
Phy/WirelessPhy set bandwidth_ 11Mb;#Data Rate
Phy/WirelessPhy set Pt_ 0.28183815   ;#range radio 250m

set opt(chan)   Channel/WirelessChannel;# channel type
set opt(prop)   Propagation/TwoRayGround   ;# radio-propagation model
set opt(netif)  Phy/WirelessPhy;# network interface type
set opt(mac)Mac/802_11 ;# MAC type
set opt(macw)  Mac/802_3
#set opt(mac)Mac/802_11Ext
set opt(ifq)Queue/DropTail/PriQueue;# interface queue type
set opt(ll) LL   ;# link layer type
set opt(lls) LL/LLSnoop   ;# link layer type
set opt(ant)Antenna/OmniAntenna;# antenna model
set opt(ifqlen) 50   ;# max packet in ifq
set opt(nn) 2  ;# number of mobilenodes
set opt(adhocRouting)   DSDV;# routing protocol

set opt(bw)   10Mb
set opt(delay) 1ms
set opt(ifqw) Queue/DropTail
set opt(phy) Phy/WiredPhy
#set opt(node) 2
set opt(chanw) Channel

set opt(cp)  ;# cp file not used
set opt(sc)  ;# node movement file.

set opt(x)  1000   ;# x coordinate of topology
set opt(y)  1000   ;# y coordinate of topology
set opt(seed)   0.0;# random seed
set opt(stop)   15 ;# time to stop simulation

set opt(ftp1-start) 100.0

set num_wired_nodes 2
set num_bs_nodes1;# number of base nodes

# =

if { $opt(x) == 0 || $opt(y) == 0 } {
puts No X-Y boundary values given for wireless topology\n
}
if {$opt(seed)  0} {
puts Seeding Random number generator with $opt(seed)\n
ns-random $opt(seed)
}

set ns_   [new Simulator]
#ns-random 0

$ns_ node-config -addressType hierarchical

AddrParams set domain_num_ 2   ;# number of domains
lappend cluster_num 1 1 ;# number of clusters in each domain
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 3 3;# number of nodes in each cluster
AddrParams set nodes_num_ $eilastlevel ;# of each domain

set tracefd  [open wireless.tr w]
set namtrace [open wireless.nam w]
$ns_ trace-all $tracefd
$ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y)

set topo   [new Topography]

$topo load_flatgrid $opt(x) $opt(y)

create-god [expr $opt(nn) + $num_bs_nodes]

set temp {0.0.0 0.0.1}   ;# hierarchical addresses
for {set i 0} {$i  $num_wired_nodes} {incr i} {
set W($i) [$ns_ node [lindex $temp $i]]
lappend nodelist $W($i)
}


set chan_1_ [new $opt(chan)]
# Configure for AP1
$ns_ node-config -mobileIP OFF \
 -adhocRouting $opt(adhocRouting) \
 -llType $opt(ll) \
-macType $opt(mac) \
 -ifqType $opt(ifq) \
 -ifqLen $opt(ifqlen) \
 -antType $opt(ant) \
 -propType $opt(prop) \
 -phyType $opt(netif) \
-topoInstance $topo \
 -wiredRouting ON \
-agentTrace ON \
 -routerTrace ON \
 -macTrace OFF \
-channel $chan_1_

set AP1 [$ns_ node 1.0.0]
$AP1 random-motion 0
$AP1 color blue
$AP1 label Akses_point

$AP1 set X_ 500.
$AP1 set Y_ 600.
$AP1 set Z_ 0.

$ns_ node-config -wiredRouting OFF
set client1 [$ns_ node 1.0.1]
set node_(0) $client1
$node_(0) base-station [AddrParams addr2id [$AP1 node-addr]]
$client1 label client1

set client2 [$ns_ node 1.0.2]
set node_(1) $client2
$node_(1) base-station [AddrParams addr2id [$AP1 node-addr]]
$client2 label client2

#coordinate for client2
$client2 set Z_ 0.
$client2 set Y_ 500.
$client2 set X_ 650.

#coordinate for client1
$client1 set Z_ 0.
$client1 set Y_ 500.
$client1 set X_ 500.

set lan [$ns_ newLan $nodelist $opt(bw) \
$opt(delay) -llType $opt(ll) -ifqType $opt(ifqw) \
-macType $opt(macw) -chanType $opt(chanw) -address 0.0.2]

$ns_ duplex-link $W(1) $AP1 10Mb 0.00012 DropTail
$ns_ queue-limit $W(1) $AP1 10

#$ns_ duplex-link-op $W(0) $W(1) orient right
$ns_ duplex-link-op $W(1) $AP1 orient right

#Colors
$ns_ color 0 blue
$ns_ color 1 red
$ns_ color 2 green
$ns_ color 3 magenta

$W(0) label server FTP
$W(1) label PC

set tcp1 [new Agent/TCP/Vegas]

[ns] Floating Point Exception

2010-10-10 Thread Ahmed Hesham


Hi All

   I am facing a floating point exception when I using a .h file I made given 
that I used it in other project and it worked fine. I also made a loop for 
10 iterations and it also gave true results unitl I used it with ns-2 it 
gave floating point exception. the .h file is for RSA if any one could help 
even with a good rsa code.

Regards,