[ns] Ho Lun, Ho

2011-04-19 Thread Érico Porto

Is this guy still on this list?

Found his posts on a website but with no contact information.. seems he
worked in the same stuff I'm working right now: simulate OLSR in a
multi-channel environment .

Érico V. Porto


[ns] OLSRD inside NS-2

2011-03-15 Thread Érico Porto

Hello,

The OLSRD implementation is far better now, than was years ago. The OLSR
implementation IN NS-2 seems to follow the RFC3626, but does anyone know how
it relates with the actual OLSRD implementation?

And has someone built the Quality extension or the Fish eye quality
extension over the NS-2 OLSR?

Regards

Érico V. Porto


Re: [ns] OLSRD inside NS-2

2011-03-15 Thread Érico Porto

Hey, found some answers to my questions in here:
http://www.inf.ufrgs.br/~wlccordeiro/resources.php

I believe there is more people interested on this!

Thanks to Saverio Proto from the OLSR mailing list.

Érico V. Porto


On Tue, Mar 15, 2011 at 9:18 AM, Érico Porto ericoporto2...@gmail.comwrote:

 Hello,

 The OLSRD implementation is far better now, than was years ago. The OLSR
 implementation IN NS-2 seems to follow the RFC3626, but does anyone know how
 it relates with the actual OLSRD implementation?

 And has someone built the Quality extension or the Fish eye quality
 extension over the NS-2 OLSR?

 Regards

 Érico V. Porto



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

2011-03-15 Thread Érico Porto

Hello,

Are you also from Brasil?

Érico V. Porto


On Tue, Mar 15, 2011 at 9:01 AM, marllus lustosa
marlluslust...@gmail.comwrote:


 An example for the Sinalgo simulator exists. You can adptar the code of
 Java
 for TCL.

 page: www.ufpi.br/subsiteFiles/ercemapi/arquivos/files/minicurso/mc3.pdf



 --

 Message: 2
 Date: Mon, 14 Mar 2011 02:43:20 +
 From: Angel Lopez ange.llo...@hotmail.es
 Subject: [ns] Geocast code NS2
 To: ns-users@isi.edu
 Message-ID: SNT114-
 w653f3790e73a317d6e71489b...@phx.gbl
 Content-Type: text/plain; charset=iso-8859-1


 Hi,

 I'm implementing a geocast protocol for manet's, and i'll need to compare
 it. So, do you know about an available geocast code for manets in NS2?

 Thanks in advance.
 Angel Lopez.


 --
 att,

 Marllus de Melo Lustosa - lattes - http://bit.ly/dlm86f / HomePage -
 http://www.marllus.com
 Bacharelando em Ciência da Computação - UFPI
 Departamento de Informática e Estatística - DIE
 Grupo de Pesquisa e Estudos em Redes de computadores - GoPER -
 http://die.ufpi.br/goper/



Re: [ns] interference model

2011-02-22 Thread Érico Porto

Has anyone understood how this works? I found 158 matches to calls of
Mac802_11::recv,.

Any help appreciated.

Érico V. Porto


On Mon, Feb 21, 2011 at 2:38 PM, Érico Porto ericoporto2...@gmail.comwrote:

 I was looking at the mac802_11.cc implementation, and looking at the
 following function:

 Mac802_11::recv

 It seems that it also has another type of decision clause:

 if(pktRx_-txinfo_.RxPr / p-txinfo_.RxPr = p-txinfo_.CPThresh) {
 capture(p);
  } else {
 collision(p);
 }

 From this code I think a package can interfere with another in a one on one
 way, so multiple packages don't sum their energy to create a noisy
 environment.

 Also, if one package Receive power is CPThresh times bigget the another,
 than it is received, otherwise, it as marked as colision and discarded.

 Érico V. Porto



 On Mon, Feb 21, 2011 at 2:05 PM, Érico Porto ericoporto2...@gmail.comwrote:

 Hello everyone,

 I was looking at how the NS-2 implements the interference that a noda has
 over the other... So I map this functions:

 (phy.cc) Phy::recv -
 (wireless-phy.cc) WirelessPhy::sendDown(packet *p) -
 (channel.cc) WirelessChannel::Recvd(packet *p) -
 WirelessChannel::SendUp(packet* P, Phy * tifp) -
 getAffectedNodes(mtnode, distCST_ + 5, numAffectedNodes) -
 distCST_ = wifp-getDist( wifp -getPowerMonitorTresh(), wifp-getPt(),
 wifp-getAntennaRxGain(), wifp-getAntennaTxGain(), highestZ, highestZ,
 wifp-getL() )

 The getDist function implementation depends on what model is being used:

 (propagation.cc) [freespace/friss] lambda/(4pi) * sqrt(Pt Gt Gr / Pr L)
 (tworayground.cc) {tworayground] hr/ht sqrt(Pt Gt Gr / Pr)

 Also I was reading this :
 http://www.cs.binghamton.edu/~kliu/research/ns2code/note.pdf ; and
 looking at that and at the code, it became strange that, looking at the
 code, a node affects the nodes in a SQUARE centered in the one which is
 sending, with a distance from the getDist plus 5.

 I may be wrong, but a Node was suposed to interfere with another, with a
 bigger distance than just the Friss model distance - something like twice
 that distance... 

 Érico V. Porto





