[ns] Does the AODV routing protocol guaranty that always take a shortest path to destination?

2011-03-08 Thread Hosseini Nezhad

Hi

Does the AODV routing protocol guaranty that always take a shortest
path to destination?

Suppose that, there are multiple paths to a destination(a short and a
long path).
And the shortest path has heavy traffic.

so in this shortest path the RREQ packet will received to destination
latter than long but low traffic path.

And the in AODV when a source, receive 1th RREPLY packet, immediately
start to send the data packets.

So in my scenario, the AODV will select the long path.
Is it correct? Where I have mistake? Any Idea about this case?!

-- 
Regards;
Hosseini Nazhad.



[ns] how to get source code of zigbee routing in ns2?

2011-03-08 Thread 兰天

Now we can get 802.15.4 source code in ns2 which offered by Zheng,however,how 
to get zigbee routing?

[ns] how to get source code of zigbee in ns2

2011-03-08 Thread 兰天

I am a student who intrest in zigbee and its application,however,i suffer some 
obstacles in simulation because I get the source code of 802.15.4 ,and the 
author of 802.15.4 simulation said that he do not offer the source code of 
zigbee routing anymore.As far as I concern,the source code of zigbee routing 
could be downloaded in the past time.how to get source code of zigbee routing?

Re: [ns] how to get source code of zigbee in ns2

2011-03-08 Thread Mubashir Rehmani

Hello,

See this:

   - IEEE 802.15.4 extensions to ns-2.26 and 2.27 are now available. The
   code works with ns 2.26 and 2.27 and has been tested on
   Linux/Solaris/FreeBSD. There are README, test/demo scripts. Code is at
   http://www-ee.ccny.cuny.edu/zheng/pub. Contact Jianliang
Zhengzh...@ee.ccny.cuny.edufor details.


   - IEEE 802.15.4 extensions to ns-2.26 and 2.27 are now available. The
   code works with ns 2.26 and 2.27 and has been tested on
   Linux/Solaris/FreeBSD. There are README, test/demo scripts. Code is at
   http://www-ee.ccny.cuny.edu/zheng/pub. Contact Jianliang
Zhengzh...@ee.ccny.cuny.edufor details.

The source code can be found from here:
http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz

Best Regards
Mubashir Husain Rehmani
Lip6/UPMC Sorbonne Universtié
Paris, France


2011/3/8 兰天 lantian0...@163.com



 I am a student who intrest in zigbee and its application,however,i suffer
 some obstacles in simulation because I get the source code of 802.15.4 ,and
 the author of 802.15.4 simulation said that he do not offer the source code
 of zigbee routing anymore.As far as I concern,the source code of zigbee
 routing could be downloaded in the past time.how to get source code of
 zigbee routing?




-- 
Mubashir Husain Rehmani


Re: [ns] how to get source code of zigbee in ns2

2011-03-08 Thread 兰天

hi,

http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz

this website you offer is release 1.1 ,and this release do not include 
ZBR(zigbee routing),and these messages in Zheng's website:
*** NS2 simulator for 802.15.4 (release v1.1) ***

ZigBee routing is now maintained by ZigBee NWK WG and
no longer included in this release.

 Platforms supported
ns2 version: 2.26 or above
OS: Linux, Sun Solaris and FreeBSD

Note: The code has been included in the core release of ns 2.28.

I am confusing !

At 2011-03-08 23:10:43,Mubashir Rehmani mshrehm...@gmail.com wrote:
Hello,

See this:

IEEE 802.15.4 extensions to ns-2.26 and 2.27 are now available. The code works 
with ns 2.26 and 2.27 and has been tested on Linux/Solaris/FreeBSD. There are 
README, test/demo scripts. Code is athttp://www-ee.ccny.cuny.edu/zheng/pub. 
ContactJianliang Zheng for details.
IEEE 802.15.4 extensions to ns-2.26 and 2.27 are now available. The code works 
with ns 2.26 and 2.27 and has been tested on Linux/Solaris/FreeBSD. There are 
README, test/demo scripts. Code is athttp://www-ee.ccny.cuny.edu/zheng/pub. 
ContactJianliang Zheng for details.
The source code can be found from here:
http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz

