Re: [ns] Sending RREQ periodically, any suggestion?

2011-05-25 Thread Teerawat@UBC

Hi Mohamed,

You need to have the list of destination address and you can call the following 
function for all your destination

sendRequest(dst)

Do it when the timer expires.

Best Wishes

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



On May 23, 2011, at 2:04 AM, Mohamed Ibrahim Salman wrote:

 
 
 Hi,
 I want to send out a RREQ periodically from only one specific node, any 
 suggestion?
 I made a Timer, but How to loop through all the nodes in the network to send 
 a RREQ for them if they are available.
 
 




[ns] [NS-ANS] Re: [NS2]What is meaning in Ns-default.tcl (tcl\lib):LL set delay_

2011-05-25 Thread Teerawat@UBC

Hi Bruce, 

This statement set the default value of the class variable 'delay_'  all 'LL' 
objects to be 25e-6 s.

Best Wishes

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

On May 9, 2011, at 9:13 AM, ¤終於aware wrote:

 
 Hi,
 What is  meaning in Ns-default.tcl (tcl\lib):LL set delay_
25us? I analyzed the trace file and found that the difference value 
 between the time when a packet is receive on MAC and the time when the packet 
 is forwarded on RTR.
  Looking forward to your reply,thanks
 
 yours,
 Bruce




[ns] get arrival packet time

2011-05-25 Thread Tami Nesher

Hi,
I would like to know , how can I get the time that the first packet arrived
to the tcpsink.
Is there any function that do it? or something else?
Thanks


Re: [ns] get arrival packet time

2011-05-25 Thread Tami Nesher

But I need to do it in the TcpSink class . do you know any suitable function
in C?
THANKS

On Wed, May 25, 2011 at 2:49 AM, ÞÕÇÏ Úíäì Ýì ßá ãßÇä mohammed 
teto...@yahoo.com wrote:

 you can show it through trace file

 --- On *Wed, 5/25/11, Tami Nesher vessely...@gmail.com* wrote:


 From: Tami Nesher vessely...@gmail.com
 Subject: [ns] get arrival packet time
 To: ns-users@ISI.EDU
 Date: Wednesday, May 25, 2011, 5:28 AM



 Hi,
 I would like to know , how can I get the time that the first packet arrived
 to the tcpsink.
 Is there any function that do it? or something else?
 Thanks




-- 
רבי משה בן מכיר זצל, מגדולי הראשונים כתב:
מי שאומר את ברכת אשר יצר בכוונה, ומוציא כל מילה מפיו בקול רם וברור,  לא
יבוא עליו שום חולי שבעולם, ולא יזדקק כלל לרופאים או לתרופות!

[ns] OSPF on ns-2

2011-05-25 Thread Pedro Dias

Hi all,

how can I configure OSPF on ns-2? I've tested the link state based protocol
( LS ), but it seems to use only the number of hops to calculate the link
cost. How can I change this to consider the bandwidth? Can I set my own cost
function? How?

Thanks in advance,

-- 
Pedro Dias de Oliveira Carvalho


Re: [ns] RTP over wireless connection between two nodes

2011-05-25 Thread pebbles


Thanx a lot for the zip file and your help!

I tried to compile it but it gave me errors like this:

aodv/aodv.o: In function `AODV::command(int, char const* const*)':
aodv.cc:(.text+0xcd): undefined reference to
`GroupHelloTimer::handle(Event*)'
aodv.cc:(.text+0x2c9): undefined reference to `aodv_mtable::mt_lookup(int)'
aodv.cc:(.text+0x2ea): undefined reference to `aodv_mtable::mt_add(int)'
aodv.cc:(.text+0x350): undefined reference to `AODV::sendMRQ(aodv_mt_entry*,
unsigned char)'

Version 2.31 works fine without maodv so there must be sth wrong with c++
stuff and its linkage.



Fivos.K wrote:
 
 try this link 
 
 http://140.112.21.101/~maxmilian/ns2/ns-allinone-2.31_with_maodv.zip
 
 it contains a ready version of ns-allinone 2.31 with maodv included.
 
 Also note that by installing 2.26 all in one package you don't damage
 anything. All the files of ns2 reside in its directory. if you wish to
 uninstall it all you need to do is delete the dir. 
 
 as for using the right tcl version ,you can have an if condition in your
 bashrc as i do.
 i have a variable called NS  in it and set it according to the NS-version
 i want to use .for example
 
 export NS=26 
 source ~/.bashrc 
 
 would load ns version 2.26 settings. 
 
 It's quite easy once you understand how this works. I have 4 ns-versions
 on my system all working fine. 
 
 good luck !
 
 
 pebbles wrote:
 
 
 I tried to install the 2.26 but it needs older version of tcl and I don't
 want to damage the 2.34 installation. I installed 2.31 but when I tried
 to add the maodv files it gave me this error:
 
 mac/channel.cc: In member function ‘void
 WirelessChannel::calcHighestAntennaZ(Phy*)’:
 mac/channel.cc:625: error: ‘class WirelessPhy’ has no member named
 ‘getAntennaZ’
 mac/channel.cc:626: error: ‘class WirelessPhy’ has no member named
 ‘getAntennaZ’
 mac/channel.cc:632: error: ‘class WirelessPhy’ has no member named
 ‘getDist’
 mac/channel.cc:632: error: ‘class WirelessPhy’ has no member named
 ‘getCSThresh’
 mac/channel.cc:632: error: ‘class WirelessPhy’ has no member named
 ‘getPt’
 make: *** [mac/channel.o] Error 1
 
 Did it give you such error when you installed it? It would be really
 helpful if you uploaded them anyway. Thank you in any case.
 
 
 Fivos.K wrote:
 
 i have ported them both for ns2.31 , i could upload them somewhere if
 you are interested but you could also use them in the ns version they
 support. 
 
 
 pebbles wrote:
 
 Do I have to configure myself the unicast mechanism so as to send RTCP
 packets only to the sender node (and of course keeping the multicast
 for RTP packets, so that the sender sends to every receiver node)? I'm
 asking this because in case of having more receiver nodes I'd want the
 RTP packets to be sent to all of them.
 
 Also, I couldn't find a working version of either protocol (MAODV,ADMR)
 for ns 2.34. I think it's been a long time since they have been
 updated...
 
 
 
 
 
 Fivos.K wrote:
 
 
 
 pebbles wrote:
 
 The simple-rtp example uses the multicast on option so I'd rather
 stick to a multicast protocol for now.
 
 With ADMR one node can send RTP packets to nodes that belong to one
 multicast group but each one of them 
 sends RTCP packets to that node (unicast), while with PUMA the nodes
 send RTCP packets to a multicast group address? 
 
 
 
 
 They are all multicast protocols. Simply MAODV and ADMR allow use of
 unicast as well. The RTCP packets should only be sent to the sender
 and not to the whole group,  so by sending them using a unicast
 mechanism you decrease the number of collisions in your setup.
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/RTP-over-wireless-connection-between-two-nodes-tp31407109p31700976.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] RTP over wireless connection between two nodes

2011-05-25 Thread Fivos.K


ah yes i dealt with those as well. the solution is quite trivial if you know
the following or if you can use google to resolve such compiler errors which
i strongly suggest. A quick search reveals: 

When you compile, you need to make sure that the libraries are where they're
supposed to be AND the header files (INCLUDE=...) are where they're supposed
to be. Either one can mess you up.
(The library is NOT the same as the header (.h) file. C libraries are
collections of compiled objects which are LINKED to your object code by the
linker. Header files are lexically included by the preprocessor)

What this means is that you should make sure that aodv.h is in the AODV
folder that aodv.cc is (which is indeed in the package you have I remember
correctly). You should also make sure that in Makefile.in where is says
INCLUDES= , that there is a line saying: -I./aodv \  (which there isn't, so
if you add it , it will work) . 

cheers 


pebbles wrote:
 
 Thanx a lot for the zip file and your help!
 
 I tried to compile it but it gave me errors like this:
 
 aodv/aodv.o: In function `AODV::command(int, char const* const*)':
 aodv.cc:(.text+0xcd): undefined reference to
 `GroupHelloTimer::handle(Event*)'
 aodv.cc:(.text+0x2c9): undefined reference to
 `aodv_mtable::mt_lookup(int)'
 aodv.cc:(.text+0x2ea): undefined reference to `aodv_mtable::mt_add(int)'
 aodv.cc:(.text+0x350): undefined reference to
 `AODV::sendMRQ(aodv_mt_entry*, unsigned char)'
 
 Version 2.31 works fine without maodv so there must be sth wrong with c++
 stuff and its linkage.
 
 
 
 Fivos.K wrote:
 
 try this link 
 
 http://140.112.21.101/~maxmilian/ns2/ns-allinone-2.31_with_maodv.zip
 
 it contains a ready version of ns-allinone 2.31 with maodv included.
 
 Also note that by installing 2.26 all in one package you don't damage
 anything. All the files of ns2 reside in its directory. if you wish to
 uninstall it all you need to do is delete the dir. 
 
 as for using the right tcl version ,you can have an if condition in your
 bashrc as i do.
 i have a variable called NS  in it and set it according to the NS-version
 i want to use .for example
 
 export NS=26 
 source ~/.bashrc 
 
 would load ns version 2.26 settings. 
 
 It's quite easy once you understand how this works. I have 4 ns-versions
 on my system all working fine. 
 
 good luck !
 
 
 pebbles wrote:
 
 
 I tried to install the 2.26 but it needs older version of tcl and I
 don't want to damage the 2.34 installation. I installed 2.31 but when I
 tried to add the maodv files it gave me this error:
 
 mac/channel.cc: In member function ‘void
 WirelessChannel::calcHighestAntennaZ(Phy*)’:
 mac/channel.cc:625: error: ‘class WirelessPhy’ has no member named
 ‘getAntennaZ’
 mac/channel.cc:626: error: ‘class WirelessPhy’ has no member named
 ‘getAntennaZ’
 mac/channel.cc:632: error: ‘class WirelessPhy’ has no member named
 ‘getDist’
 mac/channel.cc:632: error: ‘class WirelessPhy’ has no member named
 ‘getCSThresh’
 mac/channel.cc:632: error: ‘class WirelessPhy’ has no member named
 ‘getPt’
 make: *** [mac/channel.o] Error 1
 
 Did it give you such error when you installed it? It would be really
 helpful if you uploaded them anyway. Thank you in any case.
 
 
 Fivos.K wrote:
 
 i have ported them both for ns2.31 , i could upload them somewhere if
 you are interested but you could also use them in the ns version they
 support. 
 
 
 pebbles wrote:
 
 Do I have to configure myself the unicast mechanism so as to send RTCP
 packets only to the sender node (and of course keeping the multicast
 for RTP packets, so that the sender sends to every receiver node)? I'm
 asking this because in case of having more receiver nodes I'd want the
 RTP packets to be sent to all of them.
 
 Also, I couldn't find a working version of either protocol
 (MAODV,ADMR) for ns 2.34. I think it's been a long time since they
 have been updated...
 
 
 
 
 
 Fivos.K wrote:
 
 
 
 pebbles wrote:
 
 The simple-rtp example uses the multicast on option so I'd rather
 stick to a multicast protocol for now.
 
 With ADMR one node can send RTP packets to nodes that belong to one
 multicast group but each one of them 
 sends RTCP packets to that node (unicast), while with PUMA the nodes
 send RTCP packets to a multicast group address? 
 
 
 
 
 They are all multicast protocols. Simply MAODV and ADMR allow use of
 unicast as well. The RTCP packets should only be sent to the sender
 and not to the whole group,  so by sending them using a unicast
 mechanism you decrease the number of collisions in your setup.
 
 
 
 
 
 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/RTP-over-wireless-connection-between-two-nodes-tp31407109p31701142.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] RTP over wireless connection between two nodes

