[ns] Ns-users Digest, Vol 48, Issue 5

G Shafiullah g.shafiullah at cqu.edu.au
Wed Dec 5 18:05:32 PST 2007


 
Can anyone please tell me where the code for IEEE 802.15.4 is in
the NS2 version 2.27? Is there anyone who is working with IEEE 802.15.4?

--------------------------------------------
G M Shafiullah
Master of Engineering (Research) Student
Centre for Railway Engineering (CRE)
Faculty of Sciences, Engineering and Health
Central Queensland University
Rockhampton, Qld 4702
AUSTRALIA

Phone: 61 7 4930 9313
Mobile:61 4 3208 5800
Email: g.shafiullah at cqu.edu.au,      gmsbd at yahoo.com, gms at iwmbd.org 


-----Original Message-----
From: ns-users-request at ISI.EDU [mailto:ns-users-request at ISI.EDU] 
Sent: Thursday, December 06, 2007 11:00 AM
To: ns-users at ISI.EDU
Subject: Ns-users Digest, Vol 48, Issue 5

Send Ns-users mailing list submissions to
	ns-users at isi.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://mailman.isi.edu/mailman/listinfo/ns-users
or, via email, send a message with subject or body 'help' to
	ns-users-request at isi.edu

You can reach the person managing the list at
	ns-users-owner at isi.edu

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Ns-users digest..."


Today's Topics:

   1. help me in the segemnation fault pleassee!!!!!!!!!!!!
      (Tamer Ahmed)
   2. Re: trace files (Mohammed Abu Hajar)
   3. WFQ Patch (alejandro gomez)
   4. Re: [nsmiracle] Basic question of using ns2-miracle (Ahmad Osman)
   5. ask for help (CHENG Yong)
   6. Floyd-Warshall algorithm (pdommay at ribera.tel.uva.es)
   7. Segmentation Fault extending ns2 (Adriano Galati)
   8. Create a new Agent class (Bassoli Riccardo)


----------------------------------------------------------------------

Message: 1
Date: Wed, 5 Dec 2007 01:31:50 +0000
From: "Tamer Ahmed" <tamer.jordan at gmail.com>
Subject: [ns] help me in the segemnation fault pleassee!!!!!!!!!!!!
To: ns-users at ISI.EDU
Message-ID:
	<40716d160712041731g46031844ufc0084926084635a at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Dear NS-users,

I am running a tcl scripts using the AODV, DSDV and DSR routing
protocols for my scripts under ns-2.29. Actually, the AODV and DSDV are
both working well. But, we I apply the DSR routing protocol, it gives
me:

*Segmentation fault (core dumped)*
Actually, this problem is with me in both windows, and linux fedrora
because I installed the ns-2 on both and working on both the windows and
linux.

So, could anybody help me how to solve this problem because I searched
lots and tried lots and lots with it plzzz.

Regards,

Thamer Jahamneh

--
Thamer Al-Jahamneh


------------------------------

Message: 2
Date: Tue, 4 Dec 2007 21:30:53 -0800 (PST)
From: Mohammed Abu Hajar <mcsist at yahoo.com>
Subject: Re: [ns] trace files
To: suryowibowo.adi at gmail.com
Cc: NS_2 Mailing List <ns-users at ISI.EDU>
Message-ID: <580601.70505.qm at web55010.mail.re4.yahoo.com>
Content-Type: text/plain; charset=us-ascii

Hi, 
I would like to know that the awk script is for DSR protocol and you can
change it to other protocol like AODV, DSDV,etc. Second thing the awk
script for wireless channel, if you see at the begining in the TCL
configuration file "set opt(chan)   Channel/WirelessChannel" so you take
care about that, and thers is another configuration like mobility
senarios file, mobility model. From my point view I advice you to do
some sample examples for wired and wireless environment and try to mixed
between them later, I think there are many points will be clear to you,
however If I get somthing relevant to your work I will provide you as
soon as possible.

Regards,
Mohammed AbuHajar



