[ns] Installing multiple version of ns-2.

2010-12-14 Thread ritika sharma


I want to install multiple version of ns-2 in one machine. 
Is there any harm or conflict  in installing multiple version of ns-2?

Thank you
  


[ns] format_aodv: invalid AODV error ?

2010-12-14 Thread huy quang

Hi

I would like to simulate a wired-cum-wireless tcl scenario with the
implementation of AODV+.

I'm using NS-2.33  in UBUNTU 8.04.



The AODV+ include all the gateway discovery method.



I'm able run simulation with the *Reactive Method* but got error when
I try *Hybrid* and *Proactive Gateway Discovery*.

Here is the error:
*format_aodv: invalid AODV packet file*



Please, I would like someone to explain me  how can i solve this
problem.It is very important for me.

Thank you


Re: [ns] Installing multiple version of ns-2.

2010-12-14 Thread YunQiang Su

yes, you can

./configure --prefix=/prefix1
./confgure --prefix=/prefix2

then ,they will be installed to different directories.

-- 
YunQiang Su


[ns] Mobility Random Model

2010-12-14 Thread El hadi Cherkaoui

Dear all,

I am locking for a tool or a TCL script to simulate random way movement of N 
nodes in 2 D.
The instruction $node_($i) random-motion 1 doesn't work in my scenario , so 
please do you know other methods ?

Regards


 



  


Re: [ns] new class

2010-12-14 Thread Teerawat Issariyakul


Hi

If you would like to add a new module into NS2, please read

http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2

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 12/3/2010, Ali Al-Shra'ah. alihussein2...@yahoo.com wrote:


hi ,

I have a new class and put it in the /ns-2.29/tora folder
and on the terminal I have implemented the following commands:
cd ns-allinone-2.29
cd ns-2.29
make clean
make
make install

but there is no object files for this class have appeared
please, if any one knows why reply me soon.

regards







[ns] aggregation 802.11n implementation

2010-12-14 Thread Emma Ch

Hi every body

I want to implement the aggregation scheme of 802.11n (A-MSDU) and (A-MPDU) in 
ns2
There is some help?

Thanks a lot



  


[ns] aggregation 802.11n implementation

2010-12-14 Thread Emma Ch

Hi every body

I want to implement the aggregation scheme of 802.11n (A-MSDU) and (A-MPDU) in 
ns2
There is some help?

Thanks a lot



  


[ns] Your Kind Response Will be Highly Appreciated

2010-12-14 Thread jasmine Nforh Paula

Thanks I solve the problem but I got this other problem. Not very good 
in program, I will appreciate a code that I can add in the 
tcl/lib/ns-lib.tcl script that has the Nsobject in this slot or is 
because the node address of my proxies are wrong or do I have tonnect 
both proxies out of the differential service domain? 

Will kind response will be highly appreciated.

Below is my problem:
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---

    _o151: no target for slot 1

    _o151 type: Classifier/Addr

content dump:

classifier _o151

    0 offset

    0 shift

    2047 mask

    1 slots

        slot 0: _o530 (Classifier/Port)

-- Finished standard no-slot{} default handler --



my simulation runs as follows:
nf...@nlab11:~/Desktop$ /home/nforh/Desktop/ns-allinone-2.29/bin/ns 
newdiffserv102.tcl 
rnc: tcl=_o16; id=0; addr=0.0.0
bsUMTS: tcl=_o30; id=1; addr=0.0.1
iface0(UMTS): tcl=_o72; id=2; addr=0.0.2
e1: tcl=_o96; id=3; addr=2.1.0
core: tcl=_o104; id=4; addr=2.1.2
e2: tcl=_o112; id=5; addr=2.1.3
ar: tcl=_o120; id=6; addr=2.1.4
host0: tcl=_o128; id=7; addr=1.0.1
host1: tcl=_o136; id=8; addr=1.0.2
proxy_1 _o144
proxy_2 _o152
multiFaceNode: tcl=_o163; id=11; addr=5.0.0
num_nodes is set 17
INITIALIZE THE LIST xListHead
bstation802: tcl=_o342; id=12; addr=3.0.0
bss_id for bstation 1=4
_o351 channelID = 241200.00 
_o379 channelID = 241200.00 
iface1: tcl=_o370; id=13; addr=3.0.1
INITIALIZE THE LIST xListHead
bstation802_16: tcl=_o418; id=14; addr=4.0.0
iface3: tcl=_o448; id=15; addr=4.0.1
At 0.00 in 0.0.0 ND module added RA target
 0.0.2
