[ns] Development of a new protocol, Pb with Trace::format

2006-06-13 Thread Gilles Bertrand

Dear NS users,

I have implemented a new protocol by extending the implementation of RSVP-TE
by Callegari, Vitucci. I am now migrating all my changes in a new agent
called RSVP_new. I have done the modifications explained in the various
documentation available on the web, but I am still facing an error at
runtime:

Program received signal SIGSEGV, Segmentation fault.
0x080588ba in Trace::format ()
(gdb)
(gdb) bt
#0  0x080588ba in Trace::format ()
#1  0x08058c87 in Trace::recv ()
#2  0x080578ed in Connector::recv ()
#3  0x0805a0d8 in Classifier::recv ()
#4  0x08161ec8 in RSVP_newAgent::send_path_message ()
#5  0x0815e4fd in RSVP_newAgent::new_psb ()
#6  0x0815b320 in RSVP_newAgent::command ()
#7  0x081ade4f in TclClass::dispatch_cmd ()
#8  0x081b1878 in OTclDispatch (cd=0x8746a80, in=0x83f96a0, argc=13,
argv=0xbfdf0a28) at otcl.c:420
#9  0x081b6459 in TclInvokeStringCommand ()
#10 0x081d1a74 in TclExecuteByteCode ()

I think this comes from my definition of the packets for tracing, but I
dont find my error. Could someone please remind me of the necessary changes
for defining a new packet type for tracing?

Thanks a lot for your help.

-- 
Mit freundlichen Grüßen, with kind regards, cordialement,

--
Gilles BERTRAND
Telecom INT - University of Stuttgart
--


[ns] Cross-Layer Issues

2006-06-13 Thread Zhiming Zhang

If there are three mobile nodes 

A B  C,

node A sends a packet to node C relayed by node B, and node A wants to monitor 
whether node B relayed the packet for him or not. Moreover, the result of 
monitoring is used by routing layer (boolsr), now the question is how the 
mac_802.11 layer can send the monitored packet to the routing layer and the 
routing layer can identify the packet is destined for the other node. 
Or 802.11 mac layer deals with the monitored packet and send the result to the 
routing layer instead of the packet. But I faced another question how the mac 
layer can find out the pointer of the corresponding routing layer agent  in ns2 
so that the mac layer can write the monitored result to the routing layer.

thanks! 


--
Zhiming Zhang
2006-06-13



[ns] installation of ns-allinone-2.1b9a

2006-06-13 Thread Juan FENG

hello,
I want to install ns-allinone-2.1b9a on cygwin according to
http://www.isi.edu/nsnam/ns/ns-cygwin-old.html

but according to it, ns-allinone-2.1b9a must use gcc-3.2. But now the
cygwin only offer the gcc-3.3 above, then how can I install
ns-allinone-2.1b9a???

I used gcc-3.4, the problem while installation is that: can't find x library.
I wonder if this problem is caused from the use of gcc-3.4? or else?

thx!




[ns] R: Autorate in 802.11G

2006-06-13 Thread Marco Fiore

However this modification is not working, I see that everytime
 the 
dataRate is at 54Mbps, including if I comment
every line that define 
the dataRate, including the lines

 tcl.evalf(Mac/802_11 set 
dataRate_);
if (strcmp(tcl.result(), 0) != 0) 
   
bind_bw(dataRate_, dataRate_);


This is strange: are you sure you 
recompiled ns
after changing the files?

Marco

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 13-giu-2006 
12.52 AM
A: ns-users@ISI.EDU
Ogg: [ns] Autorate in 802.11G



Hello.

I´m working on 802.11g in ns-2.28. I need to make automatic
change in dataRate depending in distance between tow nodes.

I tried 
to make some changes on the on the mac-802_11.h and
in the mac-802_11.
cc but they did not worked for me.

I make some other changes in ns-
default.tcl and ns-mac.tcl
for make that the 802.11g standard work in 
ns-2.28, this
changes were succesful.

In order to make the 
automatic change in dataRate I tried to
make some changes in mac-
802_11.cc:

 Packet *p = Packet::alloc();
 
 struct hdr_cmn *ch = 
HDR_CMN(p);   
 struct hdr_mac802_11 *dh = 
HDR_MAC802_11(p);
 struct hdr_arp *ah = HDR_ARP(p); 

 
