Re: [ns] NOAH Patch with NS-2.2[789]

2006-07-28 Thread Alexander Sayenko

Hi

I have been using this NOAH patch with ns-2.28. Hope it also works with
other versions.

Sincerely,
Alexander Sayenko (PhD)
Senior Assistant
Telecommunication laboratory, MIT department
University of Jyvaskyla, Finland




 Hi guys,

 I have been fightin with the NOAH patch for over sometime now. Has anybody
 worked on NOAH extension for NS2 before? I tried patchin (atleast followin
d
 instructions on the NOAH page which do not include recompilin NS2 even
 though if I try recompilin it fails).

 I really need to make this work. Any suggestion will be appreciated. Note,
 If there's any alternative of extension that can perform the
Infrastructure
 Network facility of wireless communication btw mobile nodes will b
 appreciated.

 Pls, anybody with success story on NOAH with NS-2.29, NS-2.28,
 NS-2.27should pls share it.

 Thnx.

 Lekkie.



 -- 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.4/402 - Release Date: 27.07.2006




Re: [ns] NOAH Patch with NS-2.2[789]

2006-07-28 Thread Samer Bali

Try this link:
http://icawww1.epfl.ch/uwb/ns-2.html

From: Alexander Sayenko [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Friday, July 28, 2006 11:46 AM
Subject: Re: [ns] NOAH Patch with NS-2.2[789]









 Hi

 I have been using this NOAH patch with ns-2.28. Hope it also works with
 other versions.

 Sincerely,
 Alexander Sayenko (PhD)
 Senior Assistant
 Telecommunication laboratory, MIT department
 University of Jyvaskyla, Finland




 Hi guys,

 I have been fightin with the NOAH patch for over sometime now. Has 
 anybody
 worked on NOAH extension for NS2 before? I tried patchin (atleast 
 followin
 d
 instructions on the NOAH page which do not include recompilin NS2 even
 though if I try recompilin it fails).

 I really need to make this work. Any suggestion will be appreciated. 
 Note,
 If there's any alternative of extension that can perform the
 Infrastructure
 Network facility of wireless communication btw mobile nodes will b
 appreciated.

 Pls, anybody with success story on NOAH with NS-2.29, NS-2.28,
 NS-2.27should pls share it.

 Thnx.

 Lekkie.



 -- 
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.4/402 - Release Date: 
 27.07.2006


 



[ns] [Fwd: Ad Hoc in Point-to-Multipoint with CBR]

2006-07-28 Thread eoliveira

 Original Message 
Subject: Ad Hoc in Point-to-Multipoint with CBR
From:[EMAIL PROTECTED]
Date:Fri, July 28, 2006 10:31 am
To:  ns-users@isi.edu
--

Hello,

I am working with AODV, DSDV and DSR in point-to-multipoint and
multipoint-to-point scenario with 11 nodes.

In the multipoint-to-point scenario, the senders starts a CBR traffic to
the receiver with 1 second interval and, after 11 seconds, as expected,
there are 10 simultaneous flows.

The problem occurs in the point-to-multipoint scenario. The sender starts
a CBR traffic to all receivers with 1 second interval, so after 11
seconds, there supposed to be 10 flows from the sender to the receivers,
but in fact, there are only 3 simultaneous flows. Does anyone know the
reason?

I am appending a shell script file and the TCL file.

Thanks in advance.

Etienne Oliveira.

Shell Script
--
ns DSR-11n-1s-10r.tcl
for i in 1 2 3 4 5 6 7 8 9 10
do
a=`grep _${i}_ AGT DSR-11n-1s-10r.tr | grep ^r | grep cbr | wc -l`
at=`grep _${i}_ AGT DSR-11n-1s-10r.tr | grep ^r | grep cbr 200 |
tail -1 | cut -d  -f2`
echo  _${i}_ -- AGT=$a  ends in $at
done
--


TCL FILE
--
set val(chan)   Channel/WirelessChannel
set val(prop)   Propagation/TwoRayGround
set val(netif)  Phy/WirelessPhy
set val(mac)Mac/802_11
set val(ifq)CMUPriQueue
set val(ll) LL
set val(ant)Antenna/OmniAntenna
set val(x)  670 ;# X dimension of the topography
set val(y)  670 ;# Y dimension of the topography
set val(ifqlen) 50  ;# max packet in ifq
set val(nn) 11  ;# number of nodes - 1sender - 10receivers
set val(seed)   0.0
set val(stop)   40  ;# simulation time
set val(tr) DSR-11n-1s-10r.tr ;# trace file

set val(adhocRouting)   DSR ;# protocol for ad-hoc network
set val(receivers)  10  ;# receivers

# =
# Main Program
# ==

#
# Initialize Global Variables
#

# set date rate

$val(mac) set dataRate_ 11Mb
$val(mac) set basicRate_ 11Mb

# ==
# Main Program
# =

#
# Initialize Global Variables
#

set ns_ [new Simulator]
set topo[new Topography]

set tracefd [open $val(tr) w]
$ns_ trace-all $tracefd

$topo load_flatgrid $val(x) $val(y)
set god_ [create-god $val(nn)]

#global node setting

$ns_ node-config -adhocRouting $val(adhocRouting) \
 -llType $val(ll) \
 -macType $val(mac) \
 -ifqType $val(ifq) \
 -ifqLen $val(ifqlen) \
 -antType $val(ant) \
 -propType $val(prop) \
 -phyType $val(netif) \
 -channel [new $val(chan)] \
 -topoInstance $topo \
 -agentTrace ON \
 -routerTrace OFF \
 -macTrace ON \
 -movementTrace OFF

#
#  Create the specified number of nodes [$val(nn)] and attach them
#  to the channel.

for {set i 0} {$i  $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0  ;# disable random motion
}

#
# Define initial position - Scennario File
#

$node_(0) set X_ 250.00
$node_(0) set Y_ 250.00
$node_(0) set Z_ 0.0
$node_(1) set X_ 420.09
$node_(1) set Y_ 197.19
$node_(1) set Z_ 0.0
$node_(2) set X_ 391.55
$node_(2) set Y_ 399.22
$node_(2) set Z_ 0.0
$node_(3) set X_ 355.82
$node_(3) set Y_ 198.78
$node_(3) set Z_ 0.0
$node_(4) set X_ 267.61
$node_(4) set Y_ 284.11
$node_(4) set Z_ 0.0
$node_(5) set X_ 238.89
$node_(5) set Y_ 276.98
$node_(5) set Z_ 0.0
$node_(6) set X_ 238.70
$node_(6) set Y_ 214.44
$node_(6) set Z_ 0.0
$node_(7) set X_ 282.39
$node_(7) set Y_ 256.70
$node_(7) set Z_ 0.0
$node_(8) set X_ 376.11
$node_(8) set Y_ 358.10
$node_(8) set Z_ 0.0
$node_(9) set X_ 317.86
$node_(9) set Y_ 358.65
$node_(9) set Z_ 0.0
$node_(10) set X_ 70.80
$node_(10) set Y_ 303.48
$node_(10) set Z_ 0.0

#
# Define traffic model and startup and shutdown node (connection pattern)
#

# (1) one sender
for {set i 1} {$i = $val(receivers) } {incr i} {
set udp_($i) [new Agent/UDP]
$ns_ attach-agent $node_(0) $udp_($i)
set cbr_($i) [new Application/Traffic/CBR]
$cbr_($i) attach-agent $udp_($i)
$udp_($i) set packetSize_ 200
$udp_($i) set rate_ 150Kb

set null_($i) [new Agent/Null]
$ns_ attach-agent $node_($i) 

[ns] Problem adding extra fields hdr_cmn structure

2006-07-28 Thread Heo Heo

  I want to add an extra field in the Hdr_cmn structure (in packet.h). Lets 
just say the extra field is : MyValue.
   
  - At the routing layer, I modified the value of this field.
   
  - At the Physical layer (wireless-phy.cc), I take some actions based on the 
value of MyValue.
   
To my surprise, even though I set this value in the routing layer as 1, at 
the physical layer, when I read it, its always 0.
   
I can't understand why. 
   
Besides adding this field in the cmn_hdr structure, do I need to do 
anything else ? (I didn't add the inline functions etc.)
  
  I attached a part of the packet.h file. The only modification I made is 
between the  ** lines.
   
Thanks a lot for your help.
   
  
   
  struct hdr_cmn {
  enum dir_t { DOWN= -1, NONE= 0, UP= 1 };
  packet_t ptype_; // packet type (see above)
  int size_; // simulated packet size
  int uid_; // unique id
  int error_; // error flag
  int errbitcnt_; // # of corrupted bits jahn
  int fecsize_;
  double ts_; // timestamp: for q-delay measurement
  int iface_; // receiving interface (label)
  dir_t direction_; // direction: 0=none, 1=up, -1=down
  // source routing 
  char src_rt_valid;
  double ts_arr_; // Required by Marker of JOBS 
  //Monarch extn begins
  nsaddr_t prev_hop_; // IP addr of forwarding hop
  nsaddr_t next_hop_; // next hop for this packet
  int addr_type_; // type of next_hop_ addr
  nsaddr_t last_hop_; // for tracing on multi-user channels
  // called if pkt can't obtain media or isn't ack'd. not called if
  // droped by a queue
  FailureCallback xmit_failure_; 
  void *xmit_failure_data_;
  /*
  * MONARCH wants to know if the MAC layer is passing this back because
  * it could not get the RTS through or because it did not receive
  * an ACK.
  */
  int xmit_reason_;
  #define XMIT_REASON_RTS 0x01
  #define XMIT_REASON_ACK 0x02
  // filled in by GOD on first transmission, used for trace analysis
  int num_forwards_; // how many times this pkt was forwarded
  int opt_num_forwards_; // optimal #forwards
  // Monarch extn ends;
  // tx time for this packet in sec
  double txtime_;
  inline double txtime() { return(txtime_); }
   
  // ** MODIFICATION BEGINS HERE 
***
  u_int8_t  MyValue;
  // ** MODIFICATION ENDS HERE 
*
   
  static int offset_; // offset for this header
  inline static int offset() { return offset_; }
  inline static hdr_cmn* access(const Packet* p) {
  return (hdr_cmn*) p-access(offset_);
  }
  
  /* per-field member functions */
  inline packet_t ptype() { return (ptype_); }
  inline int size() { return (size_); }
  inline int uid() { return (uid_); }
  inline int error() { return error_; }
  inline int errbitcnt() {return errbitcnt_; }
  inline int fecsize() {return fecsize_; }
  inline double timestamp() { return (ts_); }
  inline int iface() { return (iface_); }
  inline dir_t direction() { return (direction_); }
  // monarch_begin
  inline nsaddr_t next_hop() { return (next_hop_); }
  inline int addr_type() { return (addr_type_); }
  inline int num_forwards() { return (num_forwards_); }
  inline int opt_num_forwards() { return (opt_num_forwards_); }
  //monarch_end
   
  };
  
 


-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.


Re: [ns] Help, Problem with MPLS module on NS 2.26

2006-07-28 Thread Gilles Bertrand

The solution was the manual correction of the makefile. But in fact the
problem came from the version of the compiler I was using. With ns 2.6
the recommended version of gcc is 2.95.3. Using this compiler solves
most of the problems. I am going to post an install guide a bit later on
this mailing list.

Regards,

Gilles Bertrand
Telecom INT (GET)
University of Stuttgart


Paulo Cezar Soares a écrit :
 Hi,
 
 I checked the ns-users list and verify that you has a problem with
 MPLS module on NS 2.26 with the follow error:
 
 (_o3 cmd line 1)
 invoked from within
 _o3 cmd configure-ldp-on-all-mpls-nodes
 invoked from within
 catch $self cmd $args ret
 (procedure _o3 line 2)
 (SplitObject unknown line 2)
 invoked from within
 $ns configure-ldp-on-all-mpls-nodes
 (file
 /ns-allinone-2.26/ns-2.26/tcl/ex/mns_v2.0/test-constraint-routing.tcl
 line 140)
 
 Could you share your solution with me, or indicate Install Guide of
 MNS v2.0 for NS 2.26  ?
 
 I really appreciate your atention.
 Thanks in advance,
 Paulo
 
 PS:
 Sorry for my poor english.
 


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

--
Gilles BERTRAND
Institut National des Télécommunications (GET)- Universität Stuttgart
Tel: +33 (0) 3 29 63 22 08
--



[ns] Bluetooth and 802.11 performance

2006-07-28 Thread m w

Hi All,
   
I want to study bluetooth performance with 802.11 devices. I was 
just wondering as to how to specify bluetooth in ns-2. Also I am not sure as to 
how to specify large number of mixed 802.11 and bluetooth nodes together.Please 
help me.
   
  Thanks in Advance,
  Manish
  Ph.Dc


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.