At 0.00 in 3.0.0 MIH is adding mac 4
At 0.00 in 4.0.0 MIH is adding mac 6
At 0.00 in 5.0.0 Interface Manager : Flow added
warning: no class variable Session/RTP::debug_

    see tcl-object.tcl in tclcl for info about this warning.

At 0.00 in 5.0.0 Interface Manager : Flow added
At 0.00 in 5.0.0 Interface Manager : Flow added
At 0.00 in 5.0.0 Interface Manager : Flow added
tcp stream made from 2.1.0 and 0.0.2
At 0.00 in 5.0.0 MIH is adding mac 0
At 0.00 in 5.0.0 MIH is adding mac 5
At 0.00 in 5.0.0 MIH is adding mac 7
Policy Table(2):
Flow
 (11 to 7): trTCM policer, initial code point 10, CIR 200.0 bps, CBS
 2.0 bytes, PIR 200.0 bps, PBS 3.0 bytes.
Flow (11 to 8): trTCM policer, initial code point 11, CIR 1000.0 bps, CBS 200.0 
bytes, PIR 1000.0 bps, PBS 300.0 bytes.

Policer Table:
trTCM policer code point 10 is policed to
 yellow code point 11 and red code point 12.

Calling MIH_Get_Status
At 0.001000 in 5.0.0, MIH receives get_status for local MIH
MIH_Get_Status results for 3 interface(s):
    Link ID: linkType=23, macMobileTerminal=0, macPoA=-1
    Capabilities are: commands:3, events:3
MIH User subscribing for events 1fb on Mac 0
    Subscription status: requested=1fb, result=3
    Link ID: linkType=19, macMobileTerminal=5, macPoA=-1
    Capabilities are: commands:f, events:1bf
MIH User subscribing for events 1fb on Mac 5
    Subscription status: requested=1fb, result=1bb
    Link ID: linkType=27, macMobileTerminal=7, macPoA=-1
    Capabilities are: commands:f, events:1bf
MIH User subscribing for events 1fb on Mac 7
    Subscription status: requested=1fb, result=1bb
channel.cc:sendUp -
 Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 513.3
SORTING LISTS ...DONE!
SORTING LISTS ...DONE!
At 1.00 in 5.0.0 MIH Agent received LINK UP trigger.
At 1.00 in 5.0.0 Interface Manager received MIH event
At 1.00 in 5.0.0 Handover1 received link up 
    type 23, MacAddr=0, MacPoA=-1
    Case2: sending RS
WARNING: At 1.00 MIPv6 Agent in 5.0.0 does not have ND to send RS
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
    _o151: no target for slot 1
    _o151 type: Classifier/Addr
content dump:
classifier _o151
    0 offset
    0 shift
    2047 mask
    1 slots
        slot 0: _o530 (Classifier/Port)
-- Finished standard no-slot{} default handler --
Regards


Larry tobby

--- On Mon, 12/13/10, Elham Noori elha...@gmail.com wrote:

From: Elham Noori elha...@gmail.com
Subject: [ns] Energy and delay!
To: ns-users@ISI.EDU
Date: Monday, December 13, 2010, 4:15 PM


Hi ns users,
I want to calculate the energy and delay of a scenario, I don't know what
should I add to my tcl and how to show it in xgraph!
Can anybody help me on this??

Thanks in advance!!

-- 
Elham Noori



  


[ns] Static topology with attractor paramaters in BonnMotion 1.4

2010-12-14 Thread Eric Galea

 Dear all,

I am using Bonnmotion 1.4. I am trying to generate a static topology with
two attractor points, however i am getting an error as shown below:

C:\bonnmotion-1.4\binbm -f output -I statica.params Static -a
100,100,1,20,350,200,1.5,31
BonnMotion 1.4
Starting Static ...
randomSeed (String):7179309268469618431
randomSeed (Long):7179309268469618431
*warning: attraction field argument list has wrong number of elements!
AttractorField.getPos: Somethings going wrong here*
C:\bonnmotion-1.4