Re: [ns] interference model

2011-02-22 Thread Érico Porto

I understood these parameters, but the problem is, when a msg is sent, and
we have a packet, the 802_11::recv will be called by which nodes?

And why the wireless channel nodes in range when a msg is sent get delay
time increased by a factor distance/speed of light, and why this happens
inside a square?

Also I'm not seeing any reference to noise, so it seems that it is not even
a AWGN channel.

Érico V. Porto


On Tue, Feb 22, 2011 at 2:39 PM, Mubashir Rehmani mshrehm...@gmail.comwrote:

 Please look at this also written by Kimaya on ns2 old mailing list:

 RXThresh_ is the reception threshold. If the received signal strength is
 greater than this threshold, the packet can be successfully received.


 CSThresh_ is the carrier sensing threshold. If received signal strength is

 greater than this threshold, the packet transmission can be
 sensed. However, the packet cannot be decoded unless signal strength is


 greater than RXThresh_.

 CPThresh_ refers to the capture phenomenon. If two packets are received

 simultaneously, i.e. they collide, it is still possible to receive the
 'stronger' packet if its signal strength is CPThresh_ times the other


 packet. For example, if CPThresh_ is 10.0, the stronger packet in a

 collision can be decoded if its signal strength is at least 10.0 times
 that of the other packet; otherwise, both packets are lost in the
 collision.


 Hope that helps.

 Kimaya



 On 22 February 2011 18:33, Mubashir Rehmani mshrehm...@gmail.com wrote:

 Hello Erico,

 Here are some dicussions regarding RXThresh_ that may help you
 http://overegoz.tistory.com/668

 http://www.lastking.net/54?TSSESSIONlastkingnet=5ec6c07a691774bd721516037eafa42b
 http://mailman.isi.edu/pipermail/ns-users/2004-July/043516.html
 http://mailman.isi.edu/pipermail/ns-users/2006-March/054712.html

 Best Regards
 Mubashir Husain Rehmani


 On 22 February 2011 18:17, Érico Porto ericoporto2...@gmail.com wrote:


 Has anyone understood how this works? I found 158 matches to calls of
 Mac802_11::recv,.

 Any help appreciated.

 Érico V. Porto


 On Mon, Feb 21, 2011 at 2:38 PM, Érico Porto ericoporto2...@gmail.com
 wrote:

  I was looking at the mac802_11.cc implementation, and looking at the
  following function:
 
  Mac802_11::recv
 
  It seems that it also has another type of decision clause:
 
  if(pktRx_-txinfo_.RxPr / p-txinfo_.RxPr = p-txinfo_.CPThresh) {
  capture(p);
   } else {
  collision(p);
  }
 
  From this code I think a package can interfere with another in a one on
 one
  way, so multiple packages don't sum their energy to create a noisy
  environment.
 
  Also, if one package Receive power is CPThresh times bigget the
 another,
  than it is received, otherwise, it as marked as colision and discarded.
 
  Érico V. Porto
 
 
 
  On Mon, Feb 21, 2011 at 2:05 PM, Érico Porto ericoporto2...@gmail.com
 wrote:
 
  Hello everyone,
 
  I was looking at how the NS-2 implements the interference that a noda
 has
  over the other... So I map this functions:
 
  (phy.cc) Phy::recv -
  (wireless-phy.cc) WirelessPhy::sendDown(packet *p) -
  (channel.cc) WirelessChannel::Recvd(packet *p) -
  WirelessChannel::SendUp(packet* P, Phy * tifp) -
  getAffectedNodes(mtnode, distCST_ + 5, numAffectedNodes) -
  distCST_ = wifp-getDist( wifp -getPowerMonitorTresh(),
 wifp-getPt(),
  wifp-getAntennaRxGain(), wifp-getAntennaTxGain(), highestZ,
 highestZ,
  wifp-getL() )
 
  The getDist function implementation depends on what model is being
 used:
 
  (propagation.cc) [freespace/friss] lambda/(4pi) * sqrt(Pt Gt Gr / Pr
 L)
  (tworayground.cc) {tworayground] hr/ht sqrt(Pt Gt Gr / Pr)
 
  Also I was reading this :
  http://www.cs.binghamton.edu/~kliu/research/ns2code/note.pdf ; and
  looking at that and at the code, it became strange that, looking at
 the
  code, a node affects the nodes in a SQUARE centered in the one which
 is
  sending, with a distance from the getDist plus 5.
 
  I may be wrong, but a Node was suposed to interfere with another, with
 a
  bigger distance than just the Friss model distance - something like
 twice
  that distance... 
 
  Érico V. Porto
 
 
 




 --
 Mubashir Husain Rehmani





 --
 Mubashir Husain Rehmani