Best Regards
Mubashir Husain Rehmani
Lip6/UPMC Sorbonne Universtié
Paris, France



2011/3/8 兰天lantian0...@163.com


I am a student who intrest in zigbee and its application,however,i suffer some 
obstacles in simulation because I get the source code of 802.15.4 ,and the 
author of 802.15.4 simulation said that he do not offer the source code of 
zigbee routing anymore.As far as I concern,the source code of zigbee routing 
could be downloaded in the past time.how to get source code of zigbee routing?




--
Mubashir Husain Rehmani




[ns] about source code of zigbee routing

2011-03-08 Thread 兰天

hi,

http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz

this website you offer is release 1.1 ,and this release do not include 
ZBR(zigbee routing),and these messages in Zheng's website:
*** NS2 simulator for 802.15.4 (release v1.1) ***

ZigBee routing is now maintained by ZigBee NWK WG and
no longer included in this release.

 Platforms supported
ns2 version: 2.26 or above
OS: Linux, Sun Solaris and FreeBSD

Note: The code has been included in the core release of ns 2.28.

I am confusing !

Re: [ns] how to get source code of zigbee in ns2

2011-03-08 Thread Mubashir Rehmani

Hello,

Zig Bee Routing is included in the new version of ns2 (ns 2.32), see the
folder wpan in the ns2 main directory. They have also included the pdf
tutorial there.

Best Regards

2011/3/8 兰天 lantian0...@163.com

 hi,

 http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz
 this website you offer is release 1.1 ,and this release do not include
 ZBR(zigbee routing),and these messages in Zheng's website:
 *** NS2 simulator for 802.15.4 (release v1.1) ***

 ZigBee routing is now maintained by ZigBee NWK WG and
 no longer included in this release.

  Platforms supported
 ns2 version: 2.26 or above
 OS: Linux, Sun Solaris and FreeBSD

 Note: The code has been included in the core release of ns 2.28.
 I am confusing !

 At 2011-03-08 23:10:43,Mubashir Rehmani mshrehm...@gmail.com wrote:

 Hello,

 See this:

- IEEE 802.15.4 extensions to ns-2.26 and 2.27 are now available. The
code works with ns 2.26 and 2.27 and has been tested on
Linux/Solaris/FreeBSD. There are README, test/demo scripts. Code is at
http://www-ee.ccny.cuny.edu/zheng/pub. Contact Jianliang 
 Zhengzh...@ee.ccny.cuny.edufor details.


- IEEE 802.15.4 extensions to ns-2.26 and 2.27 are now available. The
code works with ns 2.26 and 2.27 and has been tested on
Linux/Solaris/FreeBSD. There are README, test/demo scripts. Code is at
http://www-ee.ccny.cuny.edu/zheng/pub. Contact Jianliang 
 Zhengzh...@ee.ccny.cuny.edufor details.

 The source code can be found from here:
 http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz

 Best Regards
 Mubashir Husain Rehmani
 Lip6/UPMC Sorbonne Universtié
 Paris, France


 2011/3/8 兰天 lantian0...@163.com



 I am a student who intrest in zigbee and its application,however,i suffer
 some obstacles in simulation because I get the source code of 802.15.4 ,and
 the author of 802.15.4 simulation said that he do not offer the source code
 of zigbee routing anymore.As far as I concern,the source code of zigbee
 routing could be downloaded in the past time.how to get source code of
 zigbee routing?




 --
 Mubashir Husain Rehmani







-- 
Mubashir Husain Rehmani


Re: [ns] how to get source code of zigbee in ns2

2011-03-08 Thread 兰天

hi,
It is my honor to get help from you!
I am very sorry that I do not express myself clearly.
http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz  this website offer us 
a new release about 802.15.4 code in ns2.When we unpack this file we could see 
cpp,demo,namthese folds.However,zigbee rouing needs a fold called zbr which 
include in the old version.in zbr this fold we could find many useful structure 
and method such asstruct zbr and so on.
I mean we could not find zbr.cc and zbr.h all these important files .
this time I express clearly?
Best wishes .
Varrick