The contents of the parameter file *statica.params* are shown below:

model=Static
ignore=0.0
randomSeed=7179309268469618431
x=1500.0
y=500.0
duration=900.0
nn=300
circular=false
densityLevels=1

I have used the command as exactly found in the BonnMotion manual. Can
anyone kindly indicate what I am doing wrong please?

Thanks and regards,
Eric


[ns] Error!! str2addr:Address outside range of address field length 1024

2010-12-14 Thread Omowonuola saka



Hello Everyone,


I am an ns2 newbee and I am trying to create a wireless cum wired scenario to 
test a service discovery protocol (SLP). I have done it just like the 
examplethat comes in the tcl/ex folder in ns2 but i keep geting the error 
below. 
I will appreciate any help i can get as i am running behind schedule in my 
dissertation.


The error is :

num_nodes is set 8
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Error!!
str2addr:Address 144425951 outside range of address field length 1024

I have looked at heirachical addressing in the ns manual but i dont see 
anything 
i  am doing wrong. I will very mych appreciate any help. Thanks in advance


  



Re: [ns] [NS]Problem with AODV+,Please help me!

2010-12-14 Thread Ghada Al-Mashaqbeh

Hi,

The error message format_aodv: invalid AODV packet file appears in the 
following function definition in the aodv.cc file: 


voidAODV::recvAODV(Packet *p)

Simply in this function a packet is manipulated which has a type does not match 
with any of the case labels found in switch structure inside the function. So, 
examine those labels (which packets types) and add any new type and call the 
suitable recv function to manipulate it (it seems that AODV+ has added new 
control packet type to support additional features, see them).

Regards,
Ghada
 


From: huy quang nachom...@gmail.com
To: ns-users@ISI.EDU
Sent: Mon, December 13, 2010 7:32:54 PM
Subject: [ns] [NS]Problem with AODV+,Please help me!


Hi

I would like to simulate a wired-cum-wireless tcl scenario with the
implementation of AODV+.

I'm using NS-2.33  in UBUNTU 8.04.


The AODV+ include all the gateway discovery method.


I'm able run simulation with the *Reactive Method* but got error when
I try *Hybrid* and *Proactive Gateway Discovery*.

Here is the error:
*format_aodv: invalid AODV packet file*


Please, I would like someone to explain me  how can i solve this
problem.It is very important for me.

Thank you



  


Re: [ns] Your Kind Response Will be Highly Appreciated

2010-12-14 Thread Thrilok Reddy

Hi ns users
 i got one problem i.e. how to store data(file) in
nodes.please help me.i got this problem since last 1 month.any one can reply
me.i am using ns-2 for windows tool.