Re: [ns] Lacking of Sample code for Clustering Routing Protocol

2011-02-21 Thread Érico Porto

Have someone answered this to you?

Érico V. Porto


On Tue, Feb 15, 2011 at 3:41 PM, lim shia yok shia...@gmail.com wrote:


 Hi,

 Most of us are lacking the code information about clustering based routing
 protocol, pls help, thanks

 I need your help on how do I collect the weight for cluster head selection
 in NS2, the weight includes number of hops, degree nodes, and etc..
 Or is there anyone know where can I get the sample code for clustering
 based
 routing protocol? Thanks for your help..

 Regards,
 Shia Yok



Re: [ns] interference model

2011-02-21 Thread Érico Porto

I was looking at the mac802_11.cc implementation, and looking at the
following function:

Mac802_11::recv

It seems that it also has another type of decision clause:

if(pktRx_-txinfo_.RxPr / p-txinfo_.RxPr = p-txinfo_.CPThresh) {
capture(p);
 } else {
collision(p);
}

From this code I think a package can interfere with another in a one on one
way, so multiple packages don't sum their energy to create a noisy
environment.

Also, if one package Receive power is CPThresh times bigget the another,
than it is received, otherwise, it as marked as colision and discarded.

Érico V. Porto


On Mon, Feb 21, 2011 at 2:05 PM, Érico Porto ericoporto2...@gmail.comwrote:

 Hello everyone,

 I was looking at how the NS-2 implements the interference that a noda has
 over the other... So I map this functions:

 (phy.cc) Phy::recv -
 (wireless-phy.cc) WirelessPhy::sendDown(packet *p) -
 (channel.cc) WirelessChannel::Recvd(packet *p) -
 WirelessChannel::SendUp(packet* P, Phy * tifp) -
 getAffectedNodes(mtnode, distCST_ + 5, numAffectedNodes) -
 distCST_ = wifp-getDist( wifp -getPowerMonitorTresh(), wifp-getPt(),
 wifp-getAntennaRxGain(), wifp-getAntennaTxGain(), highestZ, highestZ,
 wifp-getL() )

 The getDist function implementation depends on what model is being used:

 (propagation.cc) [freespace/friss] lambda/(4pi) * sqrt(Pt Gt Gr / Pr L)
 (tworayground.cc) {tworayground] hr/ht sqrt(Pt Gt Gr / Pr)

 Also I was reading this :
 http://www.cs.binghamton.edu/~kliu/research/ns2code/note.pdf ; and looking
 at that and at the code, it became strange that, looking at the code, a node
 affects the nodes in a SQUARE centered in the one which is sending, with a
 distance from the getDist plus 5.

 I may be wrong, but a Node was suposed to interfere with another, with a
 bigger distance than just the Friss model distance - something like twice
 that distance... 

 Érico V. Porto