At 2011-03-08 23:26:49,Mubashir Rehmani mshrehm...@gmail.com wrote:
Hello,

Zig Bee Routing is included in the new version of ns2 (ns 2.32), see the folder 
wpan in the ns2 main directory. They have also included the pdf tutorial there.

Best Regards


2011/3/8 兰天lantian0...@163.com


hi,

http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz

this website you offer is release 1.1 ,and this release do not include 
ZBR(zigbee routing),and these messages in Zheng's website:
*** NS2 simulator for 802.15.4 (release v1.1) ***

ZigBee routing is now maintained by ZigBee NWK WG and
no longer included in this release.

 Platforms supported
ns2 version: 2.26 or above
OS: Linux, Sun Solaris and FreeBSD

Note: The code has been included in the core release of ns 2.28.

I am confusing !

At 2011-03-08 23:10:43,Mubashir Rehmani mshrehm...@gmail.com wrote:
Hello,

See this:

IEEE 802.15.4 extensions to ns-2.26 and 2.27 are now available. The code works 
with ns 2.26 and 2.27 and has been tested on Linux/Solaris/FreeBSD. There are 
README, test/demo scripts. Code is athttp://www-ee.ccny.cuny.edu/zheng/pub. 
ContactJianliang Zheng for details.
IEEE 802.15.4 extensions to ns-2.26 and 2.27 are now available. The code works 
with ns 2.26 and 2.27 and has been tested on Linux/Solaris/FreeBSD. There are 
README, test/demo scripts. Code is athttp://www-ee.ccny.cuny.edu/zheng/pub. 
ContactJianliang Zheng for details.
The source code can be found from here:
http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz

Best Regards
Mubashir Husain Rehmani
Lip6/UPMC Sorbonne Universtié
Paris, France



2011/3/8 兰天lantian0...@163.com


I am a student who intrest in zigbee and its application,however,i suffer some 
obstacles in simulation because I get the source code of 802.15.4 ,and the 
author of 802.15.4 simulation said that he do not offer the source code of 
zigbee routing anymore.As far as I concern,the source code of zigbee routing 
could be downloaded in the past time.how to get source code of zigbee routing?




--
Mubashir Husain Rehmani








--
Mubashir Husain Rehmani




Re: [ns] how to get source code of zigbee in ns2

2011-03-08 Thread Mubashir Rehmani

Hello,

Yes, in fact, i am also unable to see the ZBR routing protocol in the wpan
folder. Now, see this site
http://www.sensor-networks.org/index.php?page=0823123150

In the site, they used AODV in conjunction with IEEE 802.15.4. May be, it
helps you...

Best Regards

2011/3/8 兰天 lantian0...@163.com

 hi,
 It is my honor to get help from you!
 I am very sorry that I do not express myself clearly.
 http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz  this website
 offer us a new release about 802.15.4 code in ns2.When we unpack this file
 we could see cpp,demo,namthese folds.However,zigbee rouing needs a fold
 called zbr which include in the old version.in zbr this fold we could find
 many useful structure and method such as struct zbr and so on.
 I mean we could not find zbr.cc and zbr.h all these important files .
 this time I express clearly?
 Best wishes .
 Varrick

 At 2011-03-08 23:26:49,Mubashir Rehmani mshrehm...@gmail.com wrote:

 Hello,

 Zig Bee Routing is included in the new version of ns2 (ns 2.32), see the
 folder wpan in the ns2 main directory. They have also included the pdf
 tutorial there.

 Best Regards

 2011/3/8 兰天 lantian0...@163.com

 hi,

 http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz
 this website you offer is release 1.1 ,and this release do not include
 ZBR(zigbee routing),and these messages in Zheng's website:
 *** NS2 simulator for 802.15.4 (release v1.1) ***

 ZigBee routing is now maintained by ZigBee NWK WG and
 no longer included in this release.

  Platforms supported
 ns2 version: 2.26 or above
 OS: Linux, Sun Solaris and FreeBSD

 Note: The code has been included in the core release of ns 2.28.
 I am confusing !

 At 2011-03-08 23:10:43,Mubashir Rehmani mshrehm...@gmail.com wrote:

 Hello,

 See this:

