[ns] regarding the MobiReal software

2009-06-02 Thread Geetha

 Dear Users,

I would like to know whether there is  some website  for installation
procedure or any forum for MobiReal software in cygwin environment.


Looking forward for ur reply,

Thanking you

With Regards
Geetha


[ns] help: use xgraph to trace packet loss ration of vertical handover

2009-06-02 Thread khobeib ayadi

hi,
i'm working on th vertical handover on ns2 and i want to trace on xgraph the
packet loss rate but i don't know how. so if someone can help me i will be
thankful.

ayadi


[ns] ns-2.28 installation problems

2009-06-02 Thread COULIBALY Yaya

Hi all,

While  installing NS-2.28 on my computer running under fedora 8.0, I get the
fellowing message:
make: *** [trace/trace.o] Error 1
Ns make failed!

I have followed the solution provided in :
http://www.isi.edu/nsnam/ns/ns-problems.html  by replacing NULL by 0
but the error persists.
Any suggestions ?



COULIBALY Yahaya
PhD Candidate
Faculty of Computer Science  Information Systems
Department of Communication  Computer Systems
Malaysia University of Technology (UTM)
81310 Skudai, Johor Bahru, Johor
Cell: 0060196886615


[ns] NS2/mannasim on ubuntu 9.04 or GCC version 4.3.3

2009-06-02 Thread Ravit Sachasiri

Hi all,

After painstakingly trying to install NS2 in my system, and havin errors in
the compiling of mannasim patch with NS2, I received errors regarding the
header file list.h and vector.h. It seems that these header files cannot
be found.

The error:

 In file included from mannasim/processing.h:44,

  from
 mannasim/accessPointApp.h:45,

  from
 mannasim/accessPointApp.cc:37:


 mannasim/sensorNode.h:36:18: error: list.h: No such file or
 directory

 In file included from
 mannasim/processing.h:45,

  from
 mannasim/accessPointApp.h:45,


  from
 mannasim/accessPointApp.cc:37:

 mannasim/sensedData.h:41:20: error: vector.h: No such file or
 directory
 In file included from
 ./common/agent.h:41,


  from
 mannasim/accessPointApp.h:40,

  from
 mannasim/accessPointApp.cc:37:

 ./common/packet.h: In constructor
 ?p_info::p_info()?:


 ./common/packet.h:184: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:185: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:186: warning: deprecated conversion from string constant

 to ?char*?
 ./common/packet.h:187: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:188: warning: deprecated conversion from string constant
 to ?char*?

 ./common/packet.h:189: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:190: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:191: warning: deprecated conversion from string constant

 to ?char*?
 ./common/packet.h:192: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:193: warning: deprecated conversion from string constant
 to ?char*?

 ./common/packet.h:194: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:195: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:196: warning: deprecated conversion from string constant

 to ?char*?
 ./common/packet.h:197: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:198: warning: deprecated conversion from string constant
 to ?char*?

 ./common/packet.h:199: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:200: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:201: warning: deprecated conversion from string constant

 to ?char*?
 ./common/packet.h:202: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:203: warning: deprecated conversion from string constant
 to ?char*?

 ./common/packet.h:205: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:206: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:207: warning: deprecated conversion from string constant

 to ?char*?
 ./common/packet.h:208: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:209: warning: deprecated conversion from string constant
 to ?char*?

 ./common/packet.h:210: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:212: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:213: warning: deprecated conversion from string constant

 to ?char*?
 ./common/packet.h:214: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:215: warning: deprecated conversion from string constant
 to ?char*?

 ./common/packet.h:216: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:217: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:218: warning: deprecated conversion from string constant

 to ?char*?
 ./common/packet.h:219: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:220: warning: deprecated conversion from string constant
 to ?char*?

 ./common/packet.h:221: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:222: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:223: warning: deprecated conversion from string constant

 to ?char*?
 ./common/packet.h:224: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:225: warning: deprecated conversion from string constant
 to ?char*?

 ./common/packet.h:227: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:228: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:230: warning: deprecated conversion from string constant

 to ?char*?
 ./common/packet.h:231: warning: deprecated conversion from string constant
 to ?char*?
 ./common/packet.h:232: warning: deprecated conversion from string constant
 to ?char*?

 ./common/packet.h:235: warning: deprecated conversion from string constant
 

[ns] regarding recompilation of aodv.cc

2009-06-02 Thread Nadilma Nunes

Steps:

1. Go to the /ns-allinone-2.33/ns-2.33

2. make clean

3. make

Send me e-mail if you can success. I hope help u

Message: 6
Date: Mon, 1 Jun 2009 16:53:24 +0530
From: umang singh singh.um...@hotmail.com
Subject: [ns] regarding recompilation of aodv.cc
To: ns-users ns-users@ISI.EDU
Message-ID: blu139-w1363f1ad4665efa61e6522ea...@phx.gbl
Content-Type: text/plain; charset=Windows-1252


hi,

I did some modification in aodv.cc .please tell me how to recompile
it.please tell me it in steps as i m beginner.

regards,

umang


[ns] Fwd: regarding recompilation of aodv.cc

2009-06-02 Thread Nadilma Nunes

Steps:

1. Go to the /ns-allinone-2.33/ns-2.33

2. make clean

3. make

Send me e-mail if you can success. I hope help u

Message: 6
Date: Mon, 1 Jun 2009 16:53:24 +0530
From: umang singh singh.um...@hotmail.com
Subject: [ns] regarding recompilation of aodv.cc
To: ns-users ns-users@ISI.EDU
Message-ID: blu139-w1363f1ad4665efa61e6522ea...@phx.gbl
Content-Type: text/plain; charset=Windows-1252


hi,

I did some modification in aodv.cc .please tell me how to recompile
it.please tell me it in steps as i m beginner.

regards,

umang


[ns] Fwd: Ns-users Digest, Vol 66, Issue 1

2009-06-02 Thread muazzam ali

-- Forwarded message --
From: muazzam ali khattakmuaz...@gmail.com
Date: Tue, Jun 2, 2009 at 11:50 AM
Subject: Re: Ns-users Digest, Vol 66, Issue 1
To: ns-users@isi.edu


hello every body.

i want to simulate sensor networks in ns-2 but the the sensor nodes in
the network  receive data packet from phenom nodes at physical layer
but it do not pass it towards the network layer. The phenom nodes
receive packets from phenom nodes.

is there any one to help me whats the problem.

On 6/2/09, ns-users-requ...@isi.edu ns-users-requ...@isi.edu wrote:
 Send Ns-users mailing list submissions to
   ns-users@isi.edu

 To subscribe or unsubscribe via the World Wide Web, visit
   http://mailman.isi.edu/mailman/listinfo/ns-users
 or, via email, send a message with subject or body 'help' to
   ns-users-requ...@isi.edu

 You can reach the person managing the list at
   ns-users-ow...@isi.edu

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Ns-users digest...


 Today's Topics:

1. Questions about Gpsr code for ns2! (??)
2. Re: error node movement in infrastructure mode (Thavouth Khoun)
3. saodv code for ns-2 (lets go ok)
4. make cbr traffic from mobile node to wired node in
   infrastructure mode (Thavouth Khoun)
5. OLSR by Naval Research Laboratory (alberto de barros)
6. regarding recompilation of aodv.cc (umang singh)
7. help with assigning cbr connections (Mathiew Moussa)
8. Problem in installing DYMOUM 0.3 patch in NS2 (Imran khan)
9. Packet::copy() issue with ns2.33 (Swaroop Shere)
   10. Re: Problem in installing DYMOUM 0.3 patch in NS2
   (Francisco Javier Ros Munoz)
   11. S-MAC and 802.15.4 -HELP ME PLEASE!!! (Caio Marziale)
   12. Re: Packet::copy() issue with ns2.33 (Swaroop Shere)


 --

 Message: 1
 Date: Mon, 1 Jun 2009 08:38:02 +0800 (CST)
 From: ?? bxb1...@yahoo.com.cn
 Subject: [ns] Questions about Gpsr code for ns2!
 To: ns-users@ISI.EDU
 Cc: k...@cs.binghamton.edu
 Message-ID: 580098.59264...@web15104.mail.cnb.yahoo.com
 Content-Type: text/plain; charset=utf-8

 Hello dears:
 I am beginner in ns2. Recently i used gpsr patch of
 GPSR_KeLiu_SUNY_Binghamton.
 When i measure the performance of gpsr, i find the data packets loss ratio
 is very high with 70~80%. why is it?
 ?
 My scenarios?are 1000*1000m,?(50,100)nodes?combined
 with?(10,20,30,40m/s)velocities?respectively with 30 CBR .
 See details:
 for?cbr.tcl:??? nodes: 50/100, max conn: 30, send rate: 0.5, seed:
1
 for scen.tcl: nodes: 50/100, pause: 0.00, max speed:
10/20/30/40.00,
 max x: 1000.00, max y: 1000.00
 ?
 What's more,?in the given cbr traffic filecbr100.tcl 2 nodes is selected
 to startSink as followed:
 $ns_ at 11.0 $ragent_(0) startSink 10.0
 $ns_ at 10.5 $ragent_(99) startSink 10.0
 ?
 In my cbr file, i did this for every node:
 ?
 for {set i 37} {$i  40} {incr i} {
 ??? $ns_ at 10.5 $ragent_($i) startSink 10.0
 }
 then,when i type??$ ns wireless-gpsr.tcl
 i got info:

 num_nodes is set 50
 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
 GPSR configuration file
 INITIALIZE THE LIST xListHead
 Loading connection pattern...
 Loading scenario file...
 Load complete...
 Starting Simulation...
 channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
 highestAntennaZ_ = 1.5,? distCST_ = 550.0
 SORTING LISTS ...DONE!
 Wrong the other node

 the last Wrong the other node means what?is it because that some node
send
 data, meanwhile startSink to receive data? is there something to do with
the
 abnormally data loss?
 ?
 Then, what should i do when i get my own cbr file? manually edit it or any
 easy ways to ensure that some nodes only send and some only startSink to
 receive???
 ?
 Also, what 's the location service is adopted? GLS? i'm puzzled! Pls guide
 me!
 and in gpsr, this is no store and foward schem? when packets lost,
 retransmission occured?
 ?
 thanks in advance! thank u for your time!
 best wishes! Look forward to your letter!


   ___
   ?
 http://card.mail.cn.yahoo.com/

 --

 Message: 2
 Date: Mon, 1 Jun 2009 09:07:43 +0700
 From: Thavouth Khoun nsusero...@gmail.com
 Subject: Re: [ns] error node movement in infrastructure mode
 To: Lu?s Barreto lmcbarr...@gmail.com
 Cc: NS ns-users@ISI.EDU
 Message-ID:
   c40919ad0905311907g93cc159t7bda9e957b835...@mail.gmail.com
 Content-Type: text/plain; charset=ISO-8859-1

 Hi Luis,

 Thanks for you reply, but there are no asterisks (*) in my code.
 It is just *$ns at 10.0 $node_(4) setdest 500.0 350.0 3.0

 *I don't know if it appears to have them in email.

 Regards,

 Thavouth K.
 Dept. of Telecom. Science
 Assumption University


 2009/5/29 Lu?s Barreto lmcbarr...@gmail.com

 Hi,

 You have

 *$ns at 10.0 $node_(4) setdest 500.0 350.0 3.0 *

 Why are you using *, you 

Re: [ns] Ns-users Digest, Vol 66, Issue 1

2009-06-02 Thread muazzam ali

Why sensor nodes didnt receive pkts from phenom nodes in ns-2 while
simulating WSN the pkts received only at physical layer and not ass towards
uper lyer.

Is there any issue at physical layer of the sensor nodes or something else.


Regardz

M.A.Khattak

On Tue, Jun 2, 2009 at 5:22 PM, muazzam ali khattakmuaz...@gmail.comwrote:



 -- Forwarded message --
 From: muazzam ali khattakmuaz...@gmail.com
 Date: Tue, Jun 2, 2009 at 11:50 AM
 Subject: Re: Ns-users Digest, Vol 66, Issue 1
 To: ns-users@isi.edu


 hello every body.

 i want to simulate sensor networks in ns-2 but the the sensor nodes in
 the network  receive data packet from phenom nodes at physical layer
 but it do not pass it towards the network layer. The phenom nodes
 receive packets from phenom nodes.

 is there any one to help me whats the problem.

 On 6/2/09, ns-users-requ...@isi.edu ns-users-requ...@isi.edu wrote:
  Send Ns-users mailing list submissions to
ns-users@isi.edu
 
  To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.isi.edu/mailman/listinfo/ns-users
  or, via email, send a message with subject or body 'help' to
ns-users-requ...@isi.edu
 
  You can reach the person managing the list at
ns-users-ow...@isi.edu
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of Ns-users digest...
 
 
  Today's Topics:
 
 1. Questions about Gpsr code for ns2! (??)
 2. Re: error node movement in infrastructure mode (Thavouth Khoun)
 3. saodv code for ns-2 (lets go ok)
 4. make cbr traffic from mobile node to wired node in