2011-05-25 Thread pebbles


Thanx for your quick reply, now I'm searching about the error it gave when I
ran my tcl script.
-- 
View this message in context: 
http://old.nabble.com/RTP-over-wireless-connection-between-two-nodes-tp31407109p31701169.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] RTP over wireless connection between two nodes

2011-05-25 Thread Fivos.K


well it shouldn't be related with the maodv as it is working as it should for
me .

Maybe solving the warning is all that is needed 
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl 

if you post your tcl script you might get some assistance ;)


pebbles wrote:
 
 Thanx for your quick reply, now I'm searching about the error it gave when
 I ran my tcl script.
 

-- 
View this message in context: 
http://old.nabble.com/RTP-over-wireless-connection-between-two-nodes-tp31407109p31701718.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] RTP over wireless connection between two nodes

2011-05-25 Thread pebbles


It's ok now! I just had to change the ns-mcast.tcl as I did in my second
post.
I'm using the example simple-wireless.tcl of ns with the option multicast
on and the error I'm getting is:


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

-- 
View this message in context: 
http://old.nabble.com/RTP-over-wireless-connection-between-two-nodes-tp31407109p31702208.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] RTP over wireless connection between two nodes

2011-05-25 Thread Fivos.K


you can't use maodv like that !! 
look in maodv-scripts folder.. and check the ns.tcl file to see how you can
configure ns to use it. 
 