Re: [ns] distance calculation of the nodes

2011-02-21 Thread Érico Porto

In this case is easier if you just make a tcl function that do that to you.

something like (don't know if the syntax is right)

proc calcDist { node_a node_b } {

set x1 [$node_a set X_]
set y1 [$node_a set Y_]

set x2 [$node_b set X_]
set y2 [$node_b set Y_]

set distance [expr sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))]

}

Érico V. Porto


On Mon, Feb 21, 2011 at 12:56 AM, Suman paul choudhury 
sumanpc2...@gmail.com wrote:


 dear all
 hw
 ow is it possible to calculate the distance of the two nodes using ns-2?
 example_ if node1 has cordinates as (5,15) and the other node2 has
 cordinates (15,20)
 then what would be the command in NS-2 to calculate the distance between
 the
 nodes.

 thanking you

 regards
 suman



Re: [ns] Why do we have this group?

2011-02-20 Thread Érico Porto

When I click to answer a msg, the email wrongly chooses the ones who wrote
that msg, instead of the group, because this happens to me also, people
answer directly to me instead the group.

Is it to complicated to make this mailing list a google group? I think they
work better..

Érico V. Porto


On Sun, Feb 20, 2011 at 5:45 PM, Mariam A. Moustafa
elansary@gmail.comwrote:


 Yes, Ahmad I am with you. There were many calls for whom are answering the
 questions to reply for all not only for who asked!!!
 We need to raise this call again
 Thanks

 On Sun, Feb 20, 2011 at 10:19 PM, Ahmad arasem...@yahoo.com wrote:

 
  Hi,
  I am wondering what's the purpose of this newsgroup because all what I
 can
  see
  here is questions and questions but no answer to any (or maybe 10% of the
  questions). So is there something I am missing here or do you know of a
  place
  where people really answer each other?
  Thanks
 
 
 
 


 --
 Best regards,

 Mariam Ahmed Moustafa

 Software Engineer, RD Department

 Integrated Solutions For Ports

 Tel: +(203) 4293846/4294632 Extn: 207

 Email:  mka...@isfpegypt.com

 Web Site: www.isfpegypt.com



[ns] olsr- how to dump all routing tables

2011-02-16 Thread Érico Porto

Hello,

Have anyone sucessfully dumped the routing tables using OLSR?

I see a function for that in the c++ class, but couldn't find how to
use it through NS-2 tcl script.

Thanks in advance.

-- 
Érico V. Porto



[ns] how to add global variables

2011-01-26 Thread Érico Porto

Hello,

I'm trying to disable the MAC ACK but I want to do it as parameter I can set
- like a macack_ .  Anyone know how to add a variable to the Mac structure
?- something so I can later use a command like: Mac/802_11 set MacACK_ 1

Thanks


Érico V. Porto


[ns] about SVN and get Route Tables

2011-01-04 Thread Érico Porto

Hello,

I've been using NS-2 for one month now, and I have two questions.

First is aboute routing: I would like to know if there is a way do dump
route tables when using wireless 802.11 through dei80211mr. I'm using DSDV
routing protocol. It's best if I could save the tables in a file.

The other question is if there is any repository to save the different
versions of NS2 under development. I'm looking for other persons working
with cognitive radio under NS2.

Thanks in advance

Érico V. Porto


Re: [ns] GUI freezing up

2011-01-04 Thread Érico Porto

this is a while that never changes the 'runmode' value so thats why it
freezes.

Érico V. Porto


On Tue, Jan 4, 2011 at 2:24 PM, Badieh Traboulsi 
badieh.trabou...@hotmail.com wrote:



 Hello!

 My code is opening up a frame with buttons and labels perfectly, but
 whenever Im in this procedure

 proc do_some {sim} {
   global sendcmds runmode shownode

   while { $runmode == go } {
puts $sim $sendcmds
set sendcmds {}
flush $sim
update
set outline [gets $sim]
set activity [lindex $outline 1]
set report [lindex $outline 0]
plot_data [lindex $report 1] [lindex $report 2]
showlinks $activity
if { $shownode !=  } { polclick $shownode }
   }
 }

 The frame is freezing up at set outline [gets $sim]as if waiting
 on something, what should I do to solve it? or at least know whats causing
 it?

 Thanks.

 Regards,
 Badieh





