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

Zhao, Liang L.Zhao at napier.ac.uk
Thu Mar 6 02:47:12 PST 2008


Hi all 

Anyone can tell me that I sent several emails to ns-user at isi.edu, I haven’t seen any on the " Today's Topics ". Could you tell me why?

Liang

-----Original Message-----
From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf Of ns-users-request at ISI.EDU
Sent: 2008年3月6日 1:00
To: ns-users at ISI.EDU
Subject: Ns-users Digest, Vol 51, 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. Fwd: in diffserv(ns2) (anitha vijay)
   2. [Fwd: need clarification] (gananthi at tce.edu)
   3. [Fwd: need clarification] (gananthi at tce.edu)
   4. wireless sensor (gananthi at tce.edu)
   5. ADTFRC code (abhijit subramanya)
   6. problem regarding MAODV implementation (Sheraz Nadeem)
   7. Re: Dispaly problem with nam (Bartek Nawrocki)
   8. 'cout' doesnt print on the console (jimit shah)
   9. Re: 'cout' doesnt print on the console (Nur Aini Rakhmawati)
  10. Error: "Cannot convert int to FILE*" - File pointer error
      (jimit shah)
  11. Obstacle Objects simulation in ns-2 (nadir shah)
  12. TFRC headerSize 32bytes ? (ILMO JUNG)
  13. trouble with bind (Stankiewicz Bredkjaer)


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

Message: 1
Date: Wed, 5 Mar 2008 07:47:10 +0530
From: "anitha vijay" <nalin.vijay at gmail.com>
Subject: [ns] Fwd: in diffserv(ns2)
To: ns-users at ISI.EDU
Message-ID:
	<97f027d00803041817v6236a1bcq4216153668699899 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

---------- Forwarded message ----------
From: anitha vijay <nalin.vijay at gmail.com>
Date: Sat, Mar 1, 2008 at 4:13 PM
Subject: in diffserv(ns2)
To: ns-users at isi.edu


hi iam doing my project in diffserv in ns2 .i want to know how to record the
traffic coming to the edge node.i dont know where to modify in c++ file. If
anybody know help me.


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

Message: 2
Date: Wed, 5 Mar 2008 11:31:18 +0530 (IST)
From: gananthi at tce.edu
Subject: [ns] [Fwd: need clarification]
To: ns-users at ISI.EDU
Message-ID: <3052.10.4.1.60.1204696878.squirrel at mail.tce.edu>
Content-Type: text/plain; charset="iso-8859-1"

---------------------------- Original Message ----------------------------
Subject: need clarification
From:    gananthi at tce.edu
Date:    Tue, March 4, 2008 3:13 pm
To:      ns-users at isi.edu
--------------------------------------------------------------------------

Hello

Plz go thro the attachment..
Kindly clarify me if possible.

ananthi


-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)


-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)

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

Message: 3
Date: Wed, 5 Mar 2008 11:37:05 +0530 (IST)
From: gananthi at tce.edu
Subject: [ns] [Fwd: need clarification]
To: ns-users at ISI.EDU
Message-ID: <3063.10.4.1.60.1204697225.squirrel at mail.tce.edu>
Content-Type: text/plain; charset="iso-8859-1"

---------------------------- Original Message ----------------------------
Subject: need clarification
From:    gananthi at tce.edu
Date:    Tue, March 4, 2008 3:13 pm
To:      ns-users at isi.edu
--------------------------------------------------------------------------

Hello

Plz go thro the attachment..
Kindly clarify me if possible.

ananthi


-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)


-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)

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

Message: 4
Date: Wed, 5 Mar 2008 11:47:12 +0530 (IST)
From: gananthi at tce.edu
Subject: [ns] wireless sensor
To: ns-users at ISI.EDU
Message-ID: <3072.10.4.1.60.1204697832.squirrel at mail.tce.edu>
Content-Type: text/plain; charset="iso-8859-1"

Hello
Can anyone know how to simulate the given Network using NS 2.31 ?
The Distance is short range one ( Sensor Network based ) The Time slot
length is given between the two nodes and the constellation size ?b (no of
bits transmitted) is also be given.  After simulating the model , I m in
need of Network Delay and Energy. I am trying for the problem. I did n?t
get exact solution. Kindly answer if possible.

 node 1  (15,0) source node
 node 2  (10,0)
 node 3   (5,0)
 node 4  (0,0) sink node

 bits transmission
 node 1 node 2 9 bits time slot length 0.044
 node 2 node 4 6 bits time slot length 0.6
 node 1 node 3 6 bits time slot length 0.035
 node 3 node 4 9 bits time slot length 0.044
