[ns] problem with wimax module in ns-2.29

2011-03-04 Thread zmezm 14

good day everyone , i hope you all doing well ..

i have a problem with my wimax module in ns-2.29 
i already install ns2 with the NIST successfully thanks to your help but when i 
try to run any wimax samples  i get an error im quite new to ns so can you 
pleas help me 

fear@fear-laptop:~/ns2/test$ ns wimaxtest.tcl
Configuration of hierarchical addressing done
num_nodes is set 12
invalid command name Mac/802_16/BS
    while executing
Mac/802_16/BS create _o38 
    invoked from within
catch $className create $o $args msg
    invoked from within
if [catch $className create $o $args msg] {
if [string match __FAILED_SHADOW_OBJECT_ $msg] {
delete $o
return 
}
global errorInfo
error class $...
    (procedure new line 3)
    invoked from within
new $mactype
    (procedure _o28 line 10)
    (Node/MobileNode add-interface line 10)
    invoked from within
$node add-interface $chan $propInstance_ $llType_ $macType_  $ifqType_ 
$ifqlen_ $phyType_ $antType_ $topoInstance_  $inerrProc_ $outerrProc_ $FECProc_
    (procedure _o3 line 70)
    (Simulator create-wireless-node line 70)
    invoked from within
_o3 create-wireless-node 1.0.0
    (eval body line 1)
    invoked from within
eval $self create-wireless-node $args
    (procedure _o3 line 16)
    (Simulator node line 16)
    invoked from within
$ns node 1.0.0
    invoked from within
set BaseStation [$ns node 1.0.0]  
    (file wimaxtest.tcl line 139)


best regards to all ..
    



  

[ns] Problem in start ontime ftp application in DSDV protocol

2011-03-04 Thread Hosseini Nezhad

Hi
Please run the script file(this is Wireless senario).

Could you tel me, why the data packet's send start at (about) 50th Second?
I have set it to start at 10th second.($ns at 10 $ftp start).
I have used DSDV routing protocol, and I think the routing table in
all 3 nodes are created until 3 second(Right?). So, why the packet
sending late until 50th second?

The Script File is as:

# Define Options

set val(chan) Channel/WirelessChannel ;#Channel Type

set val(prop) Propagation/TwoRayGround ;# radio-propagation model

set val(netif) Phy/WirelessPhy ;# network interface type

set val(mac) Mac/802_11 ;# MAC type

set val(ifq) Queue/DropTail/PriQueue ;# interface queue type

set val(ll) LL ;# link layer type

set val(ant) Antenna/OmniAntenna ;# antenna model

set val(ifqlen) 50 ;# max packet in ifq

set val(nn) 3 ;# number of mobilenodes

set val(rp) DSDV ;# routing protocol

#set val(rp) AODV ;# routing protocol

set val(x) 500

set val(y) 400

set val(stop) 150

  set ns [new Simulator]

set tracefd [open simple.tr w]

set windowVsTime2 [open win.tr w]

set namtrace [open SimWrls.nam w]

$ns trace-all $tracefd

$ns namtrace-all-wireless $namtrace $val(x) $val(y)

set topo [new Topography]

$topo load_flatgrid $val(x) $val(y)

create-god $val(nn)

 # Create channel #1 and #2

set chan_1_ [new $val(chan)]

set chan_2_ [new $val(chan)]

  # configure the nodes

$ns node-config -adhocRouting $val(rp) \

-llType $val(ll) \

-macType $val(mac) \

-ifqType $val(ifq) \

-ifqLen $val(ifqlen) \

-antType $val(ant) \

-propType $val(prop) \

-phyType $val(netif) \

-topoInstance $topo \

-agentTrace ON \

-routerTrace ON \

-macTrace OFF \

-movementTrace ON \

-channel $chan_1_

for {set i 0} {$i$val(nn)} {incr i} {

set node_($i) [$ns node]

}

#set initial Location of nodes

$node_(0) set X_ 5.0

$node_(0) set Y_ 5.0

$node_(0) set Z_ 0.0

$node_(1) set X_ 490.0

$node_(1) set Y_ 285.0

$node_(1) set Z_ 0.0

$node_(2) set X_ 150.0

$node_(2) set Y_ 240.0

$node_(2) set Z_ 0.0

#$node_(3) set X_ 230.0

#$node_(3) set Y_ 240.0

#$node_(3) set Z_ 0.0

 #Movement Statemnet

$ns at 10.0 $node_(0) setdest 250.0 250.0 3.0

$ns at 15.0 $node_(1) setdest 45.0 285.0 5.0

$ns at 110.0 $node_(0) setdest 480.0 300.0 5.0

#$ns at 70.0 $node_(1) setdest 455.0 252.0 5.0

#$ns at 90.0 $node_(1) setdest 490.0 285.0 5.0

 set tcp [new Agent/TCP/Newreno]

$tcp set class_ 2

set sink [new Agent/TCPSink]

$ns attach-agent $node_(0) $tcp

$ns attach-agent $node_(1) $sink

$ns connect $tcp $sink

set ftp [new Application/FTP]

$ftp attach-agent $tcp

$ns at 10 $ftp start

proc plotWindow {tcpSource file} {

global ns

set time 0.01

set now [$ns now]

set cwnd [$tcpSource set cwnd_]

puts $file $now $cwnd

$ns at [expr $now+$time] plotWindow $tcpSource $file

}

$ns at 10.1 plotWindow $tcp $windowVsTime2

 for {set i 0} {$i$val(nn)} { incr i} {

$ns initial_node_pos $node_($i) 30

}

for {set i 0} {$i$val(nn)} { incr i} {

$ns at $val(stop) $node_($i) reset;

}

$ns at $val(stop) $ns nam-end-wireless $val(stop)

$ns at $val(stop) stop

$ns at $val(stop)+0.01 puts \end simulation\ ; $ns halt

$ns at 0.1 plotWindow $tcp $windowVsTime2

 proc stop {} {

global ns tracefd namtrace

$ns flush-trace

close $tracefd

close $namtrace

#puts SA:AM

exec nam simwrls.nam 

# exec nam myout2.nam 

exit 0

}

$ns run

-- 
thanks
Hosseini Nazhad.


[ns] always AODV specify shortest path?

2011-03-04 Thread Hosseini Nezhad

Hi
Does the AODV routing protocol guaranty always specify  shortest path to
destination?

Suppose that, there are multiple paths to a destination, and the shortest
path has heavy traffic, so in this shortest path the RREQ packet will
receive to destination latter that long but low traffic path.

Is it correct? Any Idea about this case?!


-- 
Regards;
Hosseini Nazhad.


[ns] problem in modifying dsragent.cc file

2011-03-04 Thread shaunak bhatt

Problem :
Hi i am a newbie to ns2 using fedora 14 using ns2.31
I know that this problem is explained in the ns2 faq section but I am
unable to do it , so it would be gr8  if you can be helpful to me in
this case.

Whenever I am modifying dsragent.cc file I am unable to see any
changes in the tracefiles.
I am changing the options in the file then using these commands inns-2 directory

make clean
make depend
make

to recompile.

Also the ns files are getting executed even after I am deleting the
object files manually .How is that even possible??
ps note that i am deleting the .o files from the place where the
LD_LIBRARY_PATH points to. I used env from bash to see the place.

First i was doing this from root and thought maybe that was causing
problem but the same problem is coming when i am doing it from a
normal user.

Can u please give me pointers to what can the possible cause of this

Regards
Shaunak Bhatt



[ns] Adding new CWND mechanism

2011-03-04 Thread Ghassan Akrem





Hi all friends..
 
I look to test a lot of congestion control algorithm with my new TCP, over 
ns-2.34
 
Any one developed or have a new high performance cwnd mechanism ?
 
Regards




  


[ns] segmentation problem

2011-03-04 Thread narendra k

hi, all
i am getting following segmentation problem when i do make in ns-2.33 can
any one help me out.??
g++ -Wl,-export-dynamic  -o common/ptypes2tcl common/ptypes2tcl.o
./common/ptypes2tcl  gen/ptypes.cc
/bin/sh: line 1:  4546 Segmentation fault  ./common/ptypes2tcl 
gen/ptypes.cc
make: *** [gen/ptypes.cc] Error 139
[root@localhost ns-2.33]#


[ns] Error: No Policy Table entry found

2011-03-04 Thread Alessandro Coppola

I'm using the ns-allinone-2.34 on a Mac OS 10.4.
Can anyone help me with this script? The error is:

*
ERROR: No Policy Table entry found for Source 0-Destination 3.
Policy Table(0):
The policy object doesn't exist, ERROR!!!
*

I used a ns2 script generator for this script, and it goes well until I put
the Applications (CBR and FTP). Here's the script.
Thanks

---

#===
# Simulation parameters setup
#===
set val(stop)   10.0 ;# time of simulation end

#===
#Initialization
#===
#Create a ns simulator
set ns [new Simulator]

$ns color 0 Blue
$ns color 1 Red
$ns color 2 yellow
$ns color 3 green
$ns color 4 black
$ns color 5 pink
$ns color 6 white
$ns color 7 black
set cir 100
set cbs 3000
set pir 3000
set ebs 3000
set pbs 3000
set packetSize 1000
set testTime 10.0;
#Open the NS trace file
set tracefile [open out.tr w]
$ns trace-all $tracefile

#Open the NAM trace file
set namfile [open out.nam w]
$ns namtrace-all $namfile

#Open the NAM trace file
set stats [open stats.tr w]

#===
#Nodes Definition
#===
#Create 5 nodes
set n0 [$ns node]
set n1 [$ns node]
set n3 [$ns node]
set n4 [$ns node]
set n6 [$ns node]

#===
#Routers Definition
#===
#Create 2 routers
set re1 [$ns node]
set rc2 [$ns node]

#===
#Links Definition
#===
#Createlinks between nodes or
#Createlinks between routers or
#Createlinks between routers and nodes
$ns duplex-link $n1 $n3 10.0Mb 1ms DropTail
$ns queue-limit $n1 $n3 50
$ns duplex-link $n0 $n6 10.0Mb 1ms DropTail
$ns queue-limit $n0 $n6 50
$ns duplex-link $re1 $n4 10.0Mb 1ms DropTail
$ns queue-limit $re1 $n4 50
$ns simplex-link $rc2 $re1 2.0Mb 20ms dsRED/core
$ns queue-limit $rc2 $re1 50
$ns simplex-link $re1 $rc2 2.0Mb 20ms dsRED/edge
$ns queue-limit $re1 $rc2 50
$ns simplex-link $n3 $rc2 1.5Mb 10ms dsRED/edge
$ns queue-limit $n3 $rc2 50
$ns simplex-link $n6 $rc2 1.5Mb 10ms dsRED/edge
$ns queue-limit $n6 $rc2 50
$ns simplex-link $rc2 $n3 1.5Mb 10ms dsRED/core
$ns queue-limit $rc2 $n3 50
$ns simplex-link $rc2 $n6 1.5Mb 10ms dsRED/core
$ns queue-limit $rc2 $n6 50

#Give node position (for NAM)
$ns duplex-link-op $n1 $n3 orient right
$ns duplex-link-op $n0 $n6 orient right
$ns duplex-link-op $re1 $n4 orient right
$ns simplex-link-op $rc2 $re1 orient right
$ns simplex-link-op $re1 $rc2 orient left

$ns simplex-link-op $n3 $rc2 orient right-up
$ns simplex-link-op $n6 $rc2 orient right-down
$ns simplex-link-op $rc2 $n3 orient left-down
$ns simplex-link-op $rc2 $n6 orient left-up

#===
#Queue Definition
#===
set FilaE1C2 [[$ns link $re1 $rc2] queue]
set FilaC2E1 [[$ns link $rc2 $re1] queue]
set FilaN3C2 [[$ns link $n3 $rc2] queue]
set FilaN6C2 [[$ns link $n6 $rc2] queue]
set FilaC2N3 [[$ns link $rc2 $n3] queue]
set FilaC2N6 [[$ns link $rc2 $n6] queue]

#===
#   PHB´S Definition
#===
$FilaC2E1 setSchedularMode WRR
$FilaC2E1 addQueueWeights  0 2
$FilaC2E1 addQueueWeights  1 2
$FilaC2E1 addQueueWeights  2 6
$FilaC2E1 meanPktSize $packetSize
$FilaC2E1 set numQueues_ 3
$FilaC2E1 setNumPrec 3
$FilaC2E1 addPHBEntry 0 0 0
$FilaC2E1 addPHBEntry 40 1 0
$FilaC2E1 addPHBEntry 10 2 0
$FilaC2E1 addPHBEntry 18 2 1
$FilaC2E1 addPHBEntry 26 2 2
$FilaC2E1 configQ  0 0 0 10 1.00
$FilaC2E1 configQ  1 0 5 15 0.5
$FilaC2E1 configQ  2 0 10 40 0.01
$FilaC2E1 configQ  2 1 20 20 0.10
$FilaC2E1 configQ  2 2 5 10 0.20

$FilaC2N3 setSchedularMode WRR
$FilaC2N3 addQueueWeights  0 2
$FilaC2N3 addQueueWeights  1 2
$FilaC2N3 addQueueWeights  2 6
$FilaC2N3 meanPktSize $packetSize
$FilaC2N3 set numQueues_ 3
$FilaC2N3 setNumPrec 3
$FilaC2N3 addPHBEntry 0 0 0
$FilaC2N3 addPHBEntry 40 1 0
$FilaC2N3 addPHBEntry 10 2 0
$FilaC2N3 addPHBEntry 18 2 1
$FilaC2N3 addPHBEntry 26 2 2
$FilaC2N3 configQ  0 0 0 10 1.00
$FilaC2N3 configQ  1 0 5 15 0.5
$FilaC2N3 configQ  2 0 10 40 0.01
$FilaC2N3 configQ  2 1 20 20 0.10
$FilaC2N3 configQ  2 2 5 10 0.20

$FilaC2N6 setSchedularMode WRR
$FilaC2N6 addQueueWeights  0 2
$FilaC2N6 addQueueWeights  1 2
$FilaC2N6 addQueueWeights  2 6
$FilaC2N6 meanPktSize $packetSize
$FilaC2N6 set numQueues_ 3
$FilaC2N6 setNumPrec 3
$FilaC2N6 addPHBEntry 0 0 0
$FilaC2N6 addPHBEntry 40 1 0
$FilaC2N6 addPHBEntry 10 2 0
$FilaC2N6 addPHBEntry 18 2 1
$FilaC2N6 addPHBEntry 26 2 2
$FilaC2N6 configQ  0 0 0 10 1.00
$FilaC2N6 configQ  1 0 5 15 0.5
$FilaC2N6 configQ  2 0 10 40 0.01
$FilaC2N6 configQ  2 1 20 20 0.10
$FilaC2N6 configQ  2 2 5 10 0.20


#===
#Agents Definition
#===
#Setup a TCP connection
set tcp0 [new 

[ns] Linux Installation

2011-03-04 Thread Saqib Ali

Hi
I have installed Ns-2.34 on fedora 13.Give waring back compatibility
mode when we ran a sample.tcl file
Any guidance?

Best regards
saqib ali


Re: [ns] Ns2 on Mac OS, problem invoking Nam

2011-03-04 Thread Subha Uthayaraj

Hi,

While installing NS2, may your nam had errors that is your nam has failed
while compilation. Try to compile nam separately and clear those errors.
Then nam will work.

All the best!!!

-- 
Regards,
Subha


Re: [ns] problem with NIST Mob package in NS-2.29 (zmezm 14)

2011-03-04 Thread Subha Uthayaraj

Hi,

To clear extra qualification error, you just need to remove that class.

In your case, go to 620 line of mac802.11.h. then remove *Mac802.11:: keep
calFreq as it is.*

-- 
Regards,
Subha


Re: [ns] Changing behaviour of node.

2011-03-04 Thread swat_nag


Has anybody worked on network coding in ns2?... I hav made changes in my ns2
2.27 and put network coding in it.. but it is giving an rrror called 
segmentation fault when i run the examples with network coding...  Can
anyone tell me the reason behind this??
Thanx..

swat_nag wrote:
 
 Yes, i want to do network coding... Can you tell me how to do it?as in
 what all do i have to know to go about it?... 
 
 Manoj_Kumar wrote:
 
 
 swat_nag wrote:
 
 Im kind of new to ns2, i need help in changing the default working of
 the node. I dont know how to apply the changes to the code.
 
 COnsider 3 nodes: A,B and C. C is like a router. A sends packet to B
 through C and B sends to A via C. In normal operation, when C gets the
 packets simultaneously, it sends one by one to A and after that to B
 (not at a time). But i want C to send both the packets simultaneously to
 A and B. Like this in the receiver end, A will XOR the received packets
 with its own packet so that it receives its required packet. B also does
 the same. 
 
 Can u please tell me how to implement this?...and wat changes are to be
 made and where?... 
 I would really appreciate your help!
 
 In  short, you would want to implement the concept of Network Coding?
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Changing-behaviour-of-node.-tp30800274p31073401.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] [NS-ANS]Re: installation info

2011-03-04 Thread Teerawat@UBC

Hi 

I did some test on NS2 installation few months ago. Here is the result

http://www.ns2ultimate.com/post/439346614/working-combination-ns-2-34-ubuntu-8-04-and-perhaps

There is a problem with the current linux-like distribution. Here is the
solution

http://www.ns2ultimate.com/post/441093095/ns-2-35-works-on-cygwin

Also, if you'd like to know about how to setup the initialization file in 
Linux, please read the following post:

http://www.ns2ultimate.com/post/504833450/linux-initialization-files-bash-profile-and-bashrc

I hope this will help.

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.ece.ubc.ca/~teerawat
http://www.t-issariyakul.blogspot.com
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear

On Mar 4, 2011, at 12:30 PM, narendra k wrote:

 
 hi, all
 i am trying to install NS2.34 in fedora 14 but getting errors like no gcc
 support or c compiler not found like any body who installed NS2.34 in fedora
 plz suggest me.
 
 thank you
 
 Narendra