- IEEE 802.15.4 extensions to ns-2.26 and 2.27 are now available. The
code works with ns 2.26 and 2.27 and has been tested on
Linux/Solaris/FreeBSD. There are README, test/demo scripts. Code is at
http://www-ee.ccny.cuny.edu/zheng/pub. Contact Jianliang 
 Zhengzh...@ee.ccny.cuny.edufor details.


- IEEE 802.15.4 extensions to ns-2.26 and 2.27 are now available. The
code works with ns 2.26 and 2.27 and has been tested on
Linux/Solaris/FreeBSD. There are README, test/demo scripts. Code is at
http://www-ee.ccny.cuny.edu/zheng/pub. Contact Jianliang 
 Zhengzh...@ee.ccny.cuny.edufor details.

 The source code can be found from here:
 http://www-ee.ccny.cuny.edu/zheng/pub/file/wpan11.tar.gz

 Best Regards
 Mubashir Husain Rehmani
 Lip6/UPMC Sorbonne Universtié
 Paris, France


 2011/3/8 兰天 lantian0...@163.com



 I am a student who intrest in zigbee and its application,however,i suffer
 some obstacles in simulation because I get the source code of 802.15.4 ,and
 the author of 802.15.4 simulation said that he do not offer the source code
 of zigbee routing anymore.As far as I concern,the source code of zigbee
 routing could be downloaded in the past time.how to get source code of
 zigbee routing?




 --
 Mubashir Husain Rehmani







 --
 Mubashir Husain Rehmani







-- 
Mubashir Husain Rehmani


[ns] Wrong DSDV routing

2011-03-08 Thread jorge cabrejas

Hi all,

Does anyone know how to modify the DSDV protocol to route the packets in a 
static way?


My scenario is:

(id=0)  (id=1)
(id=4) 

router0-- router1-BS  
multiFaceNode1 (12582912), (id=2)
(0) (4194304) (8388608) 
   - iface1 (8388609), (id=5)


 


 
  multiFaceNode2 (167772160), (id=3)

- iface2 (8388610), (id=6)

I would like that iface1 was like a relay both downlink and uplink. For 
example, 
if router0 transmitted packets to iface2 the packet flow would be:

router0-router1-BS-iface1-iface2

I have modified the forwardPacket function to do that but when the packet 
arrives at iface2 the trace shows wrong behaviour:

+ 7 0 1 cbr 500 --- 0 0.0.0.0 2.0.2.0 0 26
- 7 0 1 cbr 500 --- 0 0.0.0.0 2.0.2.0 0 26
r 7.030005 0 1 cbr 500 --- 0 0.0.0.0 2.0.2.0 0 26
...
+ 7.030005 1 4 cbr 500 --- 0 0.0.0.0 2.0.2.0 0 26
- 7.030005 1 4 cbr 500 --- 0 0.0.0.0 2.0.2.0 0 26
r 7.04501 1 4 cbr 500 --- 0 0.0.0.0 2.0.2.0 0 26
...
s -t 7.045833794 -Hs 4 -Hd 8388609 -Ni 4 -Nx 50.00 -Ny 100.00 -Nz 0.00 -Ne 
-1.00 -Nl MAC -Nw --- -Ma d4 -Md 1 -Ms 0 -Mt 800 -Is 0.0 -Id 8388610.0 -It 
cbr -Il 560 -If 0 -Ii 26 -Iv 29 -Pn cbr -Pi 0 -Pf 0 -Po 0 


r -t 7.046415645 -Hs 5 -Hd 8388609 -Ni 5 -Nx 60.00 -Ny 100.00 -Nz 0.00 -Ne 
-1.00 -Nl MAC -Nw --- -Ma d4 -Md 1 -Ms 0 -Mt 800 -Is 0.0 -Id 8388610.0 -It 
cbr -Il 500 -If 0 -Ii 26 -Iv 29 -Pn cbr -Pi 0 -Pf 1 -Po 0 

