Re: [ns] wireless access point

2009-03-13 Thread Kiran K Chauhan

Hi,

Yes NS2 does support that, use ns2.33 version.

Sample code given in that is infrs.tcl

Kiran

On Fri, Mar 13, 2009 at 8:42 AM, mm min...@gmail.com wrote:


 Hello and thank you very much for all your efforts

 Could you please tell me if NS2 (version 2.32) can support simulation of
 wireless networks in infrastructure mode (it means wireless nodes connected
 to a wireless access point)?

 Thanks in advance




-- 

Every footstep in life is full of possibilities we just need to know our
ability to explore them




Re: [ns] ns-2 on windows vista

2009-03-13 Thread hakki


Dear Sidney, 
I have been trying to install ns-2.27 to my machine runs under vista home.
Even I have downloaded all the packages of cygwin, I could not install
ns-2.27. I installed also hidden packages in cygwin. Moreover, while I have
been trying to install ns-2.27, there does not appear a such message `...
package not found'. However, during the installation it gives a such message
tclcl-1.15 make failed!, Exiting. I chechked all my packages, whether I
have installed or not, using the cygwin setup and choosing view section,
there does not appear any package to install. Do you have any opinion or
suggestion?

best 
hakki



Sidney Doria wrote:
 
 
 I'm using cygwin 1.5.24 and ns-2  2.31 on Vista Home Premium. There
 was no problem on installing it, but a few test have failed on
 validation (as promessed in the tutorial).
 
 I recomend you to use all-in-one package and install a full cygwin
 (default installation does't install some packages needed).
 
 
 Sidney Doria
 
 
 2007/6/6, Karun Dambiec kdamb...@ieee.org:

 Hi,

 Im about to upgrade to Windows Vista if all my software is compatible.

 Has anybody used Cygwin and NS-2 on Vista? If you have, did you have any
 problems with it?



 Regards

 Karun Dambiec


 
 
 --
 Sidney Doria
 Redes ad hoc móveis
 Mestrado em Computação
 UFCG
 Brasil
 
 Nessa jornada, o conhecimento será o seu escudo...
 (Mestre dos Magos no episódio do grimoire de ouro)
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ns-2-on-windows-vista-tp10987280p22493352.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] How to get information of a node from an agent?

2009-03-13 Thread Truong Thuy

Dear All,

I'm implementing a routing protocol that explores the mobility of a node.
From the new agent, I want some information of a node such as speed,
location, ...
Just wondering how I can use getter methods of Node.c inside my NewAgent.c?
Please help. Thanks milllion.

-- 
Regards,
Thuy


[ns] How to send a message from one node to another node (i.e. to send an integer value)

2009-03-13 Thread muralikrishna g

hi to all..

i am using ns-2.33, here i have to send a message (i.e. to send an
integer value) from one node to another node, is it possible in tcl
script itself.. or i have to go for c++

please help me regarding this,

by

Muralikrishna Gaddam (muralikrishn...@gmail.com)



[ns] How to Drop Packets From a Particular Sender

2009-03-13 Thread muralikrishna g

Hi to all..

i am using ns-2.33, here in my work i have to drop packets from a
particular sender, i am planing to drop packets depending on the
sender node_id

please help me regarding this..

by

Muralikrishna Gaddam (muralikrishn...@gmail.com)



Re: [ns] How to send a message from one node to another node (i.e. to send an integer value)

2009-03-13 Thread Sidney Doria

Gaddam,

this is the FIRST BASIC step when you learning NS-2. You can find lots
of information about this, here:

- asking google;
- reading NS-2 manual;
- tutorials in the NS-2 wiki;
- on the book Introduction to Network Simulator NS-2.

But we know how difficult are the first steps! So, this tutorial can
help with scripts (in OTcl) or how to code (in C++) to send and
receive packets in NS-2:

http://masimum.inf.um.es/nsrt-howto/pdf/nsrt-howto.pdf

That tutorial is for WIRELESS networks. If you want for Wired
networks, I suggest you the Marc Greiss's tutorial (Section IV):

http://www.isi.edu/nsnam/ns/tutorial/


Sidney Doria
UFCG / BRAZIL


2009/3/13 muralikrishna g muralikrishn...@gmail.com:

 hi to all..

 i am using ns-2.33, here i have to send a message (i.e. to send an
 integer value) from one node to another node, is it possible in tcl
 script itself.. or i have to go for c++

 please help me regarding this,

 by

 Muralikrishna Gaddam (muralikrishn...@gmail.com)





-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] How to Drop Packets From a Particular Sender

2009-03-13 Thread Mats Folke

Hi!

Wouldn't it be kind of dangerous to drop the packet using the first method 
described? The packet would jsut disappear and the logs would not be 
consistent. I would recommend using the latter method

drop(p)

instead. This makes the logging consistent and almost all objects I've come 
across where I would like to drop packets have been Connector objects.

Best regards,
Mats Folke

Teerawat Issariyakul wrote:
 Hi,
 
 Suppose you have a pointer p. You can drop the packet by executing
 
 
 Packet::free(p)
 
 Also the packet *p can be dropped from within the Connector object
 by invoking function drop as follows:
 
 drop(p);
 
 
 Note that drop(p) is a function of class Connector, and therefore
 must be invoked from within the scope of class Connector.
 
 I posted how to drop a a packet in the following blog:
 
 http://t-issariyakul.blogspot.com/2009/03/ns2-dropping-packet.html
 
 For more information about Connector and Packet, see Chapters 5 and 8,
 respectively, in the following book from Springer:
 
 T. Issaraiyakul and E. Hossain, Introduction to Network Simulator
 NS2, Springer 2008.
 http://www.springer.com/engineering/signals/book/978-0-387-71759-3
 
 You may also find the following website useful:
 http://www.ece.ubc.ca/~teerawat/NS2.htm
 
 On 3/13/2009, muralikrishna g muralikrishn...@gmail.com wrote:
 
 
 Hi to all..
 
 i am using ns-2.33, here in my work i have to drop packets from a
 particular sender, i am planing to drop packets depending on the
 sender node_id 
 
 please help me regarding this..
 
 by
 
 Muralikrishna Gaddam (muralikrishn...@gmail.com)



-- 
Mats Folke, M.Sc., Lic.Eng.
Research Engineer

Ericsson AB Office: +46 10 7171385
Ericsson Research   Fax: +46 920 99621
P.O. Box 920Mobile: +46 76 1271385
SE-971 28 Luleå
Sweden



[ns] TCO flag in trace file

2009-03-13 Thread antonioli


Hi,
I'm studing some aspects handover over heterogeneous networks, in
particularly the IEEE 802.21.
I have already installed ns2 with 802.21 module (from NIST) and simulated
some scenarios and found a NCO in trace file.

Can tell me significance of the NCO (after -Nw) drop reason?

All help or support will be very helpful.
-- 
View this message in context: 
http://www.nabble.com/TCO-flag-in-trace-file-tp22499739p22499739.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Help!!

2009-03-13 Thread vap9999


After I run my tcl, it shows the following error, someone, please, give me a
hint why that happened?

Thanks so much! 

--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o107: no target for slot -1
_o107 type: Classifier/Hash/Dest
content dump:
classifier _o107
0 offset
0 shift
2147483647 mask
1 slots
slot 5: _o566 (Classifier/Port)
-1 default
-- Finished standard no-slot{} default handler --

-- 
View this message in context: 
http://www.nabble.com/Help%21%21-tp22503305p22503305.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Intrusion Detection in Manet

2009-03-13 Thread Satria Mandala

On Thu, Mar 12, 2009 at 4:43 PM, Satria Mandala thariqsat...@gmail.comwrote:

 I need to learn intrusion detection in wireless ad-hoc network using ns2.
 Does any one know how to create some kind of attacks in a node, such
 as black hole attack, DoS, and etc?


 regards
 Thariq Satria



Re: [ns] Neighbor List

2009-03-13 Thread Mustafa Kamal

I think you can look at channel.cc to find the list of neighbours
because whenever a new mobile node is entering the channel its keep
information in the list. Otherwise if you trying to find out the
neighbouring BS then you can check it out from the mip-reg.cc file.


Thanks,

With Best Regards,

Joarder Mohammad Mustafa Kamal



--- On Fri, 3/13/09, Mayank Daga dagamay...@gmail.com wrote:

From: Mayank Daga dagamay...@gmail.com
Subject: [ns] Neighbor List
To: ns-users@ISI.EDU
Date: Friday, March 13, 2009, 4:46 PM


Hey all,

Please let me know, how to access the Neighbor List of any mobile node. It
is imperative for my project work and I am not being to able to find it.
I found a function addNeighbor(node) in node.cc but it seems that it is not
called from anywhere. Then how are neighbors being maintained.

Please help.

-- 
Regards,
Mayank Daga
Senior Undergraduate Student,
Department of Information Technology,
National Institute of Technology, Durgapur,
India



  


Re: [ns] Range Proble...Again :(

2009-03-13 Thread Mustafa Kamal

Can you set the radius like below

[$HA set netif_(0)] set Pt_ 0.03652
[$FA01 set netif_(0)] set Pt_ 0.03652
[$FA02 set netif_(0)] set Pt_ 0.03652
[$FA03 set netif_(0)] set Pt_ 0.03652

You can use this list to set the radius of a node

 Tx Range   Pt_
   100m 0.00721383
   150m 0.03652
   200m 0.115421
   250m 0.28179
   300m 0.58432


Thanks,

With Best Regards,

Joarder Mohammad Mustafa Kamal



--- On Thu, 3/12/09, Mayank Daga dagamay...@gmail.com wrote:

From: Mayank Daga dagamay...@gmail.com
Subject: [ns] Range Proble...Again :(
To: Mubashir Rehmani mshrehm...@gmail.com, ns-users@ISI.EDU
Date: Thursday, March 12, 2009, 9:12 PM


Hey Mubashir,

Sorry for bugging you again but I am totally clueless as to how to set the
range.

Since past few days, I have been trying to set the range by the setting the
value of radius variable of a particular node. This is what radius variable
does according to NS Manual:

$mobilenode radius r
The radius r denotes the node’s range. All mobilenodes that fall within
the circle of radius r with the node at its center
are considered as neighbours. This info is typically used by the gridkeeper..


But, today I found out that this is not affecting the way the traffic is
sent, i.e., the range is still 250m, the default value. Please help me as to
how can I set the range of the nodes. This is is very much imperative for my
project.

Please help.

-- 
Regards,
Mayank Daga
Senior Undergraduate Student,
Department of Information Technology,
National Institute of Technology, Durgapur,
India



  

[ns] how to send a message(excample-45) from node1 to node2

2009-03-13 Thread muralikrishna g

hi to all..

here i have to send a number from from node1 to node2,.. i know how to send
a traffic packet op or cbr, but here i have to send my own number from node1
to node2,..

please help me regarding this

by

muralikrishna


Re: [ns] How to Drop Packets From a Particular Sender

2009-03-13 Thread Teerawat Issariyakul


Hi Mats,

I agree with you. In fact, function drop(p) will check whether the packet
is in used before dropping it. But the function drop(p) only exists for
an NsObject. Objects not derived from class NsObject may not define this
function.

If you guys would like to use Packet::free(p), you are responsible for
consistency check. Failing to do so may result in errors like
segmentation fault.

Best,
Teerawat

On 3/13/2009, Mats Folke mats.fo...@ericsson.com wrote:


Hi!

Wouldn't it be kind of dangerous to drop the packet using the first method 
described? The packet would jsut disappear and the logs would not be 
consistent. I would recommend using the latter method

drop(p)

instead. This makes the logging consistent and almost all objects I've come 
across where I would like to drop packets have been Connector objects.

Best regards,
Mats Folke

Teerawat Issariyakul wrote:
 Hi,
 
 Suppose you have a pointer p. You can drop the packet by executing
 
 
 Packet::free(p)
 
 Also the packet *p can be dropped from within the Connector object
 by invoking function drop as follows:
 
 drop(p);
 
 
 Note that drop(p) is a function of class Connector, and therefore
 must be invoked from within the scope of class Connector.
 
 I posted how to drop a a packet in the following blog:
 
 http://t-issariyakul.blogspot.com/2009/03/ns2-dropping-packet.html
 
 For more information about Connector and Packet, see Chapters 5 and 8,
 respectively, in the following book from Springer:
 
 T. Issaraiyakul and E. Hossain, Introduction to Network Simulator
 NS2, Springer 2008.
 http://www.springer.com/engineering/signals/book/978-0-387-71759-3
 
 You may also find the following website useful:
 http://www.ece.ubc.ca/~teerawat/NS2.htm
 
 On 3/13/2009, muralikrishna g muralikrishn...@gmail.com wrote:
 
 
 Hi to all..
 
 i am using ns-2.33, here in my work i have to drop packets from a
 particular sender, i am planing to drop packets depending on the
 sender node_id 
 
 please help me regarding this..
 
 by
 
 Muralikrishna Gaddam (muralikrishn...@gmail.com)



-- 
Mats Folke, M.Sc., Lic.Eng.
Research Engineer

Ericsson AB Office: +46 10 7171385
Ericsson Research   Fax: +46 920 99621
P.O. Box 920Mobile: +46 76 1271385
SE-971 28 Luleå
Sweden




Re: [ns] How to do LEO satellite simulation with many GSL terminals ??

2009-03-13 Thread Tom Henderson

lukman_ha...@yahoo.com wrote:
 Hi,
 
 Does anybody knows how to do LEO satellite simulation with many GSL 
 terminals on the source side and many GSL terminals on the destination 
 side ?? For example if i want to have 3 polar GSL terminal (S1, S2, S3) 
 at the source side and 3 polar GSL terminal (D1, D2, D3) at the 
 destination side, how to make sure that S1 is in connection with D1, S2 
 with D2 , and S3 with D3 ?? 

Can you clarify what you mean by S1 is in connection with D1?  Do you
mean that traffic flows from S1 to D1?


So far in the ns manual  examples only show
 satellite simulation with one-to-one GSL terminal connection, but is 
 there possible to simulate many-to-many GSL terminal connections in LEO 
 satellite network ??
 

It is possible to have many ground terminals associated with a single
satellite.  I am not sure what you mean by many-to-many GSL terminal
connections; can you clarify?

Tom