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.



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

2011-05-24 Thread pebbles



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-tp31407109p31688725.html
Sent from the ns-users mailing list archive at Nabble.com.




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

2011-05-24 Thread Fivos.K


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-tp31407109p31694258.html
Sent from the ns-users mailing list archive at Nabble.com.




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

2011-05-23 Thread pebbles


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? 





Fivos.K wrote:
 
 the packet order can be fixed by removing the jitter when sending the rtp
 packets. 
 
 The reason there are too few RTCP packets is because of the way PUMA
 functions. Ideally you would like RTCP packets to be sent using Unicast.
 This is not possible with PUMA. You should try ADMR which still
 outperforms MAODV and is able to send these packets using a unicast
 mechanism.
 
 Fivos K. 
 
 
 pebbles wrote:
 
 Thanx a lot for your answer!
 
 I used PUMA, but I think there's sth wrong with the packet order. I also
 saw too many RTP packets and too few RTCP.
 
 
 

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



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

2011-05-23 Thread Fivos.K




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-tp31407109p31683377.html
Sent from the ns-users mailing list archive at Nabble.com.



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

2011-05-23 Thread pebbles


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-tp31407109p31684920.html
Sent from the ns-users mailing list archive at Nabble.com.



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

2011-05-23 Thread Fivos.K


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-tp31407109p31686327.html
Sent from the ns-users mailing list archive at Nabble.com.



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

2011-05-21 Thread Fivos.K


the packet order can be fixed by removing the jitter when sending the rtp
packets. 

The reason there are too few RTCP packets is because of the way PUMA
functions. Ideally you would like RTCP packets to be sent using Unicast.
This is not possible with PUMA. You should try ADMR which still outperforms
MAODV and is able to send these packets using a unicast mechanism.

Fivos K. 


pebbles wrote:
 
 Thanx a lot for your answer!
 
 I used PUMA, but I think there's sth wrong with the packet order. I also
 saw too many RTP packets and too few RTCP.
 

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



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

2011-05-10 Thread pebbles


Thanx a lot for your answer!

I used PUMA, but I think there's sth wrong with the packet order. I also saw
too many RTP packets and too few RTCP.
-- 
View this message in context: 
http://old.nabble.com/RTP-over-wireless-connection-between-two-nodes-tp31407109p31586209.html
Sent from the ns-users mailing list archive at Nabble.com.



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

2011-04-17 Thread pebbles



I found out that a function in file /ns-2.34/tcl/mcast/ns-mcast.tcl caused
that problem:

Node instproc new-group { src group iface code } {
$self instvar mrtObject_
#changed
#$mrtObject_ upcall $code $src $group $iface
$mrtObject_ upcall $src $group $iface $code
}

The change I made solved that error but now I've got another one:
the 2 nodes that are supposed to be connected in an RTP session seem to send
packets to an undefined destination -2147483648 but not to each other.


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



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

2011-04-17 Thread Fivos.K


Hi, to do wireless multicasting you will need to use a specific adhoc
protocol like  MAODV,ADMR,ODMR or PUMA . 

The multicast option you are using in your script is only for wired
connections. 
Here's the links to the multicast adhoc protocols i mentioned before :

PUMA : http://sourceforge.net/projects/puma-adhoc/
ADMR  ODMR : http://www.monarch.cs.rice.edu/multicast_extensions.html
MAODV : http://www.sce.carleton.ca/wmc/code.html

Good luck ! 


pebbles wrote:
 
 Hello to everyone,
 I'm a complete noob at NS but I've checked some tutorials, run a couple of
 tcl examples but I still can't combine all these so as to do what I want.
 That is to create an RTP session between 2 nodes. The connection between
 them has to be wireless. I'm trying to do the same things as shown in 2
 examples of /ns-2.34/tcl/ex, simple-wireless.tcl and simple-rtp.tcl. I get
 this weird error but I haven't found anything on the web:
 
 
 num_nodes is set 2
 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
 INITIALIZE THE LIST xListHead
 Starting Simulation...
 channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
 highestAntennaZ_ = 1.5,  distCST_ = 550.0
 SORTING LISTS ...DONE!
 ns: _o19 new-group 0 -2147483648 -1 cache-miss: can't read
 protocols_(-1): no such variable
 while executing
 $protocols_($iface) upcall $code $source $group $iface
 (procedure _o20 line 9)
 (mrtObject upcall line 9)
 invoked from within
 $mrtObject_ upcall $code $src $group $iface
 (procedure _o14 line 3)
 (Node new-group line 3)
 invoked from within
 $node_ new-group $src $group $iface $code
 (procedure _o19 line 3)
 (Classifier/Multicast new-group line 3)
 invoked from within
 _o19 new-group 0 -2147483648 -1 cache-miss
 
 
 I think it has to do with the function mrtObject instproc upcall in the
 file /ns-2.34/tcl/mcast/McastProto.tcl
 but I'd like to know what I've got to do about it. I saw that RTP stuff is
 still undocumented (http://www.isi.edu/nsnam/ns/doc/ns_doc.pdf).
 
 I would really appreciate any help/hint/suggestion.
 
 Thank you :-)
 
  http://old.nabble.com/file/p31407109/rtpwi.tcl rtpwi.tcl 
 

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



[ns] RTP over wireless connection between two nodes

2011-04-15 Thread pebbles


Hello to everyone,
I'm a complete noob at NS but I've checked some tutorials, run a couple of
tcl examples but I still can't combine all these so as to do what I want.
That is to create an RTP session between 2 nodes. The connection between
them has to be wireless. I'm trying to do the same things as shown in 2
examples of /ns-2.34/tcl/ex, simple-wireless.tcl and simple-rtp.tcl. I get
this weird error but I haven't found anything on the web:


num_nodes is set 2
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
ns: _o19 new-group 0 -2147483648 -1 cache-miss: can't read protocols_(-1):
no such variable
while executing
$protocols_($iface) upcall $code $source $group $iface
(procedure _o20 line 9)
(mrtObject upcall line 9)
invoked from within
$mrtObject_ upcall $code $src $group $iface
(procedure _o14 line 3)
(Node new-group line 3)
invoked from within
$node_ new-group $src $group $iface $code
(procedure _o19 line 3)
(Classifier/Multicast new-group line 3)
invoked from within
_o19 new-group 0 -2147483648 -1 cache-miss


I think it has to do with the function mrtObject instproc upcall in the file
/ns-2.34/tcl/mcast/McastProto.tcl
but I'd like to know what I've got to do about it. I saw that RTP stuff is
still undocumented (http://www.isi.edu/nsnam/ns/doc/ns_doc.pdf).

I would really appreciate any help/hint/suggestion.

Thank you :-)

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