infrastructure mode (Thavouth Khoun)
 5. OLSR by Naval Research Laboratory (alberto de barros)
 6. regarding recompilation of aodv.cc (umang singh)
 7. help with assigning cbr connections (Mathiew Moussa)
 8. Problem in installing DYMOUM 0.3 patch in NS2 (Imran khan)
 9. Packet::copy() issue with ns2.33 (Swaroop Shere)
10. Re: Problem in installing DYMOUM 0.3 patch in NS2
(Francisco Javier Ros Munoz)
11. S-MAC and 802.15.4 -HELP ME PLEASE!!! (Caio Marziale)
12. Re: Packet::copy() issue with ns2.33 (Swaroop Shere)
 
 
  --
 
  Message: 1
  Date: Mon, 1 Jun 2009 08:38:02 +0800 (CST)
  From: ?? bxb1...@yahoo.com.cn
  Subject: [ns] Questions about Gpsr code for ns2!
  To: ns-users@ISI.EDU
  Cc: k...@cs.binghamton.edu
  Message-ID: 580098.59264...@web15104.mail.cnb.yahoo.com
  Content-Type: text/plain; charset=utf-8
 
  Hello dears:
  I am beginner in ns2. Recently i used gpsr patch of
  GPSR_KeLiu_SUNY_Binghamton.
  When i measure the performance of gpsr, i find the data packets loss
 ratio
  is very high with 70~80%. why is it?
  ?
  My scenarios?are 1000*1000m,?(50,100)nodes?combined
  with?(10,20,30,40m/s)velocities?respectively with 30 CBR .
  See details:
  for?cbr.tcl:??? nodes: 50/100, max conn: 30, send rate: 0.5,
 seed: 1
  for scen.tcl: nodes: 50/100, pause: 0.00, max speed:
 10/20/30/40.00,
  max x: 1000.00, max y: 1000.00
  ?
  What's more,?in the given cbr traffic filecbr100.tcl 2 nodes is
 selected
  to startSink as followed:
  $ns_ at 11.0 $ragent_(0) startSink 10.0
  $ns_ at 10.5 $ragent_(99) startSink 10.0
  ?
  In my cbr file, i did this for every node:
  ?
  for {set i 37} {$i  40} {incr i} {
  ??? $ns_ at 10.5 $ragent_($i) startSink 10.0
  }
  then,when i type??$ ns wireless-gpsr.tcl
  i got info:
 
  num_nodes is set 50
  warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
  GPSR configuration file
  INITIALIZE THE LIST xListHead
  Loading connection pattern...
  Loading scenario file...
  Load complete...
  Starting Simulation...
  channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
  highestAntennaZ_ = 1.5,? distCST_ = 550.0
  SORTING LISTS ...DONE!
  Wrong the other node
 
  the last Wrong the other node means what?is it because that some node
 send
  data, meanwhile startSink to receive data? is there something to do with
 the
  abnormally data loss?
  ?
  Then, what should i do when i get my own cbr file? manually edit it or
 any
  easy ways to ensure that some nodes only send and some only startSink to
  receive???
  ?
  Also, what 's the location service is adopted? GLS? i'm puzzled! Pls
 guide
  me!
  and in gpsr, this is no store and foward schem? when packets lost,
  retransmission occured?
  ?
  thanks in advance! thank u for your time!
  best wishes! Look forward to your letter!
 
 
___
?
  http://card.mail.cn.yahoo.com/
 
  --
 
  Message: 2
  Date: Mon, 1 Jun 2009 09:07:43 +0700
  From: Thavouth Khoun nsusero...@gmail.com
  Subject: Re: [ns] error node movement in infrastructure mode
  To: Lu?s Barreto lmcbarr...@gmail.com
  Cc: NS ns-users@ISI.EDU
  Message-ID:

[ns] tcp agent

2009-06-02 Thread El hadi Cherkaoui

hi all,

i have a tcp agent :

set tcp_(0) [new Agent/TCP/FullTcp] 
and i try to read the number of bytes of this agent 

but the variables bytes_ doesn't exist on tcp/FullTcp what can i do ?  



  


Re: [ns] [Ns-developers] ns-2 release candidate available for testing

2009-06-02 Thread Tom Henderson