Re: [ns] about SVN and get Route Tables

2011-01-04 Thread Érico Porto

Ok, so I got.. something

At the end of my code, before the exit statement, I added this

set basestation [new Agent/DSDV]
$ns_ attach-agent $node_(3) $basestation
$ns_ at 0.010 $basestation start-dsdv;
$ns_ at 80.010 $basestation dumprtab;

But I'm not sure that this will give the DSDV routes that are available
through the DSDV opt(rt) option instead of other routes - for that node
anyway. And.. The output has some pretty disturbing numbers instead the ids
I was expecting.

Table Dump 4194308[0]
--
0 4194308 0
5532300330052700236155143218901121502379509719300679141693352785014714939812827972971115962446684008794323940866115159668669579731113672847278478372410706527759480726316669155594177222794494324038984840395732335429672119776356568734522482032518296769319048014920746346838228992.00
0.00
5532300330052686459801702227645761903465369198250264579724004544927329107574022728416097503655546071633030264369388651525255943643112122946087644182463903249384625354837581241414956453107537690707269767014787564968238152281694354529115692323888405981798448019161112318574592000.00
0.00 0x

Érico V. Porto


On Tue, Jan 4, 2011 at 9:24 AM, Érico Porto ericoporto2...@gmail.comwrote:

 Hello,

 I've been using NS-2 for one month now, and I have two questions.

 First is aboute routing: I would like to know if there is a way do dump
 route tables when using wireless 802.11 through dei80211mr. I'm using DSDV
 routing protocol. It's best if I could save the tables in a file.

 The other question is if there is any repository to save the different
 versions of NS2 under development. I'm looking for other persons working
 with cognitive radio under NS2.

 Thanks in advance

 Érico V. Porto



Re: [ns] about SVN and get Route Tables

2011-01-04 Thread Érico Porto

Ok. Apparently I've found that, in /ns2.34/tcl/lib/ns-lib.tcl there is a
statement that says

switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}

When the line is present in the simulation script: $ns_ node-config
-adhocRouting DSDV.

This means that every node already have a routing agent - And seems that is
why they are breaking when I manually add one routing agent.

Great, but after it attaches it to the node, the rtagent handler is seems
lost. Is there a way to do a dumprtab using the node attached?

I'm trying to avoid modifying the NS2 source code but it is impossible I
will do... Just thought that someone already needed these tables before.

Érico V. Porto


On Tue, Jan 4, 2011 at 4:35 PM, Érico Porto ericoporto2...@gmail.comwrote:

 Ok, so I got.. something

 At the end of my code, before the exit statement, I added this

 set basestation [new Agent/DSDV]
 $ns_ attach-agent $node_(3) $basestation
 $ns_ at 0.010 $basestation start-dsdv;
 $ns_ at 80.010 $basestation dumprtab;

 But I'm not sure that this will give the DSDV routes that are available
 through the DSDV opt(rt) option instead of other routes - for that node
 anyway. And.. The output has some pretty disturbing numbers instead the ids
 I was expecting.

 Table Dump 4194308[0]
 --
 0 4194308 0
 5532300330052700236155143218901121502379509719300679141693352785014714939812827972971115962446684008794323940866115159668669579731113672847278478372410706527759480726316669155594177222794494324038984840395732335429672119776356568734522482032518296769319048014920746346838228992.00
 0.00
 5532300330052686459801702227645761903465369198250264579724004544927329107574022728416097503655546071633030264369388651525255943643112122946087644182463903249384625354837581241414956453107537690707269767014787564968238152281694354529115692323888405981798448019161112318574592000.00
 0.00 0x

 Érico V. Porto



 On Tue, Jan 4, 2011 at 9:24 AM, Érico Porto ericoporto2...@gmail.comwrote:

 Hello,

 I've been using NS-2 for one month now, and I have two questions.

 First is aboute routing: I would like to know if there is a way do dump
 route tables when using wireless 802.11 through dei80211mr. I'm using DSDV
 routing protocol. It's best if I could save the tables in a file.

 The other question is if there is any repository to save the different
 versions of NS2 under development. I'm looking for other persons working
 with cognitive radio under NS2.

 Thanks in advance

 Érico V. Porto