----- Original Message ----
From: suryowibowo.adi <suryowibowo.adi at gmail.com>
To: Mohammed Abu Hajar <mcsist at yahoo.com>
Sent: Wednesday, December 5, 2007 12:36:25 AM
Subject: re: trace files

hiii
Thanks for your mail,
I was tried your awk and I get this again
send = 8871.00
recv = 0.00
routingpkts = 741.00
PDF = 0.00
NRL = inf
Average e-e delay(ms)= nan
No. of dropped data (packets) = 47
No. of dropped data (bytes)   = 25212
Packet Loss [
Do you have other solution..?
need to know that i simulated wired_wireless simulation with new trace
and I was modified the ns-default.tcl to get spcecification 802.11b 
I think our awk only for wireless?isn't it..

how to  calculate in domain wired and wireless, must i calcullate domain
per domain separatelly? have you suggest to me..?
When I simulated I have this warning whats means:
8388617) !!! DROP_RTR_QFULL at 52.928734 !!!
8388617) !!! DROP_RTR_QFULL at 52.968734 !!!
12582918) !!! DROP_RTR_QFULL at 57.716066 !!!
after i search in cmu-trace.h this meaning is "queue full" isn't normal?
How to fix this?

The second is 
I was get this warning but my nam and .tr run without problem/ I don't
know is success simulation or unsuccess.
Nam syntax has changed: v -t 0 set_rate_ext 0.014999999999999999 1
Please use this format in the future.
v -t <time> -e <tcl expression>

Warning: Tracefile events are not sorted by time.
m -t 3.6744717602359467 -s 10 -n m10 -c green -h circle
The above event should occur at or after -t 3.674472.

Warning: Tracefile events are not sorted by time.
m -t 8.565819535886785 -s 19 -n m19 -c green -h circle
The above event should occur at or after -t 8.565820.

I am very appreciate for Your attention .





Bergabunglah dengan orang-orang yang berwawasan, di bidang Anda di
Yahoo! Answers


 
________________________________________________________________________
____________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


------------------------------

Message: 3
Date: Wed, 5 Dec 2007 00:39:02 -0600
From: alejandro gomez <ags_84 at hotmail.com>
Subject: [ns] WFQ Patch
To: users ns2 website <ns-users at ISI.EDU>
Message-ID: <BAY109-W37258C8E8DC0695AC69DB1E96E0 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"


hello everybody
 
During a couple of days i have been trying to install the patch that i
downloaded from Mr Alexander Savyenko web site.
 
I am running ns 2.27 on windows xp, the problem is when i run the
command
 
./patch.sh /usr/local/ns-allinone-2.27
 
i works, then i try to run ./configure and it does it but at the end
says 
 
Can't dinf X library
 
i run command make
 
And it says
 
Makefile.in is newer than Makefile
you need to re- run ./configure
false
make: *** [Makefile] Error1
 
can anybody tell me what is wrong?
 
because i try to run again ./configure but it does not work
 
regards
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

------------------------------

Message: 4
Date: Wed, 5 Dec 2007 10:21:31 +0200
From: Ahmad Osman <the_lover_pharoah at hotmail.com>
Subject: Re: [ns] [nsmiracle] Basic question of using ns2-miracle
To: <baldo at dei.unipd.it>, <nsmiracle-users at dei.unipd.it>,
	<ns-users at ISI.EDU>
Message-ID: <BAY116-W12823E1B8EAAD4DA37D40CB96E0 at phx.gbl>
Content-Type: text/plain; charset="windows-1256"


Dear ns-users,I tried to find an answer of my problem at ns-miracle
achieve, and as far as i get from that recommended
link,http://www.dei.unipd.it/~baldo/ns_dl_patch/Developer_s_manual.htmlt
hat in order to have different already existing protocols at ns2 within
ns-miracle, u need to combine it with the module of ns-miracle, by
having each protocols' source (cc, h) like the foo example at the above
link.  In other meaning, suppose u want to have AODV as specific module
in L3, then u ll get aodv.cc and aodv.h and do the same for foo
example...... so, plz first correct me if i am wrong, second, wut do u
mean by "file foo-init.tcl"Other thing, u said that that implementation
was hard, but thanks to sandbox, we can make it easier, would u plz show
how can it make easier?Thanks alot all for ur helpAhmad