double tX_,tY_,tZ_,rX_,rY_,rZ_;
 nsaddr_t txid=index_;

nsaddr_t rxid;
 
 MobileNode *tx_node= (MobileNode*)(Node::
get_node_by_address(txid));
 tx_node-getLoc(tX_,tY_,tZ_); 
 
 ch-tX()=tX_;  
 ch-tY()=tY_;  ch-tZ()=tZ_;
   
 if (strcmp(packet_info.name(ch-ptype()), ARP) == 0)
  rxid=ah-arp_tpa;
 else
  rxid=ETHER_ADDR(dh-dh_ra);  
 
 MobileNode *rx_node= (MobileNode*)(Node::
get_node_by_address(rxid));
 rx_node-getLoc(rX_,rY_,rZ_); 
 dist 
= sqrt((rX_ - tX_) * (rX_ - tX_) + (rY_ - tY_) * (rY_ - tY_)  + 
(rZ_ 
- tZ_) * (rZ_ - tZ_));
   

 // End of 
modification


 Tcl tcl = Tcl::instance();
 tcl.evalf(Mac/802_11 
set basicRate_);
 if (strcmp(tcl.result(), 0) != 0) 
  bind_bw(basicRate_, basicRate_);
  else
   basicRate_ = 
bandwidth_;


 tcl.evalf(Mac/802_11 set dataRate_);
if (strcmp(tcl.result(), 0) != 0) 
   bind_bw
(dataRate_, dataRate_);

 //Modification to obtain dataRate VS 
distance by Jonathan Lopez

  else if (dist=100  dist77)

   
dataRate_ = 1*1e6;
  else if (dist=77  dist65)
   dataRate_ = 
2*1e6;
  else if (dist=65  dist57)
   dataRate_ = 6*1e6;
  else 
if (dist=57  dist54)
   dataRate_ = 9*1e6;
  else if (dist=54  
dist50)
   dataRate_ = 12*1e6;
  else if (dist=50  dist42)
   
dataRate_ = 18*1e6;
  else if (dist=42  dist35)
   dataRate_ = 
24*1e6;
  else if (dist=35  dist23)
   dataRate_ = 36*1e6;
  else 
if (dist=23  dist19)
   dataRate_ = 48*1e6;
  else
   dataRate_ = 
bandwidth_;
  

 // End of modification

EOTtarget_ = 0;
bss_id_ = IBSS_ID;
 //printf(bssid in constructor %d\n,
bss_id_);
}


Here I just tried to change dataRate depending the 
distance
between the nodes, for make the change for every packet that
is send.

However this modification is not working, I see that every
time the
 dataRate is at 54Mbps, including if I comment
every line 
that define the dataRate, including the lines

 tcl.evalf(Mac/802_11 
set dataRate_);
if (strcmp(tcl.result(), 0) != 0) 
   bind_bw(dataRate_, dataRate_);

I can modify the dataRate with 
Mac/802_11 set dataRate_ xMb
in my tcl script. But I need that the 
dataRate been modified
for every packet that is send denpending in the 
distance.

Can anyone tell me what is happend or how can I do the
modifications that I need?.

Thanks.
  
 
__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 





[ns] run flooding with SMAC

2006-06-13 Thread tingyi li


Dear All,

Can someone help please?

   I simulated the simulation script of flooding with SAMC.The 

first test script is flooding1.tcl. But while running ns2.29 , I get the 

following message :

   

  [EMAIL PROTECTED] ~/ns-allinone-2.29/ns-2.29/tcl/ex

  $ ns flooding1.tcl

  num_nodes is set 30

  warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl

  INITIALIZE THE LIST xListHead

  Loading topology file...

  Load complete...

  *** NOTE: no node-on-off file specified.

  Loading traffic file...

  Starting Simulation...

  channel.cc:sendUp - Calc highestAntennaZ_ and distCST_

  highestAntennaZ_ = 1.5,  distCST_ = 550.0

  SORTING LISTS ...DONE!

  Cancelling CS- node 19

  Cancelling CS- node 26

  Cancelling CS- node 19

  .

  Cancelling CS- node 12

  Cancelling CS- node 24

  Cancelling CS- node 7

  Couldn't schedule timer

   

 So I changed flooding1.tcl .I get flooding2.tcl. But while 

