Re: [ns] Agent creation problem

2011-08-16 Thread Fahimeh Akbari

Hi
please explain your steps for defining your new agent and adding it to NS.

Thanks




From: Loukman NAJDI loukman.na...@utt.fr
To: ns-users@ISI.EDU
Sent: Tuesday, August 16, 2011 6:57 AM
Subject: [ns] Agent creation problem


Hello

When i have created a new agent in ns2-2.34, the make depend and make  
options are passed succesfully, after that when itry to run my TCL  
code an error occur :

ns:
[code omitted because of length]
: invalid command name Agent/TCP/Fack
    while executing
Agent/TCP/Fack set ss-div4_ false

any idea ?


Re: [ns] Agent creation problem

2011-08-16 Thread Fahimeh Akbari



Dear loukman

with thanks from Nicholas, I suggest you that modify makefile.in instead of 
makefile, according to Nicholas help. I attached you a .pdf file that is so 
usefull in creating a new agent and adding it to in NS. please read the needed 
changes  part of it that explains how to add your new agent to ns.
be lucky.

your sincerely: Fahimeh



From: nicholas mbonimpa nmboni...@gmail.com
To: Fahimeh Akbari fahimeh...@yahoo.com
Cc: Loukman NAJDI loukman.na...@utt.fr; ns-users@ISI.EDU ns-users@isi.edu
Sent: Tuesday, August 16, 2011 3:51 PM
Subject: Re: [ns] Agent creation problem


Hi there,

As Fahimeh said, you've most probably not gone through all the necessary steps 
of adding a new agent.

Most importantly, you need to modify the Makefile in the ns-2.34 (or your 
version of ns-2) directory and include tcp-Fack.o, then run make again to 
create an executable for your agent.

I hope that will help.

Kind regards,

Nicholas Mbonimpa




On Tue, Aug 16, 2011 at 11:20 AM, Fahimeh Akbari fahimeh...@yahoo.com wrote:


Hi
please explain your steps for defining your new agent and adding it to NS.

Thanks




From: Loukman NAJDI loukman.na...@utt.fr
To: ns-users@ISI.EDU
Sent: Tuesday, August 16, 2011 6:57 AM
Subject: [ns] Agent creation problem



Hello

When i have created a new agent in ns2-2.34, the make depend and make 
options are passed succesfully, after that when itry to run my TCL 
code an error occur :

ns:
[code omitted because of length]
: invalid command name Agent/TCP/Fack
    while executing
Agent/TCP/Fack set ss-div4_ false

any idea ?


Re: [ns] Scheduler error - NULL handler

2011-08-16 Thread Fahimeh Akbari



Hi 

I had this problem in my simulations. I have been send a data packet to a NULL 
target (my sender node was not attached to my destination node). see 
scheduler.cc file in your ns directory. this error is created from there. 
search this error text, and see what null pointer did you used in your 
simmulation.

be lucky: Fahimeh



From: Aslinda Hassan aslinda.has...@mun.ca
To: ns-users@ISI.EDU
Sent: Tuesday, August 16, 2011 5:33 PM
Subject: [ns] Scheduler error - NULL handler.h 


Hi everyone.



Currently, I'm implementing a new routing protocol for ad hoc network, and
I have managed to compile it without any errors.  Unfortunately, when I
tried to test my protocol, I received the following error:



Scheduler: attempt to schedule an event with a NULL handler.  Don't do that
.



I was wondering if anyone have any experience solving this problem or at
least give some advice on where to look at. I have goodgled this problem on
the Internet, and so far I found a number of people having the same problem
but without any solution.   Any help regarding this matter is highly
appreciated.  



Aslinda Hassan

Computer Engineering Research Lab

Faculty of Engineering and Applied Science

Memorial University of Newfoundland




This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2011.php


Re: [ns] sensor net in ns2

2011-08-16 Thread Fahimeh Akbari

Dear Anas