...
s -t 7.047166621 -Hs 5 -Hd 8388610 -Ni 5 -Nx 60.00 -Ny 100.00 -Nz 0.00 -Ne 
-1.00 -Nl MAC -Nw --- -Ma d4 -Md 0 -Ms 1 -Mt 800 -Is 0.0 -Id 8388610.0 -It 
cbr -Il 560 -If 0 -Ii 26 -Iv 28 -Pn cbr -Pi 0 -Pf 1 -Po 0 


WRONG BEHAVIOUR FROM HERE

r -t 7.047748473 -Hs 4 -Hd 2 -Ni 4 -Nx 50.00 -Ny 100.00 -Nz 0.00 -Ne -1.00 
-Nl MAC -Nw --- -Ma d4 -Md 0 -Ms 1 -Mt 800 -Is 0.0 -Id 8388610.0 -It cbr -Il 
500 
-If 0 -Ii 26 -Iv 28 -Pn cbr -Pi 0 -Pf 2 -Po 0 

...
s -t 7.048579515 -Hs 4 -Hd 2 -Ni 4 -Nx 50.00 -Ny 100.00 -Nz 0.00 -Ne -1.00 
-Nl MAC -Nw --- -Ma d4 -Md 2 -Ms 0 -Mt 800 -Is 0.0 -Id 8388610.0 -It cbr -Il 
560 
-If 0 -Ii 26 -Iv 28 -Pn cbr -Pi 0 -Pf 2 -Po 0 


r -t 7.049161400 -Hs 6 -Hd 2 -Ni 6 -Nx 70.00 -Ny 100.00 -Nz 0.00 -Ne -1.00 
-Nl MAC -Nw --- -Ma d4 -Md 2 -Ms 0 -Mt 800 -Is 0.0 -Id 8388610.0 -It cbr -Il 
500 
-If 0 -Ii 26 -Iv 28 -Pn cbr -Pi 0 -Pf 3 -Po 0 

...

Thank you in advance
Jorge



  


[ns] Drop packets????????

2011-03-08 Thread Mohammed Alenezi

Hi,

I 'm working on scenario in wired network-udp protocol. Any help on drop
packets other than drop (p). I tried this method drop(p) but it doesn't drop
packets???

I sent this question many times, with no help!

ANY HELP ON THIS PROBLEM IS HIGHLY APPRECIATED.




-- 
Regards,
Moe.


[ns] Drop packet!!!!!

2011-03-08 Thread Mohammed Alenezi

Hi,
I've been reading the below blog :
http://t-issariyakul.blogspot.com/search/label/NS2?updated-max=2010-03-08T02%3A02%3A00-07%3A00max-results=20

I found this sentence Note that drop(p) is a function of class Connector,
and therefore must be invoked from within the scope of class Connector.

Does this mean I can't call the drop from outside connector. In other words,
If I want to call drop I have to create object from connector class then
call drop???


Please help me on this issue?

-- 
Regards,
Mohd.


[ns] Send and Receive in NS2

2011-03-08 Thread Mohammed Alenezi

Hi,

I just want to understand who is responsible for sending the packets in ns2.
In each layer 4 protocol ( TCP or UDP) there is a function for send and
receive. However,I read in other blog http://t-issariyakul.blogspot.com.
-that the function in Agent.cc is the one responsible for sending and
receiving.!!!

I need to understand the difference. I read the book many times, couldn't
figure out the difference???


Any Help

-- 
Regards,
Moe


Re: [ns] Ns-users Digest, Vol 87, Issue 8

2011-03-08 Thread ranjana pathak

Dear frds,

I m adding one function in aodv, and it is called whenever a link get down
and writing the output of this function to a text file.

but in this text file only one record is written, Is this possible that in
case of aodv, rt_down function called only once.

Regards,
Ranjana


Re: [ns] insertion stpes of VBR code instead of CBR

2011-03-08 Thread sadaq mohammed khan mohammed

On 9 March 2011 02:45, sadaq mohammed khan mohammed affu...@gmail.comwrote:

 I have default cbr traffic in ns-allinone-2.34. But i want insert VBR code
 in ns.234 tools. please can you please tell me the steps to insert the code.
 I have code

 // insert new packet types here
 *static const packet_t PT_VBR = 61;*
 static packet_t   PT_NTYPE = 62; // This MUST be the LAST one

 Please tell me further steps where do i create and insert the file