running ns2.29 , I get the following message :

   

  [EMAIL PROTECTED] ~/ns-allinone-2.29/ns-2.29/tcl/ex

  $ ns flooding2.tcl

  num_nodes is set 30

  warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl

  invalid command name -initialEnergy

  while executing

  -initialEnergy $opt(initeng)

  (file flooding2.tcl line 215)

  

 What does it mean?I can not find any error.But It cannot run correctly. I 
need your help.

 I would really appreciate any help that I am to get. Thanks very 

much.

 
 Yours truly,

 litingyi


 __
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com# ==
# Define options
# ==
set opt(chan)   Channel/WirelessChannel
set opt(prop)   Propagation/TwoRayGround
set opt(netif)  Phy/WirelessPhy
set opt(mac)Mac/SMAC
set opt(ifq)Queue/DropTail/PriQueue
set opt(ll) LL
set opt(ant)Antenna/OmniAntenna
set opt(god)off
set opt(x)  800 ;# X dimension of the topography
set opt(y)  800 ;# Y dimension of the topography
set opt(traf)   ../test/sk-30-3-3-1-1-6-64.tcl  ;# traffic file
set opt(topo)   ../test/scen-800x800-30-500-1.0-1  ;# topology 
file
set opt(onoff);#node on-off
set opt(ifqlen) 50  ;# max packet in ifq
set opt(nn) 30  ;# number of nodes
set opt(seed)   0.0
set opt(stop)   20  ;# simulation time
set opt(prestop)19   ;# time to prepare to stop
set opt(tr) wireless.tr   ;# trace file
set opt(nam)wireless.nam  ;# nam file
set opt(engmodel)   EnergyModel ;
set opt(txPower)0.660;
set opt(rxPower)0.395;
set opt(idlePower)  0.035;
set opt(initeng)1.0 ;# Initial energy in Joules
set opt(logeng) off   ;# log energy every 1 seconds
set opt(lm) off   ;# log movement
set opt(adhocRouting)   FLOODING   
set opt(duplicate)  enable-duplicate

# ==

LL set mindelay_50us
LL set delay_   25us
LL set bandwidth_   0   ;# not used

Queue/DropTail/PriQueue set Prefer_Routing_Protocols1

# unity gain, omni-directional antennas
# set up the antennas to be centered in the node and 1.5 meters above it
Antenna/OmniAntenna set X_ 0
Antenna/OmniAntenna set Y_ 0
Antenna/OmniAntenna set Z_ 1.5
Antenna/OmniAntenna set Gt_ 1.0
Antenna/OmniAntenna set Gr_ 1.0

# Initialize the SharedMedia interface with parameters to make
# it work like the 914MHz Lucent WaveLAN DSSS radio interface
Phy/WirelessPhy set CPThresh_ 10.0
Phy/WirelessPhy set CSThresh_ 1.559e-11
Phy/WirelessPhy set RXThresh_ 3.652e-10
Phy/WirelessPhy set Rb_ 2*1e6
Phy/WirelessPhy set Pt_ 0.2818
Phy/WirelessPhy set freq_ 914e+6 
Phy/WirelessPhy set L_ 1.0

# ==

proc usage { argv0 }  {
puts Usage: $argv0
puts \t\t\[-topo topology file\] \[-traf traffic file\]
puts \t\t\[-x max x\] \[-y max y\] \[-seed seed\]
puts \t\t\[-nam nam file\] \[-tr trace file\] \[-logeng on or off\]
puts \t\t\[-stop time to stop\] \[-prestop time to prepare to stop\]
puts \t\t\[-initeng initial energy\] \[-engmodel energy model\] 
puts \t\t\[-chan channel model\] \[-prop propagation model\]
puts \t\t\[-netif network interface\] \[-mac mac layer\]
puts \t\t\[-ifq interface queue\] \[-ll link layer\] \[-ant antena\]
puts \t\t\[-ifqlen interface queue length\] \[-nn number of nodes\]
}