Hi
you must define a wireless node and set it's energy. see ns tutorial. it's in 
your ns directory, in the tutorial sub-directory. any wireless example tcl code 
can help you. for adding energy consumption to it see the tutorial. 


be lucky: Fahimeh



From: Anas anasa...@hotmail.com
To: ns-users@ISI.EDU
Sent: Tuesday, August 16, 2011 7:35 PM
Subject: [ns] sensor net in ns2


Dear NS2 users 
I am a master student who has been struggling to simulate wireless
sensor network in NS2 but still have no success 
i tried ns2.34 and 2.29 
the main problem is about the phenom routing agent 
plzz if any body have any idea about how to simulate wsn in ns2 can u
help  


[ns] how receive CBR packets at my own agent????

2011-08-13 Thread Fahimeh Akbari

Hi 


I want to receive every CBR packets in my own agent and after extracting some 
data from that, forward it to it's destination.
So in my agent constructor definition, I used from following code:
/**/
SBC2::SBC2() : Agent(PT_CBR) {

    dup_flag_=0;
//    set_pkttype(PT_CBR);
    puts(SBC2::SBC2\n);
}
/**/

but It doesn't work and doesn't receive any packet. I tested PT_UDP and 
PT_RTP too. what I must to do. Please help me. I have so little time.


with thanks: F.Akbari


Re: [ns] [VIP] Discussion

2011-08-12 Thread Fahimeh Akbari



Hi every body (salam)
I think It's completely true, but in another groups (like yahoogroup) the 
sender of e-mail is yahoogroup, so when we reply to e-mail it will forward to 
group, and then all it's users. 

I think it must be like that in ns-users group!

with special thanks to mariam: Fahimeh



From: Mariam A. Moustafa elansary@gmail.com
To: ns-users@ISI.EDU
Sent: Friday, August 12, 2011 12:43 PM
Subject: [ns] [VIP] Discussion


Salam Alaikum wa Rahmatullahi wa Barakatuh, Dears NS2 users, Shortly, in our
archive we have a lot of questions and few of them are attached with thier
answers!! Also as an open community we rely on the existance of expert and
active persons.. due to the dynamic nature of this mailing list we need to
arrange the process of asking and answering a question here is an initial
suggestion and the subject is open for discussion.. what is about the person
who ask the question and get a full and correct answer, S/he is the
responsible to thank the list by forward the answer after it works.
depending in the honesty on the memebers! what do you see?? Thanks Mariam


[ns] get node name from it's ID- Error!

2011-08-04 Thread Fahimeh Akbari

Hi all
I want to attach a udp agent to a node through my agent .c code. I used from 
following code. But I have a problem. I have two segment code that are similar 
completely. but when I run it second piece of code cause Segmentation Fault! 
error. this error is from shown line  of code. Can anybody help me, Please? 
It's so Important ans urgent for me!


%%

  Tcl tcl = Tcl::instance();

  char * Source;
  char * Destination; 
  char * Name;

//get Source  Dest node ID  Name
  Name=const_castchar *(name());
  sprintf(tcl.buffer(), %s set sourcenode_id, Name);
  tcl.eval();
  assert(*tcl.result());
  int sourcenode_id = atoi(tcl.result());
  Source=const_castchar *(tcl.result());
  Node *SourceNode=Node::get_node_by_address(sourcenode_id);
  char *SAddr=const_castchar *(SourceNode-name());   // //runs 
successfully
  cout  Get SADDR :  SAddr  \n  ;

 Dest
  Name=const_castchar *(name());
  sprintf(tcl.buffer(), %s set destnode_id, Name);
  tcl.eval();
  assert(*tcl.result());
  int destnode_id = atoi(tcl.result());
  Destination=const_castchar *(tcl.result());  // I checked it, I have 
the node ID now
  Node *DestNode=Node::get_node_by_address(destnode_id); // This line runs 
successfully
  cout  Get Dest Node \n ;   
  char *DAddr=const_castchar *(DestNode-name());  //this line causes 
ERROR
  cout  Get DADDR :  DAddr  \n  ;