Tom Henderson wrote:
 Hi all,
 
 I've posted some new release candidates for the following packages:
 
 ns-2.34
 nam-1.14
 ns-allinone-2.34
 
 They are available at the following location:
 http://sourceforge.net/project/showfiles.php?group_id=149743
 
 ns-2.34 is mainly a maintenance release with the following major 
 differences from ns-2.33:
 1) AOMDV (On-demand Multipath Distance Vector Routing in Ad Hoc 
 Networks) implementation
 2) Tmix synthetic Internet traffic generation tool
 3) Collection of bug fixes for 802.11Ext model
 
 In addition, the recent Linux distributions (especially Fedora Core 10) 
 started to have problems with the previous releases, so there are some 
 fixes aimed at better 64-bit support and support for Fedora Core 10.
 
 These packages still rely on the 8.4 series of Tcl/Tk.  I had hoped to 
 release these a while back but I was trying to bump them to Tcl/Tk-8.5 
 (especially thanks to patches from Amir Habibi).  However, after some 
 internal testing of some release candidates with Tcl/Tk-8.5, I decided 
 that it would be safer to make the transition after this release. 
 Therefore, if your platform supports tcl/tk development packages only 
 for version 8.5 (I think FC10 is the main one in this category) please 
 use the ns-allinone-2.34 version for now.
 
 How you can help
 ---
 
 Please give these packages a try on your system.  If you encounter a 
 problem, please first download the equivalent package for the previous 
 version (i.e., ns-2.33 or nam-1.13) and see if you get the same problem 
 or if we are introducing a new problem.  Then let me know, and cc the 
 ns-developers list.  Please specify as much detail as you can about the 
 system (operating system version, CPU architecture, gcc version, etc.). 
  If you can send in a patch that fixes any problem, this is even better.
 
 If there aren't any major problems, we can make this a real release at 
 the beginning of June, or else I'll create new release candidates as 
 needed.
 

Just a brief update on this status-- I'm waiting for a bugfix patch from 
the 802.11Ext team (later this week), and then I think we can make this 
release.  I haven't heard any complaints about the build.

- Tom



[ns] GPRS simulation in NS-2

2009-06-02 Thread Nicholas Loulloudes


Hello,

Do you know if it is possible to simulate GPRS or any other cellular
data protocol in NS-2.33?

Thanks in advance.

- Nicholas.

--
_

Nicholas Loulloudes
High Performance Computing Systems Laboratory (HPCL)
University of Cyprus,
Nicosia, Cyprus

Tel:  +357-22892663
Email: loulloudes.n[at]cs.ucy.ac.cy
_



Re: [ns] S-MAC x 802.15.4

2009-06-02 Thread Caio Marziale

Hum.. S-MAC is not a simple MAC (Source code is avaliable on
http://read.pudn.com/downloads65/sourcecode/embed/234094/SMAC(Sources)/simple_phy.c__.htm
)?

NS2 S-MAC is completly wrong?

Thank you!

2009/5/30 Amin Irandoost amin.irando...@gmail.com

 S-MAC is a sensor mac and NS2 S-MAC has very bug!!! for example with duty
 cycle under 10%
 energy consumption increase!!
 Amin Irandoost



Re: [ns] GPRS simulation in NS-2

2009-06-02 Thread Swaroop Shere

Please refer this link...
http://www.cs.binghamton.edu/~kliu/research/ns2code/index.html#gpsr

regards,
Swaroop

--- On Tue, 2/6/09, Nicholas Loulloudes loulloude...@cs.ucy.ac.cy wrote:

From: Nicholas Loulloudes loulloude...@cs.ucy.ac.cy
Subject: [ns] GPRS simulation in NS-2
To: ns-users@ISI.EDU
Date: Tuesday, 2 June, 2009, 8:06 PM


Hello,

Do you know if it is possible to simulate GPRS or any other cellular
data protocol in NS-2.33?

Thanks in advance.

- Nicholas.

-- _

Nicholas Loulloudes
High Performance Computing Systems Laboratory (HPCL)
University of Cyprus,
Nicosia, Cyprus

Tel:  +357-22892663
Email: loulloudes.n[at]cs.ucy.ac.cy
_




  Explore and discover exciting holidays and getaways with Yahoo! India 
Travel http://in.travel.yahoo.com/


[ns] OLSRv2 source code?

2009-06-02 Thread Bringo Shawn

Hello friends,
I want to read OLSRv2 source code in c/c++. Please tell me where can I find it. 
I have already searched it at sourceforge.net but found there. Please help me.
Regards.


  