if possible kindly send me the query

ananthi


-----------------------------------------
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)

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

Message: 5
Date: Wed, 5 Mar 2008 12:21:48 +0530
From: "abhijit subramanya" <abhijit.subramanya at gmail.com>
Subject: [ns] ADTFRC code
To: ns-users at ISI.EDU
Message-ID:
	<f253b91f0803042251r74188260vee2413cdf173a480 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi
if anyone has the code for Ad hoc Tcp freindly Rate Control Protocol please
send me the module for that. i am really in need of it.
please someone send me the code if you have it.

thanks.


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

Message: 6
Date: Wed, 5 Mar 2008 13:53:29 +0500
From: Sheraz Nadeem <sheraz_nadeem at hotmail.com>
Subject: [ns] problem regarding MAODV implementation
To: ns users <ns-users at ISI.EDU>
Message-ID: <BAY114-W486E1F8B110E4A676442D881110 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"


Hi all

i am using ns-2.31 and i am having problem regarding the implementation of MAODV. i am trying to achieve multicasting in AODV. 

i am having the error which is 
///////////////////////ERROR///////////////////////////////////////
./ns ns.tcl 01 10 1
num_nodes is set 50
INITIALIZE THE LIST xListHead
Loading connection pattern ...
Loading scenarios file...
Starting Simulation ...
ns: _o734 aodv-join-group 0xE000000: 
    (_o734 cmd line 1)
    invoked from within
"_o734 cmd aodv-join-group 0xE000000"
    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o734" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o734 a
odv-join-group 0xE000000"
////////////////////////////////////////////////////////////////////////
and i am using the simulation script 
///////////////////////////////////////////////////////////////////////
set opt(stop) 910.0
set nodes 	50
set mobility	1
set scenario	[lindex $argv 2]
set pausetime	0
set traffic	cbr
set senders	[lindex $argv 0]
set receivers   [lindex $argv 1] 

set ns_ [new Simulator]
set topo [new Topography]
$topo load_flatgrid 1500 300

set tracefd [open ./trace-$pausetime-$mobility-$scenario-$senders-$receivers w]
$ns_ trace-all $tracefd

set god_ [create-god $nodes]
$ns_ node-config -adhocRouting AODV ¥
			-llType LL ¥
			-macType Mac/802_11 ¥
			-ifqLen 50 ¥
			-ifqType Queue/DropTail/PriQueue ¥
			-antType Antenna/OmniAntenna ¥
			-propType Propagation/TwoRayGround ¥
			-phyType Phy/WirelessPhy ¥
			-channel [new Channel/WirelessChannel] ¥
			-topoInstance $topo ¥
			-agentTrace ON ¥
			-routerTrace ON ¥
			-macTrace OFF ¥
			-movementTrace OFF

for {set i 0} {$i < $nodes} {incr i} {
	set node_($i) [$ns_ node]
	$node_($i) random-motion 0;
}

puts "Loading connection pattern ..."
source "traffic/$traffic-$senders-$receivers"

puts "Loading scenarios file..."
source "scenarios/scen-1500x300-$nodes-$pausetime-$mobility-$scenario"

for {set i 0} {$i < $nodes} {incr i} {
	$ns_ at $opt(stop) "$node_($i) reset";
}

$ns_ at $opt(stop) "$ns_ halt"