// from now code is true and runs successfully

//get Simulator instance name
  tcl.evalf(Simulator instance);  
  char simName[32];
  strncpy(simName, tcl.result(), 32);
  cout  Get Simulator instance \n  ;

//UDP Source 
  tcl.eval(set udp1 [new Agent/UDP]);
  assert(*tcl.result());
  char *Udp_Agent=const_castchar *(tcl.result());
  cout  Udp_Agent;

  printf(%s attach-agent %s %s \n,simName,SAddr,Udp_Agent);
  sprintf(tcl.buffer(), %s attach-agent %s %s,simName,SAddr,Udp_Agent);
  tcl.eval();  

//UDP Sink
  tcl.eval(set null [new Agent/Null]);
  assert(*tcl.result());
  char *Null_Agent=const_castchar *(tcl.result());

  printf(%s attach-agent %s %s,simName,DAddr,Null_Agent);
  sprintf(tcl.buffer(), %s attach-agent %s %s,simName,DAddr,Null_Agent);
  tcl.eval();  

//connect source to sink
  printf(%s connect %s %s,simName,Udp_Agent,Null_Agent);
  sprintf(tcl.buffer(), %s connect %s %s,simName,Udp_Agent,Null_Agent);
  tcl.eval();  
  cout  Connect UDP to SINK \n  ;

//CBR App. 
  tcl.eval(set cbr1 [new Application/Traffic/CBR]);
  assert(*tcl.result());
  char *CBR=const_castchar *(tcl.result());
  sprintf(tcl.buffer(), %s attach-agent %s ,CBR,Udp_Agent);
  tcl.eval();  
  sprintf(tcl.buffer(), %s set PacketSize_ 1000,CBR);
  tcl.eval();  
  sprintf(tcl.buffer(), %s  set rate_ 0.01Mb,CBR);
  tcl.eval();  
  cout  before CBR‌ start \n;
  sprintf(tcl.buffer(), %s at-now \%s start\ ,simName,CBR);
  tcl.eval();  

[ns] Running CBR application at runtime. Trace problem!

2011-08-02 Thread Fahimeh Akbari

Hi every body
I have a problem that is so urgent for me. can anybody helps me?

I'm using NS 2.27. I want to run a CBR application from my .c code. So I add 
these lines of code to my agent code:


  Tcl tcl = Tcl::instance();

  char * Name;

///  UDP Source 
  Name=const_castchar *(name());
  sprintf(tcl.buffer(), %s set sourcenode_id, Name);
  tcl.eval();

  assert(*tcl.result());
  int sourcenode_id = atoi(tcl.result());

  tcl.eval(set udp1 [new Agent/UDP]);
  tcl.eval($udp1 set class_ 2);
  tcl.eval(set null [new Agent/Null]);

  sprintf(tcl.buffer(), Simulator attach-agent %s $udp1, Source);
  tcl.eval();    

  char *rslt=const_castchar *(tcl.result());  

/// UDP Sink 

  Name=const_castchar *(name());
  sprintf(tcl.buffer(), %s set destnode_id, Name);
  tcl.eval();

  assert(*tcl.result());
  int destnode_id = atoi(tcl.result());

  tcl.eval(set udp1 [new Agent/UDP]);
  tcl.eval($udp1 set class_ 2);
  tcl.eval(set null [new Agent/Null]);

  sprintf(tcl.buffer(), Simulator attach-agent %s $null, Destination);
  tcl.eval();   

  rslt=const_castchar *(tcl.result());   //  tcl.result(rslt);
  cout  Destination set by FA :   rslt \n;

///  CBR App.   
  tcl.eval(Simulator connect $udp1 $null);
  tcl.eval(set cbr1 [new Application/Traffic/CBR]);
  tcl.eval($cbr1 attach-agent $udp1);
  tcl.eval($cbr1 set PacketSize_ 1000);
  tcl.eval($cbr1 set rate_ 0.01Mb);
  tcl.eval(Simulator at-now \$cbr1 start\ );

  cout    CBR Application Starts   \n;