[ns] curves with dashed line using xgraph: please help

2009-06-02 Thread nadine341

Hi,
Please tell me how can I use differentiate curves in xgraph by varying the line 
style and not the line color? what is the command that I should write?
please help me.
Thank you.



  


[ns] how to add actual execution time in delay?

2009-06-02 Thread Abhijeet Mirikar

Hello All,
 whenever a packet is transmitted on a link, it gets delayed by only the
delay specified for that link. But if some extra processing is done while
transmitting (say AES encryption) packet, actual execution time of the
processing is not added in the delay. What can be done for getting actual
delay as delay of link + actual execution time required for processing?

   regards,

Abhijeet Mirikar


[ns] ns2.28 installation errors

2009-06-02 Thread COULIBALY Yaya

ear all,

Here are the errors I am getting while installing ns2.28 on fedora 8:

g./asim/ -I./qs -I./diffserv -I./wpan -o trace/trace.o trace/trace.cc
./sctp/sctp.h:630: error: extra qualification ‘SctpAgent::’ on member
‘DumpSendBuffer’
make: *** [trace/trace.o] Error 1
Ns make failed!

Cheers

COULIBALY Yahaya
PhD Candidate
Faculty of Computer Science  Information Systems
Department of Communication  Computer Systems
Malaysia University of Technology (UTM)
81310 Skudai, Johor Bahru, Johor
Cell: 0060196886615


[ns] Problems about FEC coding rate based on network throughput

2009-06-02 Thread WuRong.Pan

Hi, everyone. Now I am do a study in the area of FEC rate control
mechanism, I just think out rate control based on the throughput
capacity. Sender checks the throughput capacity and estimates the
available bandwidth how much it can use. then sender calculate the FEC
coding rate based on the throughput data. Such as, when the network is
better, sender will send more FEC redundancy packet, or else, it will
reduce the redundancy packet rate.
  Above is my idea, however, I
dont know how to do that in NS2. About how to program between Mac layer
and Application layer. Can someone give me a guide to do that or give
me suggestion on that idea? I have been in this problem for 1 month.
Really waiting for your help, and thanx very much.


  


Re: [ns] help with assigning cbr connections

2009-06-02 Thread Mathiew Moussa

Hello Kavan,

I think this might help, I will try it soon.

Thanks :D
Mathiew

Quoting kavan sheth shethka...@gmail.com:

 Hi mathiew,

 in the static configuration we start cbr traffic using tcl commands.

 set udp_(0) [new Agent/UDP]
 $ns_ attach-agent $node_(2) $udp_(0)
 set null_(0) [new Agent/Null]
 $ns_ attach-agent $node_(3) $null_(0)
 set cbr_(0) [new Application/Traffic/CBR]
 $cbr_(0) set packetSize_ 512
 $cbr_(0) set interval_ 0.25
 $cbr_(0) set random_ 1
 $cbr_(0) set maxpkts_ 1
 $cbr_(0) attach-agent $udp_(0)
 $ns_ connect $udp_(0) $null_(0)
 $ns_ at 82.557023746220864 $cbr_(0) start



 So what you can do is execute this tcl statements dynamically from you c++
 code using any of the following two ways
 (following are just example of how to run tcl command from your c++ code.
 for more deail refer section 3.3 of ns)
 sprintf(tcl.buffer(), Agent/SRM set requestFunction_ %s, Fixed);
 tcl.eval();
 OR
 tcl.evalf(%s request %d %d, name_, sender, msgid);

 hope this will help!! (I am not sure, but I think this will work)

 regards,
 Kavan Sheth
 DA-IICT
 India

 On Mon, Jun 1, 2009 at 7:56 PM, Mathiew Moussa mm...@aub.edu.lb wrote:


 Hi All,

 I am implementing a clustering algorithm for WSNs and I'm constructing
 the clusters in C++.

 The clustering phase is done in the beginning of the simulation for
 about 3seconds after which i need to assign connections between the
 cluster members and cluster heads based on the results of the cluster
 algorithm, therefore assign the necessary cbr connections only.

 How can i do this dynamically, therefore how can i tell the nodes in a
 cluster to open a cbr connection with only their cluster head
 (considering the nodes already know the cluster head they need to bind
 too in C++).

 Can this be done in TCL.

 Your Help is greatly appreciated.
 Thanks.

 Mathiew