From: the_lover_pharoah at hotmail.com
To: baldo at dei.unipd.it; nsmiracle-users at dei.unipd.it; ns-users at isi.edu
Date: Sun, 2 Dec 2007 18:37:37 +0200
Subject: [nsmiracle] Basic question of using ns2-miracle










Hello,
 
Per the site, NS-MIRACLE is designed to allow interlayer communication
between layers, and using this library e.g. multiple PHY layers can
coexist in the simulator.  
 
 
Layer N+1 |-----------Module----------------|
SAP                    SAP
Layer N |--------Module----Module---------|
SAP         SAP
Layer N-1 |--------------Module-------------|
 
So far, and from the figure, I can put e.g.  DSR, AODV, TORA protocols
as separate modules in the routing layer "layer 3" and make SAP
communication between adjacent layers and CLSAP between each module and
the node core.
 
So, can u show me an example of how to configure a simple node with
different coexisted protocols/ modules with interaction, taking in
consideration, that creation one protocol/ module in normal ns2 is
simply like the following example.
 
$ns node-config ?adhocRouting DSDV \
                          -llType LL
                          -macType Mac/802_11
                          -ifqtype Queue/DropTail/PriQueue
 
Thanks alot for ur help
Ahmad


Explore the seven wonders of the world Learn more!

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it
now!
http://www.live.com/getstarted.aspx

------------------------------

Message: 5
Date: Wed, 5 Dec 2007 18:56:41 +0800 (CST)
From: "CHENG Yong" <yongchengyl at 126.com>
Subject: [ns] ask for help
To: ns-users at ISI.EDU
Message-ID:
	
<19617517.493341196852201398.JavaMail.coremail at bj126app54.126.com>
Content-Type: text/plain; charset=gbk

  Dear everyone,
 
    did any one implement suceessful the extension of ns-2 for
multi-channel
    from Ramon Aguero at:  http://personales.unican.es/aguerocr ,many
thanks for Ramon Aguero for his Document.
    there is a mistake when I do the test, the tcl script and the error
are below.    Please help me to find the error, thank you. I think the
error's position is may in Listing 3.6 according to the error message.
   thanks   
########################## this is the test code  start  #####
ns-example.tcl
# Listing 6.1
set val(chan)     Channel/WirelessChannel
set val(ni)       3
set val(nn)       2       ;# number of mobilenodes
# add by CHENG Yong 2007-12-04  start
set val(rp)             AODV                       ;# routing protocol
set val(ll)         LL
set val(mac)        Mac/802_11
set val(ifq)        Queue/DropTail/PriQueue
set val(ifqlen)         50                           ;# max packet in
ifq
set val(ant)        Antenna/OmniAntenna
set val(prop)       Propagation/TwoRayGround
set val(netif)      Phy/WirelessPhy
# Initialize Global Variables
set ns_ [new Simulator]
set tracefd [open mrmc.tr w]
$ns_ trace-all $tracefd#Define a 'finish' procedure
proc finish {} {
        global ns nf
        $ns flush-trace
        #Close the NAM trace file
        close $nf
        #Execute NAM on the trace file
        exec nam out.nam &
        exit 0
}# set up topography
set topo [new Topography]
$topo load_flatgrid 1000 1000# add by CHENG Yong 2007-12-04  end#
Listing 6.2
for {set i 0} {$i< $val(ni)} {incr i} {
  set chan_($i) [new $val(chan)]
}
# Listing 6.3
create-god [expr $val(nn)*$val(ni)]
# Listing 6.4
$ns_ node-config -adhocRouting $val(rp) \
    -llType $val(ll) \
    -macType $val(mac) \
    -ifqType $val(ifq) \
    -ifqLen $val(ifqlen) \
    -antType $val(ant) \
    -propType $val(prop) \
    -phyType $val(netif) \
    -channel $chan_(0) \
    -topoInstance $topo \
    -agentTrace ON \
    -routerTrace ON \
    -macTrace ON \
    -movementTrace ON \
    -ifNum $val(ni)# Listing 6.5
 $ns_ change-numifs $val(ni)
  #   for {set i 0} {$i < $val(ni) } {incr i} {
  #     $ns_ add-channel $i $chan_($i)  
  #   }    for {set i 0} {$i < $val(nn) } {incr i} {
        set node_($i) [$ns_ node]
        $node_($i) random-motion 0
    }# Listing 6.6