when I make my ns2 and run my tcl code, I see the line CBR Application Starts 
 but the trace file is empty!!!

I added a trace file to my .c code, too and flush-trace to it, but I still have 
an empty trace file!!
please help me. I have so little time to solve my problem.
with thanks: Fahimeh


[ns] Fw: Running CBR application at runtime. Trace problem!

2011-08-02 Thread Fahimeh Akbari



Hi all

PLZ help me! I send it before but I didn't found any solution for it. can't any 
body help me???!!!

I have a problem that is so urgent for me. can anybody helps me?


I'm using NS 2.27. I want to run a CBR application from my .c code. So I add 
these lines of code to my agent code:


  Tcl tcl = Tcl::instance();

  char * Name;

///  UDP Source 
  Name=const_castchar *(name());
  sprintf(tcl.buffer(), %s set sourcenode_id, Name);
  tcl.eval();

  assert(*tcl.result());
  int sourcenode_id = atoi(tcl.result());

  tcl.eval(set udp1 [new Agent/UDP]);
  tcl.eval($udp1 set class_ 2);
  tcl.eval(set null [new Agent/Null]);

  sprintf(tcl.buffer(), Simulator attach-agent %s $udp1, Source);
  tcl.eval();    

  char *rslt=const_castchar *(tcl.result());  

/// UDP Sink 

  Name=const_castchar *(name());
  sprintf(tcl.buffer(), %s set destnode_id, Name);
  tcl.eval();

  assert(*tcl.result());
  int destnode_id = atoi(tcl.result());

  tcl.eval(set udp1 [new Agent/UDP]);
  tcl.eval($udp1 set class_ 2);
  tcl.eval(set null [new Agent/Null]);

  sprintf(tcl.buffer(), Simulator attach-agent %s $null, Destination);
  tcl.eval();   

  rslt=const_castchar *(tcl.result());   //  tcl.result(rslt);
  cout  Destination set by FA :   rslt \n;

///  CBR App.   
  tcl.eval(Simulator connect $udp1 $null);
  tcl.eval(set cbr1 [new Application/Traffic/CBR]);
  tcl.eval($cbr1 attach-agent $udp1);
  tcl.eval($cbr1 set PacketSize_ 1000);
  tcl.eval($cbr1 set rate_ 0.01Mb);
  tcl.eval(Simulator at-now \$cbr1 start\ );

  cout    CBR Application Starts   \n;




when I make my ns2 and run my tcl code, I see the line CBR Application Starts 
 but the trace file is empty!!!

I added a trace file to my .c code, too and flush-trace to it, but I still have 
an empty trace file!!
please help me. I have so little time to solve my problem.
with thanks: Fahimeh


[ns] Fw: SIP wireless node problem!

2011-07-25 Thread Fahimeh Akbari




Dear All,
I am trying to simulate SIP protocol in a Wired-cum-Wireless and MobileIP 
network.
After compiled the Rui prior SIP patch successfully in ns-2.27, I have tried a 
simple wired network example and it worked. However, when I introduce some 
wireless nodes running SIP on it and connected via a base station with wired 
network in the simulation.  I got errors like: 


Segmentation Fault!    


I did not meet this error in wired network, so I think maybe because  of 
wireless nodes in this simulation or some undefined class in some part of this 
simulation. I have no idea which part of the script lead to this error. What do 
you guys think of this problem? Can you suggest me where I should go to check 
and fix this problem in NS-2?
It's so important for me. please help me. 


with thanks: Fahimeh Akbari fahimeh...@yahoo.com


[ns] SIP wireless example ***(Urgent)

2011-07-25 Thread Fahimeh Akbari

Dear All,
I am trying to simulate SIP protocol in a Wired-cum-Wireless and MobileIP 
network.
After compiled the Rui prior SIP patch successfully in ns-2.27, I have 
tried a simple wired network example and it worked. However, when I 
introduce some wireless nodes running SIP on it and connected via a base 
station with wired network in the simulation.  I got errors like: 