puts "Starting Simulation ..."
$ns_ run
/////////////////////////////////////////////////////////////////
i have got the sample traffic and scenario files from the internet for multicasting but i am having errror regarding the 
multicast address (0xE000000) why is this happening. i got the whole package of multicasting inclluding all the header and cc files 
necessary for multicasting. and i have enabled the multicast feature in aodv.h so why this is happening. 
i have the following lines aodv.cc
///////////////////////in aodv.cc////////////////
#ifdef MULTICAST
    else if (strcmp(argv[1], "aodv-join-group") == 0){
        nsaddr_t mcast_addr = atoi(argv[2]);
        if (mcast_addr < IP_MULTICAST) return TCL_ERROR;
        aodv_mt_entry *mt = mtable.mt_lookup(mcast_addr);
        if (mt == 0) mt = mtable.mt_add(mcast_addr);
        if (mt->mt_node_status == ON_GROUP){
            return TCL_OK;
        }
        if (mt->mt_node_status == ON_TREE){
            mt->mt_node_status = ON_GROUP;
            return TCL_OK;
        }

        // node is not on the tree
        mt->mt_flags = MTF_IN_REPAIR;
        mt->mt_grp_leader_addr = INFINITY8;
        mt->mt_node_status = ON_GROUP;
 
        sendMRQ(mt, RREQ_J);
        return TCL_OK;
    }
    else if (strcmp(argv[1], "aodv-leave-group") == 0){
        nsaddr_t mcast_addr = atoi(argv[2]);
        if (mcast_addr < IP_MULTICAST) return TCL_ERROR;
        aodv_mt_entry *mt = mtable.mt_lookup(mcast_addr);
        if (mt == 0 || mt->mt_node_status != ON_GROUP) return TCL_OK;
        if (mt->mt_grp_leader_addr != index) mt_prune(mt->mt_dst);
        else {
            mt->mt_node_status = ON_TREE;
            mt->mt_grp_leader_addr = INFINITY8;
            selectLeader(mt, INFINITY8);
        }
        return TCL_OK;
    }
#endif
//////////////////////////////////////////////////////////////
so is it not recognising the strings "aodv-join-group" or aodv-leave-group"
tell me plz as quickly as you can.
thanks 
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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

Message: 7
Date: Wed, 05 Mar 2008 12:48:00 +0100
From: Bartek Nawrocki <barcelonista at interia.pl>
Subject: Re: [ns] Dispaly problem with nam
To: ns-users at ISI.EDU
Message-ID: <47CE8870.9060507 at interia.pl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

maybe you should try to type
export DISPLAY=:0.0
instead of export DISPLAY=localhost:0.0

Best regards,
Bartek Nawrocki


Arthur Lima pisze:
> Hi...
>
> I had the display error thing, and after searching, i found ppl telling me
> to do this:
>
> export DISPLAY=localhost:0.0
>
> then use "startx", and from there, use nam...
>
>
> and it works fine...
>
> but i tried to put that "export DISPLAY=localhost:0.0" into the ".bashrc"
> and, although it puts the DISPLAY variable there, i get this error after
> trying "nam" into the startx thing:
> nam: couldn't connect to display "localhost:0.0"
>
>
> How do i fix this problem?
>
> OBS.: im using cygwin under windows
>
>
> Thanks,
>
>   


----------------------------------------------------------------------
Bedac w toalecie korzystala z ...
Sprawd? >>> http://link.interia.pl/f1d2e 



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

Message: 8
Date: Wed, 5 Mar 2008 17:41:23 +0530
From: "jimit shah" <jimitjshah at gmail.com>
Subject: [ns] 'cout' doesnt print on the console
To: ns-users at ISI.EDU
Message-ID:
	<f2ebe53e0803050411g1356236exde5e67604ecb642d at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

I have 3 linked files - 'ourapp.tcl', 'ourapp.h' and 'ourapp.cc' . I
have included all the necessary files in my  .cc file, including
iostream.h . But the 'cout' statements dont get printed onto the
console.   Can someone help me get around the problem? If 'cout'
doesnt work, what command can be used in order to print messages from
the .cc file onto the console? Do i need to include anymore header
files? Please help me....Its urgent. I'm working on ns-2.27 on Red Hat
Linux 9.0 platform.

--
jjs



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

Message: 9
Date: Wed, 5 Mar 2008 05:04:58 -0800 (PST)
From: Nur Aini Rakhmawati <khaulah_tc at yahoo.com>
Subject: Re: [ns] 'cout' doesnt print on the console
To: ns-users at ISI.EDU
Message-ID: <516177.21844.qm at web38015.mail.mud.yahoo.com>
Content-Type: text/plain; charset=us-ascii

Hi,

Perhaps there is any IF condition that make it could not print your file
You could test it by putting cout on your constructor file

Suppose your constructor function in ourapp.cc is 

ourapp:ourapp()
{
cout << "hello Aini :D"<<endl;
}
 
---------------
Nur Aini Rakhmawati
http://nuraini.net/


----- Original Message ----
From: jimit shah <jimitjshah at gmail.com>
To: ns-users at ISI.EDU
Sent: Wednesday, March 5, 2008 7:11:23 PM
Subject: [ns] 'cout' doesnt print on the console