proc getopt {argc argv} {
global opt
lappend optlist cp nn seed sc stop tr x y

for {set i 0} {$i  $argc} {incr i} {
set arg [lindex 

[ns] run flooding with SMAC

2006-06-13 Thread tingyi li


Dear All,

Can someone help please?

   I simulated the simulation script of flooding with SAMC.The 

first test script is flooding1.tcl. But while running ns2.29 , I get the 

following message

 :

   

  [EMAIL PROTECTED] ~/ns-allinone-2.29/ns-2.29/tcl/ex

  $ ns flooding1.tcl

  num_nodes is set 30

  warning: Please use -channel as shown in

 tcl/ex/wireless-mitf.tcl

  INITIALIZE THE LIST xListHead

  Loading topology file...

  Load complete...

  *** NOTE: no node-on-off file specified.

  Loading traffic

 file...

  Starting Simulation...

  channel.cc:sendUp - Calc highestAntennaZ_ and distCST_

  highestAntennaZ_ = 1.5,  distCST_ = 550.0

  SORTING LISTS ...DONE!

 

 Cancelling CS- node 19

  Cancelling CS- node 26

  Cancelling CS- node 19

  .

  Cancelling CS- node 12

  Cancelling CS- node

 24

  Cancelling CS- node 7

  Couldn't schedule timer

   

 So I changed flooding1.tcl .I get flooding2.tcl. But while 

running

 ns2.29 , I get the following message :

   

  [EMAIL PROTECTED] ~/ns-allinone-2.29/ns-2.29/tcl/ex

  $ ns flooding2.tcl

  num_nodes is set 30

  warning: Please use -channel as shown

 in tcl/ex/wireless-mitf.tcl

  invalid command name -initialEnergy

  while executing

  -initialEnergy $opt(initeng)

  (file flooding2.tcl line 215)

  

 What does it mean?I can not find any error.But It cannot run correctly. I 
need your help.

 I would really appreciate any help that I am to get. Thanks very 

much.

 

 Yours truly,

 litingyi
   

 __
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com# ==
# Define options
# ==
set opt(chan)   Channel/WirelessChannel
set opt(prop)   Propagation/TwoRayGround
set opt(netif)  Phy/WirelessPhy
set opt(mac)Mac/SMAC
set opt(ifq)Queue/DropTail/PriQueue
set opt(ll) LL
set opt(ant)Antenna/OmniAntenna
set opt(god)off
set opt(x)  800 ;# X dimension of the topography
set opt(y)  800 ;# Y dimension of the topography
set opt(traf)   ../test/sk-30-3-3-1-1-6-64.tcl  ;# traffic file
set opt(topo)   ../test/scen-800x800-30-500-1.0-1  ;# topology 
file
set opt(onoff);#node on-off
set opt(ifqlen) 50  ;# max packet in ifq
set opt(nn) 30  ;# number of nodes
set opt(seed)   0.0
set opt(stop)   20  ;# simulation time
set opt(prestop)19   ;# time to prepare to stop
set opt(tr) wireless.tr   ;# trace file
set opt(nam)wireless.nam  ;# nam file
set opt(engmodel)   EnergyModel ;
set opt(txPower)0.660;
set opt(rxPower)0.395;
set opt(idlePower)  0.035;
set opt(initeng)1.0 ;# Initial energy in Joules
set opt(logeng) off   ;# log energy every 1 seconds
set opt(lm) off   ;# log movement
set opt(adhocRouting)   FLOODING   
set opt(duplicate)  enable-duplicate

# ==

LL set mindelay_50us
LL set delay_   25us
LL set bandwidth_   0   ;# not used

Queue/DropTail/PriQueue set Prefer_Routing_Protocols1

# unity gain, omni-directional antennas
# set up the antennas to be centered in the node and 1.5 meters above it
Antenna/OmniAntenna set X_ 0
Antenna/OmniAntenna set Y_ 0
Antenna/OmniAntenna set Z_ 1.5
Antenna/OmniAntenna set Gt_ 1.0
Antenna/OmniAntenna set Gr_ 1.0

# Initialize the SharedMedia interface with parameters to make
# it work like the 914MHz Lucent WaveLAN DSSS radio interface
Phy/WirelessPhy set CPThresh_ 10.0
Phy/WirelessPhy set CSThresh_ 1.559e-11
Phy/WirelessPhy set RXThresh_ 3.652e-10
Phy/WirelessPhy set Rb_ 2*1e6
Phy/WirelessPhy set Pt_ 0.2818
Phy/WirelessPhy set freq_ 914e+6 
Phy/WirelessPhy set L_ 1.0

# ==

proc usage { argv0 }  {
puts Usage: $argv0
puts \t\t\[-topo topology file\] \[-traf traffic file\]
puts \t\t\[-x max x\] \[-y max y\] \[-seed seed\]
puts \t\t\[-nam nam file\] \[-tr trace file\] \[-logeng on or off\]
puts \t\t\[-stop time to stop\] \[-prestop time to prepare to stop\]
puts \t\t\[-initeng initial energy\] \[-engmodel energy model\] 
puts \t\t\[-chan channel model\] \[-prop propagation model\]
puts \t\t\[-netif network interface\] \[-mac mac layer\]
puts \t\t\[-ifq interface queue\] \[-ll link layer\] \[-ant antena\]
puts \t\t\[-ifqlen interface queue length\] \[-nn number of nodes\]
}


proc getopt {argc argv} {
global opt
lappend optlist cp nn seed sc stop tr x y

for {set i 0} {$i  $argc} {incr i} {
  

[ns] Dynamic Address RouTing (DART) protocol for ad hoc networks porting

2006-06-13 Thread marcello . caleffi

Hi,
I'm working on a porting of DART protocol
(http://www.cs.ucr.edu/~jeriksson/pubs/dart_ton_2006.pdf) for NS2.

This routing protocol for ad hoc networks  differs from the well known protocols
in lecterature; in fact this work uses transient routing addresses (dynamic
addresses), which indicates the location of a node in the network.

I hope to release a first beta release of the code in the next weeks, however
any help or contribute will be appreciated.

Best regards.

Marcello Caleffi - PhD student
Università Federico II - Neaples (Italy)


This message was sent using IMP, the Internet Messaging Program.



[ns] problem in the DSR simulation

2006-06-13 Thread yi miao

Dear all,

I am doing the performance of DSR in ns-2. The simulations will halt at a
strange time and display:

num_nodes is set 200
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
Killed

This is the error that I got using FC3 and ns2.29.
I use the setdest with parameters: -n 200 -p 10 -t 20 -M 10.0 -x 3000 -y 600

Any help would be very gratefully received,
Many thanks,
Miao

--=_Part_6640_9542919.1150199559521
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

divDear all,brbrI am doing the performance of DSR in ns-2. The
simulations will halt at a strange time and display:/div
divnbsp;/div
divnum_nodes is set 200brwarning: Please use -channel as shown in
tcl/ex/wireless-mitf.tclbrINITIALIZE THE LIST xListHeadbrLoading
connection pattern...brLoading scenario file...brStarting
Simulation...brchannel.cc:sendUp
- Calc highestAntennaZ_ and distCST_brhighestAntennaZ_ = 1.5,nbsp;
distCST_ = 550.0brSORTING LISTS ...DONE!brKilledbrnbsp;/div
divThis is the error that I got using FC3 and ns2.29./div
divI use the setdest with parameters: -n 200 -p 10 -t 20 -M 10.0 -x 3000
-y 600/div
divnbsp;/div
divAny help would be very gratefully received,brMany
thanks,brMiaobrnbsp;/div

--=_Part_6640_9542919.1150199559521--


[ns] DHT implemented in NS-2

2006-06-13 Thread Marcel Castro

Dear Ns-users and developers,

   I am looking for DHTs implemented in NS-2, like chord, pastry, kademlia,
CAN, etc.
   At this moment I could only find one DHT (CAN) implemented in NS-2 which
is cited by the paper called  A scalable architecture for SIP
infrastructure using content addressable networks Balasubramanian, R.;
Rhee, I.; Jaewoo Kang;Communications, 2005. ICC 2005.

  Do you know any other DHT implementation on NS-2?

  Best Regards

Marcel Castro


[ns] problem of ns-allinone-2.1b9a installation

2006-06-13 Thread Juan FENG

hello,
I want to install ns-allinone-2.1b9a on cygwin according to
http://www.isi.edu/nsnam/ns/ns-cygwin-old.html

but according to it, ns-allinone-2.1b9a must use gcc-3.2. But now the
cygwin only offer the gcc-3.3 above, then how can I install
ns-allinone-2.1b9a???

I used gcc-3.4, the problem while installation is that: can't find x library.
I wonder if this problem is caused from the use of gcc-3.4? or else?

thx!