Segmentation Fault!    


I did not meet this error in 
wired network, so I think maybe because  of wireless nodes in this 
simulation or some undefined class in some part of this simulation. I 
have no idea which part of the script lead to this error. What do you 
guys think of this problem? Can you suggest me where I should go to check and 
fix this problem in NS-2?
It's so important for me. please help me. 


with thanks: Fahimeh Akbari fahimeh...@yahoo.com


Re: [ns] NIST-MIH found problem?!!!

2011-04-07 Thread Fahimeh Akbari







From: Fahimeh Akbari fahimeh...@yahoo.com
To: ns isi.edu ns-users@isi.edu
Sent: Thu, April 7, 2011 4:51:33 PM
Subject: NIST-MIH found problem?!!!


hello every-body
I need to simulate a network mobility scenario with NIST-MIH but i can't find 
it's package. how can i find and download it?
please help me!!
fahimeh akbari


[ns] broking adouble number in ns.2

2010-01-29 Thread Fahimeh Akbari

Hi everybody

how can I broke a double number and extract it's integer part in ns.2? (which 
function, which header file) I must not round it. please help me. it's so 
important for me.

Thanks a lot.
fahimeh


  


[ns] Fw: help me please

2010-01-12 Thread Fahimeh Akbari

dearall

Hi

I
write a transport protocol myself (RCRT in WSN) and I forced neede
changes according to NS manuals  after making ns, i get an error
according to this :

trace/cmu-trace.o: In function `hdr_rcrtsink::access(Packet const*)':
cmu-trace.cc:(.text._ZN12hdr_rcrtsink6accessEPK6Packet[hdr_rcrtsink::access(Packet
const*)]+0x7): undefined reference to `hdr_rcrtsink::offset_'
trace/cmu-trace.o: In function `hdr_rcrt::access(Packet const*)':
cmu-trace.cc:(.text._ZN8hdr_rcrt6accessEPK6Packet[hdr_rcrt::access(Packet
const*)]+0x7): undefined reference to `hdr_rcrt::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
fakb...@ubuntu:~/ns-allinone-2.28/ns-2.28$ 

it's so important for me. can you help me, please!

regaurds: Fahimeh .Akbari







From: Mubashir Rehmani mshrehm...@gmail.com
To: Fahimeh Akbari fahimeh...@yahoo.com
Sent: Tue, January 12, 2010 12:22:55 PM
Subject: Re: [ns] help me please

Hello,

Please see this file

http://masimum.inf.um.es/nsrt-howto/pdf/nsrt-howto.pdf

Regards


2010/1/12 Fahimeh Akbari fahimeh...@yahoo.com


hello every body

I write a new protocol in ns and when I make it, I see this error:
make: *** No rule to make target `rcrt/rcrtsink.o', needed by `ns'.  Stop.

can anybody help me, plese!!

thanks: fahimeh







-- 
Mubashir Husain Rehmani


  


[ns] help me please

2010-01-11 Thread Fahimeh Akbari

hello every body

I write a new protocol in ns and when I make it, I see this error:
make: *** No rule to make target `rcrt/rcrtsink.o', needed by `ns'.  Stop.

can anybody help me, plese!!

thanks: fahimeh



  


[ns] Similar with Mr.Feiz

2009-07-17 Thread Fahimeh Akbari

Hi all
I should write some script about my QOS parameters such as band width, end to 
end delay and so on, on a wireless simulation (802.11 using ns-2.34) .can 
anyone help me please?
with Thanks
Fahimeh





  


[ns] 802.11e TKN, little error. i give a nice website in return

2009-07-05 Thread Fahimeh Akbari

hi
i installed ns2.28 and its patches, i do every things in readme file but i have 
aMAKE error. i see  this website for a solution. but i did not found anything, 
caneveryone help me PLEASE
 http://academic.csuohio.edu/yuc/mobile07/