On Wed, Dec 15, 2010 at 1:17 AM, jasmine Nforh Paula mine0...@yahoo.comwrote:


 Thanks I solve the problem but I got this other problem. Not very good
 in program, I will appreciate a code that I can add in the
 tcl/lib/ns-lib.tcl script that has the Nsobject in this slot or is
 because the node address of my proxies are wrong or do I have tonnect
 both proxies out of the differential service domain?

 Will kind response will be highly appreciated.

 Below is my problem:
 --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---

 _o151: no target for slot 1

 _o151 type: Classifier/Addr

 content dump:

 classifier _o151

 0 offset

 0 shift

 2047 mask

 1 slots

 slot 0: _o530 (Classifier/Port)

 -- Finished standard no-slot{} default handler --



 my simulation runs as follows:
 nf...@nlab11:~/Desktop$ /home/nforh/Desktop/ns-allinone-2.29/bin/ns
 newdiffserv102.tcl
 rnc: tcl=_o16; id=0; addr=0.0.0
 bsUMTS: tcl=_o30; id=1; addr=0.0.1
 iface0(UMTS): tcl=_o72; id=2; addr=0.0.2
 e1: tcl=_o96; id=3; addr=2.1.0
 core: tcl=_o104; id=4; addr=2.1.2
 e2: tcl=_o112; id=5; addr=2.1.3
 ar: tcl=_o120; id=6; addr=2.1.4
 host0: tcl=_o128; id=7; addr=1.0.1
 host1: tcl=_o136; id=8; addr=1.0.2
 proxy_1 _o144
 proxy_2 _o152
 multiFaceNode: tcl=_o163; id=11; addr=5.0.0
 num_nodes is set 17
 INITIALIZE THE LIST xListHead
 bstation802: tcl=_o342; id=12; addr=3.0.0
 bss_id for bstation 1=4
 _o351 channelID = 241200.00
 _o379 channelID = 241200.00
 iface1: tcl=_o370; id=13; addr=3.0.1
 INITIALIZE THE LIST xListHead
 bstation802_16: tcl=_o418; id=14; addr=4.0.0
 iface3: tcl=_o448; id=15; addr=4.0.1
 At 0.00 in 0.0.0 ND module added RA target
  0.0.2
 At 0.00 in 3.0.0 MIH is adding mac 4
 At 0.00 in 4.0.0 MIH is adding mac 6
 At 0.00 in 5.0.0 Interface Manager : Flow added
 warning: no class variable Session/RTP::debug_

 see tcl-object.tcl in tclcl for info about this warning.

 At 0.00 in 5.0.0 Interface Manager : Flow added
 At 0.00 in 5.0.0 Interface Manager : Flow added
 At 0.00 in 5.0.0 Interface Manager : Flow added
 tcp stream made from 2.1.0 and 0.0.2
 At 0.00 in 5.0.0 MIH is adding mac 0
 At 0.00 in 5.0.0 MIH is adding mac 5
 At 0.00 in 5.0.0 MIH is adding mac 7
 Policy Table(2):
 Flow
  (11 to 7): trTCM policer, initial code point 10, CIR 200.0 bps, CBS
  2.0 bytes, PIR 200.0 bps, PBS 3.0 bytes.
 Flow (11 to 8): trTCM policer, initial code point 11, CIR 1000.0 bps, CBS
 200.0 bytes, PIR 1000.0 bps, PBS 300.0 bytes.

 Policer Table:
 trTCM policer code point 10 is policed to
  yellow code point 11 and red code point 12.

 Calling MIH_Get_Status
 At 0.001000 in 5.0.0, MIH receives get_status for local MIH
 MIH_Get_Status results for 3 interface(s):
 Link ID: linkType=23, macMobileTerminal=0, macPoA=-1
 Capabilities are: commands:3, events:3
 MIH User subscribing for events 1fb on Mac 0
 Subscription status: requested=1fb, result=3
 Link ID: linkType=19, macMobileTerminal=5, macPoA=-1
 Capabilities are: commands:f, events:1bf
 MIH User subscribing for events 1fb on Mac 5
 Subscription status: requested=1fb, result=1bb
 Link ID: linkType=27, macMobileTerminal=7, macPoA=-1
 Capabilities are: commands:f, events:1bf
 MIH User subscribing for events 1fb on Mac 7
 Subscription status: requested=1fb, result=1bb
 channel.cc:sendUp -
  Calc highestAntennaZ_ and distCST_
 highestAntennaZ_ = 1.5,  distCST_ = 513.3
 SORTING LISTS ...DONE!
 SORTING LISTS ...DONE!
 At 1.00 in 5.0.0 MIH Agent received LINK UP trigger.
 At 1.00 in 5.0.0 Interface Manager received MIH event
 At 1.00 in 5.0.0 Handover1 received link up
 type 23, MacAddr=0, MacPoA=-1
 Case2: sending RS
 WARNING: At 1.00 MIPv6 Agent in 5.0.0 does not have ND to send RS
 --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
 _o151: no target for slot 1
 _o151 type: Classifier/Addr
 content dump:
 classifier _o151
 0 offset
 0 shift
 2047 mask
 1 slots
 slot 0: _o530 (Classifier/Port)
 -- Finished standard no-slot{} default handler --
 Regards


 Larry tobby

 --- On Mon, 12/13/10, Elham Noori elha...@gmail.com wrote:

 From: Elham Noori elha...@gmail.com
 Subject: [ns] Energy and delay!
 To: ns-users@ISI.EDU
 Date: Monday, December 13, 2010, 4:15 PM


 Hi ns users,
 I want to calculate the energy and delay of a scenario, I don't know what
 should I add to my tcl and how to show it in xgraph!
 Can anybody help me on this??

 Thanks in advance!!

 --
 Elham Noori