$ns_ change-numifs 2
$ns_ add-channel 0 $chan_(0)
$ns_ add-channel 1 $chan_(2)
set node_(0) [$ns_ node]
$node_(0) random-motion 0$ns_ change-numifs 1
$ns_ add-channel 0 $chan_(2)
set node_(1) [$ns_ node]
$node_(1) random-motion 0$ns_ color 1 Blue
$ns_ color 2 Red#Create links between the nodes
$ns duplex-link $node_(0) $node_(1) 2Mb 10ms DropTail
#Setup a TCP connection
set tcp [new Agent/TCP]
$tcp set class_ 2
$ns_ attach-agent $node_(0) $tcp
$ns_ attach-agent $node_(1) $tcp#Setup a FTP over TCP connection
set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ftp set type_ FTP
#Schedule events for the  FTP agents$ns_ at 0.1 "$ftp start"
$ns_ at 4.0 "$ftp stop"
#Call the finish procedure after 5 seconds of simulation time
$ns_ at 4.5 "finish"#Run the simulation
$ns_ run
########################## this is the test code   end
#####ns-example.tcl ########################## this is error for the
test code  start
$ ns ns-example.tcl
num_nodes is set 6
invalid command name "if{1}"
    while executing
"if{[info exist numifs_]} {
for {set i 0}{ $i< $numifs_ } {incr i} {
$node add-interface $chan($i) $propInstance_ $llType_ $macType_
$ifqType_ $ifql
en..."
    (procedure "_o3" line 70)
    (Simulator create-wireless-node line 70)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns_ node"
    ("for" body line 2)
    invoked from within
"for {set i 0} {$i < $val(nn) } {incr i} {
        set node_($i) [$ns_ node]
        $node_($i) random-motion 0
    }"
    (file "ns-example.tcl" line 74)########################## this is
error for the test code  end

------------------------------

Message: 6
Date: Wed, 5 Dec 2007 19:58:32 +0100 (CET)
From: pdommay at ribera.tel.uva.es
Subject: [ns] Floyd-Warshall algorithm
To: ns-users at ISI.EDU
Message-ID: <2717178.3671196881112412.JavaMail.tomcat at pingus>
Content-Type: text/plain;	format=flowed;	charset=us-ascii



Hello!!

I need to use the Floyd-Warshall algorithm to run some simulations 
with ns-2. I've been reading documentation and i've seen this 
algorithm is implemented in ns-2 but for routing with mobile 
nodes. Unfortunately i searched more information but i haven't 
found how to work with the algorithm over non-mobile nodes. Is 
there any way to use it with non-mobile simulations too? Is there 
any extension to incorporate it, or anyone knows any guide or 
something where i can read how to do it?

Thank you very much for any kind of information you can give me 
:).

Paul.



------------------------------

Message: 7
Date: Wed, 05 Dec 2007 22:11:41 +0000
From: Adriano Galati <azg at Cs.Nott.AC.UK>
Subject: [ns] Segmentation Fault extending ns2
To: ns-users at ISI.EDU
Message-ID: <4757221D.6040304 at cs.nott.ac.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,
I have extended ns2 for dtn simulations.
I have also created my classes for routing.
I have written my tcl file, see below, and I simply get a segmentation 
fault, without any explanation...
Does anybody have suggestions or got similar problem???
Thank you in advance,
Adriano