pebbles wrote:
 
 It's ok now! I just had to change the ns-mcast.tcl as I did in my second
 post.
 I'm using the example simple-wireless.tcl of ns with the option multicast
 on and the error I'm getting is:
 
 
 --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
   _o16: no target for slot -1
   _o16 type: Classifier/Hash/Dest
 content dump:
 classifier _o16
   0 offset
   0 shift
   2147483647 mask
   1 slots
   slot 0: _o30 (Classifier/Port)
   -1 default
 -- Finished standard no-slot{} default handler --
 
 

-- 
View this message in context: 
http://old.nabble.com/RTP-over-wireless-connection-between-two-nodes-tp31407109p31702528.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] RTP over wireless connection between two nodes

2011-05-25 Thread pebbles


You're right!
So, if I want to use FTP or RTP I should create traffic scenarios like in
these cbr files ?


Fivos.K wrote:
 
 you can't use maodv like that !! 
 look in maodv-scripts folder.. and check the ns.tcl file to see how you
 can configure ns to use it. 
  
 
 pebbles wrote:
 
 It's ok now! I just had to change the ns-mcast.tcl as I did in my second
 post.
 I'm using the example simple-wireless.tcl of ns with the option
 multicast on and the error I'm getting is:
 
 
 --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
  _o16: no target for slot -1
  _o16 type: Classifier/Hash/Dest
 content dump:
 classifier _o16
  0 offset
  0 shift
  2147483647 mask
  1 slots
  slot 0: _o30 (Classifier/Port)
  -1 default
 -- Finished standard no-slot{} default handler --
 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/RTP-over-wireless-connection-between-two-nodes-tp31407109p31702691.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Read your message before it gets deleted!

2011-05-25 Thread Badoo

Read your message left by AQEEL before it gets deleted!

To read your message, follow this link:
http://eu1.badoo.com/0234276543/in/tQ-1kf07.wc/?lang_id=3m=65mid=4dddc0020003f800d14f

Some more patiently waiting folks:
Asif (Islamabad, Pakistan)
Jane (Kuala Lumpor, Malaysia)
Fichel (Le Kremlin-Bicêtre, France)
Sally (Tehran, Iran)
Ibrahim (Abudja, Nigeria)
... Who else?
http://eu1.badoo.com/0234276543/in/tQ-1kf07.wc/?lang_id=3m=65mid=4dddc0020003f800d14f

If clicking the links in this message does not work, copy and paste them into 
the address bar of your browser.

This email is part of our delivery procedure for the message sent by AQEEL. If 
you have received this email by mistake, please ignore it. The message will be 
deleted soon.

Have fun!
The Badoo Team


You have received this email, because a Badoo member has left a message for you 
on Badoo. This is a post-only mailing. Replies to this message are not 
monitored or answered. If you don't want to receive any more messages from 
Badoo, please notify us:
http://eu1.badoo.com/impersonation.phtml?lang_id=3mail_code=65email=ns-users%40isi.edusecret=invite_id=48160user_id=234276543m=65mid=4dddc0020003f800d14f