I have 3 linked files - 'ourapp.tcl', 'ourapp.h' and 'ourapp.cc' . I
have included all the necessary files in my  .cc file, including
iostream.h . But the 'cout' statements dont get printed onto the
console.   Can someone help me get around the problem? If 'cout'
doesnt work, what command can be used in order to print messages from
the .cc file onto the console? Do i need to include anymore header
files? Please help me....Its urgent. I'm working on ns-2.27 on Red Hat
Linux 9.0 platform.

--
jjs






      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



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

Message: 10
Date: Wed, 5 Mar 2008 18:44:26 +0530
From: "jimit shah" <jimitjshah at gmail.com>
Subject: [ns] Error: "Cannot convert int to FILE*" - File pointer
	error
To: ns-users at ISI.EDU
Message-ID:
	<f2ebe53e0803050514h598ba1dcqd9d6c7be85577997 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

With the following code in my '.cc' file, I'm getting a file pointer
error saying that
"Cannot convert int to FILE*". I have also attached the screenshot of the error.
Please help me get around the problem ASAP. I'm working on ns-2.27 on
RedHat Linux 9.0 platform.
following are the lines of code :
===================================================================
#include "ourapp.h"
#include<iostream.h>
#include<string>
#include<stdlib.h>
#include <fstream>
#include <stdio.h>
static rstation res[10];
static cache rc[10],wc[10];
static int cnt=0,expseqno=1;
static int rcnt=0,wcnt=0;
const int rs=10;
const int c=10;
static int k=0;
FILE* fp;
fp = fopen("/root/ns/ns-allinone-2.27/ns-2.27/iSCSI/output.txt", "w");
fprintf(fp,"Enter the program");
.
.
.
================================================================
--
jjs

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

Message: 11
Date: Wed, 5 Mar 2008 06:27:16 -0800 (PST)
From: nadir shah <ozankhan1 at yahoo.com>
Subject: [ns] Obstacle Objects simulation in ns-2
To: ns-users at ISI.EDU
Message-ID: <893135.77832.qm at web53109.mail.re2.yahoo.com>
Content-Type: text/plain; charset=utf-8

hi all, 
          I am simulating urban scenario of vanet routing protocols considering obstacles, like building etc. Can any body guide me how to include do it in ns-2?




Waiting for reply....................

Nadir Shah

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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

Message: 12
Date: Wed, 5 Mar 2008 09:32:58 -0600
From: "ILMO JUNG" <ilmojung at gmail.com>
Subject: [ns] TFRC headerSize 32bytes ?
To: ns-users at ISI.EDU
Message-ID:
	<20050e7a0803050732ha113970rf9984b8edd93d872 at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Hi,

While checking TFRC's header size, I found it was 32 bytes.
I guess, in that 32 bytes, IP header(20bytes) and UDP(8bytes) headers are
included.
If my guess is correct, what is the remaining 4 bytes?

Thank you in advance!

-Il Mo Jung


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

Message: 13
Date: Wed, 5 Mar 2008 14:05:25 -0800 (PST)
From: Stankiewicz Bredkjaer <stan.bred at yahoo.com>
Subject: [ns] trouble with bind
To: ns-users at ISI.EDU
Message-ID: <274061.48570.qm at web58306.mail.re3.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1

Hello everybody,

i have some problems with the "bind" function when used to bind variables I've defined.
i.e. I've created a new Agent called HIGH_AVAIL with 2 new integer variables, which I've binded in the constructor like this:

bind("timeOut_", &timeout_);
bind("warnTime_", &warntime_);

after initialization in "ns-default.tcl" and compiling, these variables still get the default values even if I set new different ones in the tcl script.
can someone please help me? I am desperate now, since I've tried everything to fix it, but it still don't work!

Many have had the same problem as I could notice from the archives, but there weren't no solutions for this, can someone please help?

Thanks.

Stan.

       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

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

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


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


This message is intended for the addressee(s) only and should not be read, copied or disclosed to anyone else outwith the University without the permission of the sender.
It is your responsibility to ensure that this message and any attachments are scanned for viruses or other defects. Napier University does not accept liability for any loss
or damage which may result from this email or any attachment, or for errors or omissions arising after it was sent. Email is not a secure medium. Email entering the 
University's system is subject to routine monitoring and filtering by the University. 



More information about the Ns-users mailing list