# Create a simulator object
set ns [new Simulator]

#Create nodes
set node1 [$ns node]
set node2 [$ns node]

#Create the agent for the first node
set dtn1 [new Agent/DTNAgent]

#Create another Agent for the second node
set dtn2 [new Agent/DTNAgent]

#attach the agents to the nodes
$ns attach-agent $node1 $dtn1
$ns attach-agent $node2 $dtn2

#Set local region
$dtn1 region "REGION1"
$dtn2 region "REGION2"

#Setup routing table
$dtn1 add "REGION2" $dtn2 1 1 1500
$dtn2 add "REGION1" $dtn1 1 1 1500

This message has been checked for viruses but the contents of an
attachment
may still contain software viruses, which could damage your computer
system:
you are advised to perform your own checks. Email communications with
the
University of Nottingham may be monitored as permitted by UK
legislation.



------------------------------

Message: 8
Date: Thu, 06 Dec 2007 01:49:52 +0100
From: Bassoli Riccardo <bassoli.riccardo.45765 at unimore.it>
Subject: [ns] Create a new Agent class
To: ns-users at ISI.EDU
Message-ID: <47574730.9030606 at unimore.it>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed

Hi!

I've created a new Agent to impement a core node. I've written the 2 
files .h and .cc in this way:

AgCore.h
-----------------
#ifndef ns_AgCore_h
#define ns_AgCore_h

#include "tclcl.h"
#include "packet.h"
#include "agent.h"


class AgCore : public Agent {
  
   public:
    AgCore();
    virtual void recv(Packet* pkt, Handler*);          
    int command(int argc, const char*const* argv);         

   protected:
    int Bu;                        
    double ti;                        
    long payload;                        
    long slotDel;                          
    double Tburst;                       


};

#endif

-----------------------
AgCore.cc
-----------------------
#include "AgCore.h"
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <iostream>

static class AgCoreclass : public TclClass {

   public:
       AgCoreclass() : TclClass("Agent/Core") {}
       TclObject* create(int, const char*const*) {
           return (new AgCore());
       }

} class_agcore;


AgCore::AgCore()
   : Agent(PT_SLOT),
   Bu(0), ti(0), payload(0), slotDel(0), Tburst(0)

{
   bind("Bu_", &Bu);                   
}


void AgCore::recv(Packet *pkt, Handler*)
{
   double t = Scheduler::instance().clock();      
   payload = hdr_cmn::access(pkt)->size();           
      

   if(ti < t < ti+Tburst) {
      
       Packet::free(pkt);               
       slotDel = slotDel + 1;

   } else {

       ti = t;
       Tburst = payload/Bu;               
       send(pkt, 0);                       

       }

}

int AgCore::command(int argc, const char* const* argv)
{
   if (strcmp(argv[1], "MisureLB") == 0) {              
  
       std::cout << "Burst persi = " << slotDel << "\n";
       return TCL_OK;
   }
   return (Agent::command(argc, argv));
}

-------------------
I've followed the tutorial about new PingAgent class to write my new
Agent but when 
I write in my tcl script

set ac [new Agent/Core]
$ac set Bu_ $Bu
$ns attach-agent $Core $ac
$ns at $SIM_TIME "$ns detach-agent $Core $ac"

the simulation watch this error:

invalid command name "Agent/Core"
   while executing
"Agent/Core create _o147 "
   invoked from within
"catch "$className create $o $args" msg"
   invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
   (procedure "new" line 3)
   invoked from within
"new Agent/Core"
   invoked from within
"set ac [new Agent/Core]"
   (file "mio-mixed.tcl" line 199)


Can someone help me to solve this problem?

Please help me because I have to solve this problem...

Thank you.

Riccardo




------------------------------

_______________________________________________
Ns-users mailing list
Ns-users at isi.edu
http://mailman.isi.edu/mailman/listinfo/ns-users


End of Ns-users Digest, Vol 48, Issue 5
***************************************



More information about the Ns-users mailing list