[ns] help required

2012-01-22 Thread manonmani maligachar

Hi all,

Can anybody tell how to obtain the coordinates of the node movements from
nam.

On Sun, Jan 22, 2012 at 4:28 AM, shoaib saleem  wrote:

>
> Hi again ,
>
> ok what you can do is that the code which i wrote earlier , you can modify
> it a bit as follow
>
> *1. include Packet *p in the following function in aodv.h*
>
> void  rt_print(nsaddr_t node_id, Packet *p);
>
> *2.  In  aodv.cc   , in  **void  AODV::rt_print(nsaddr_t id, Packet* p ) *
>include the following structure
>
> struct hdr_cmn *ch = HDR_CMN(p);
>
> *include ch ->ptype() in the following line *
>
> fprintf (dumpFile, " NODE: %it %.4lft %it %it %it %it %it %.4lft %d \n",
> id, CURRENT_TIME, rt->rt_dst, rt->rt_nexthop, rt->rt_hops,
> rt->rt_seqno, rt->rt_expire, rt->rt_flags,*ch->ptype()*);
>
> *3.  Putrt_print(index,p);after the following lines in aodv.cc*
>
> if (ch->ptype() != PT_TCP && ch->ptype() != PT_ACK) {
> ch->size() += IP_HDR_LEN;
>
> }
> * rt_print(index,p);*
> *
> *
> *
> *
> *
> *
> *4.  Now make clean , make , sudo make install *
> *
> *
> *run your tcl script. you will have a rtable.txt file  with the following
> information. In ns-2.xx/common/packet.h file you have all types of packet
> defined in ns 2. Like for example, *
> *PT_TCP = 0 , PT_ AODV = 38 , PT_ACK = 5 . In rtable.txt , you have info
> about each node like in the first line , we have Node 0, sending 1st (1)
> PT_TCP packet = 0 at 13 sec .  Similary there two other packets PT_AODV =
> 38 and PT_ACK = 5 . *
>
>  NODE: 0  t 13.t 1t 0t 255t 0t 0t 0.t 0 n
>
>  NODE: 0   t 19.t 1t 0t 255t 0t 0t 0.t 0 n
>
>  NODE: 2   t 28.0059t 0t 0t 1t 14t 1t 38.0059t 38 n
>
>  NODE: 0   t 31.t 2t 2t 1t 6t 1t 34.0012t 0 n
>  NODE: 0   t 31.t 1t 0t 255t 0t 0t 0.t 0 n
>
>  NODE: 0   t 34.5030t 2t 2t 1t 10t 1t 44.5030t 38 n
>  NODE: 0   t 34.5030t 1t 0t 255t 0t 0t 0.t 38 n
>
>  NODE: 0   t 39.0149t 2t 2t 1t 10t 1t 44.5030t 38 n
>  NODE: 0   t 39.0149t 1t 2t 2t 6t 1t 49.0149t 38 n
>
> ..
> ..
> ..
> ..
> ..
> ..
> ..
>  NODE: 1t 149.9275t 0t 0t 1t 48t 1t 159.9153t 5
>  NODE: 0t 149.9293t 2t 2t 1t 60t 1t 150.5402t 0
>  NODE: 0t 149.9293t 1t 1t 1t 34t 1t 159.9172t 0
>  NODE: 0t 149.9315t 2t 2t 1t 60t 1t 150.5402t 0
>  NODE: 0t 149.9315t 1t 1t 1t 34t 1t 159.9293t 0
>  NODE: 1t 149.9414t 2t 0t 2t 60t 1t 150.5243t 5
>  NODE: 1t 149.9414t 0t 0t 1t 48t 1t 159.9275t 5
>  NODE: 1t 149.9513t 2t 0t 2t 60t 1t 150.5243t 5
>  NODE: 1t 149.9513t 0t 0t 1t 48t 1t 159.9414t 5
>  NODE: 1t 149.9614t 2t 0t 2t 60t 1t 150.5243t 5
>  NODE: 1t 149.9614t 0t 0t 1t 48t 1t 159.9513t 5
>  NODE: 0t 149.9632t 2t 2t 1t 60t 1t 150.5402t 0
>
> I hope this will help you a little to understand your problem
>
> Regards
> -- Forwarded message --
> From: Fatima Kader 
> Date: Sat, Jan 21, 2012 at 9:18 PM
> Subject:
> To: shoaib saleem 
>
>
> ok sir, i have understand you, but i need all this information for another
> pupose, so i want each node calculate the number of data received from
> another node, and count another packet also, that's why i want to define an
> activity table independant and maintained by each node
> thanks in advance
>
>
>
> --
> [image: http://www.etudinfo.com/image/logo-ecole/telecom-sudparis.jpg]
> Muhammad Shoaib SALEEM
> PhD Student
> Wireless Networks & Multimedia Services Department
> Institut Télécom - Télécom SudParis
> 9 Rue Charles Fourier 91011 Evry, France.
> Office: +33 1 60 76 43 91
> https://sites.google.com/site/shoaibsal/
>
> 
>


Re: [ns] how to print routing table

2012-01-22 Thread shoaib saleem

hi there ,

ok what i think you should do is to follow the codes i sent you earlier .
You can make necessary changes in it like i did to print the packet numbs
last time . Like now i print out the follwoing line .

 BLACK LISTED NODE: 0t 13.t 1t 0t 255t 0t 0t 0.t 0
 BLACK LISTED NODE: 0t 19.t 1t 0t 255t 0t 0t 0.t 0
 BLACK LISTED NODE: 2t 28.0059t 0t 0t 1t 14t 1t 38.0059t 38
 BLACK LISTED NODE: 0t 31.t 2t 2t 1t 6t 1t 34.0012t 0

I just printed BLACK LISTED NODE and nothing else .
No need for declaring a separate class for BLNs. It will make your work
more difficult . The clue is to make changes in the code i told you . Its
quite easy and obvious . you can do it . The clue is that you will print
only the BLNs only in the rtable.txt but for that you have to identify
them.


I hope you understand my point .

regards
On Sun, Jan 22, 2012 at 10:58 AM, shanmugha priya balasubramanian <
shanmughapri...@gmail.com> wrote:

> sir,
>
> blacklist means t node in this list should not be allowed  in network
> (i.e)
>  as u say do not want them to be displayed later in your trace file.
>
>  sir do i want to have a seperate blacklist class for maintaining
> malicious nodes
>
> Awaiting ur reply
> Shanmugha Priya
>
> On 1/22/12, shoaib saleem  wrote:
> > hello ,
> >
> > By black list , what does that mean ? . You do not want them to be
> > displayed later in your trace file or you want to have a an output file
> > which show only the list of those nodes with anomalous activities ?
> >
> > regards
> >
> > On Sun, Jan 22, 2012 at 4:53 AM, shanmugha priya balasubramanian <
> > shanmughapri...@gmail.com> wrote:
> >
> >> sir
> >>   u r correct, to count t originator of RREQ we can analyse the
> >> trace file but
> >>i can analyse trace file  only after the simulation ends na?
> >>i want to blacklist t nodes while simulation is running and
> >> not allowing them tosend t packets during the single simulation
> >> process
> >>
> >> i hope u can understand my doubt littile bit clear
> >>
> >>
> >> Awaiting ur reply
> >> Shanmugha Priya
> >>
> >>
> >>
> >>
> >>
> >>
> >> On 1/22/12, shoaib saleem  wrote:
> >> > hello ,
> >> >
> >> > your welcome. Well for all your questions i have one answer. Run a tcl
> >> > script file that generates a trace file . in that file, you will have
> >> > all
> >> > the information as far as my knowledge is soncerned about originator
> of
> >> the
> >> > RREQ packet. so there is no need for a counter. The node id descibes
> >> > whether ot not its the originator of the packet or not. for the
> >> > malicious
> >> > node , as i said earlier , set a frequency of sending packets bu
> >> defining a
> >> > max limit . Once all other nodes note that they are receving
> >> unnecessarily
> >> > no of packets either discard or drop these packets by identifying the
> >> node
> >> > id of such nodes .
> >> >
> >> > regards
> >> >
> >> > On Sat, Jan 21, 2012 at 6:12 PM, shanmugha priya balasubramanian <
> >> > shanmughapri...@gmail.com> wrote:
> >> >
> >> >> sir,
> >> >>
> >> >>   thank you for ur kind reply sir
> >> >>  u r correctly saying wat i was doing in my project i used tis bool
> >> >> variable and timer to send packets
> >> >>
> >> >> i want each node to check the neighbour in its own neighbour list and
> >> >> keep count of the RREQ send by each one of them and periodically
> check
> >> >> these RREQ_count of each one of them and if they exceeds put them in
> >> >> blacklist
> >> >>
> >> >>   1.my doubt is where to make the counting of RREQ
> >> >>
> >> >>   2.is ter any function through which i can get the address
> >> >> of RREQ originator  and not the forwarder ie who has want the
> >> >> route
> >> >>
> >> >>  3. shall i want to define a timer that periodically check
> >> >> these RREQ_count
> >> >>
> >> >>  4. is i want to create a blacklist class to note the
> malicious
> >> >> node
> >> >> so other nodes shall not forward the packets from
> >> >> these blacklisted node
> >> >>
> >> >>
> >> >> sorry for disturbing u sir
> >> >>
> >> >> Awaiting ur reply
> >> >> Shanmugha Priya
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> On 1/21/12, shoaib saleem  wrote:
> >> >> > Hello ,
> >> >> >
> >> >> > I guess in order to black list a node in a network, you first have
> to
> >> >> > declare malicious nodes  in your network and ask them to perform a
> >> task
> >> >> > (
> >> >> > like dropping of packets or generating and broadcasting those
> packets
> >> >> with
> >> >> > a Frequency parameter set to a small interval of time ).  So what
> you
> >> >> have
> >> >> > to do is to define a variable of type bool in the
> >> >> > aodv.h file where you are defining your routing agent and then in
> the
> >> >> > aodv.cc , in the constructor initialize that bool variable as
> false.
> >> >> >
> >> >> > Now i guess you have to insert an if statement in the int AODC ::
> >> comand
> >> >> ()
> 

Re: [ns] getting values from trace file during execution of tcl script

2012-01-22 Thread nut cracker


Hello!

You don't need to pull the data from the trace file, you can get it from the 
sender / receiver objects (like bytes_ variable in TCPSink and LossMonitor for 
received bytes). You can also use ns "at" function to schedule the logging. 
Here is an example for bytes received:

[code]
proc record {} {
global sink0

set ns [Simulator instance]
#Set the time after which the procedure should be called again
set time 0.5
#How many bytes have been received by the traffic sink?
set bw0 [$sink0 set bytes_]
#Get the current time
set now [$ns now]
#Output the current time and received bytes
puts "$now $bw0"
#You can reset bytes count to get only the bytes received from the previous log 
($now-$time)
#If you exclude the following line you will get all the bytes that were 
received from the simulation start up untill now
$sink0 set bytes_ 0
#Re-schedule the procedure
$ns at [expr $now+$time] "record"
}


#Start the record
$ns at 0.0 "record"
[/code]

(taken from some presentation and changed a bit, you can find these resources 
online, search for "recording throughput in ns")
 
So you basically have a function that recursively schedules its execution. 
Check the manual for the ways of getting the sent and received packets od the 
agent you are using, it should work. I'm currently using this method to log the 
used throughput of several TCP connections. I must admit, I have some 
unexpected results, like I have a time period when more packets are transmitted 
than a maximum throughput should allow. I must find the error.

Hope this helps.

Andrej


> Date: Sun, 22 Jan 2012 03:45:32 +0500
> From: zubi...@gmail.com
> To: ns-users@ISI.EDU
> Subject: [ns] getting values from trace file during execution of tcl script
> 
> 
> Hi,
> during execution of tcl script, is there some way to get values from trace
> file (e.g number of sent packets) after a specific time interval (e.g.3ms)?
> I need to write a function to count number of sent/received packets or
> bytes after every 2ms.
> 
> I hope many researchers are present at this platform so plz consider it and
> do reply me.
> 
> Thanks in advance
> 
> -- 
> Regards
  


[ns] CBQ/WRR for mobile nodes

2012-01-22 Thread m ali

Dear all ns-users

i run some codes of cbq/wrr for wired networks, it run fine, but when
i use it for wireless network and set IFQ as Queue/CBQ/WRR, simulation
at once terminate without any result.

how can i use cbq/wrr for wireless ad hoc networks

Regards
Moazzam



[ns] Implementation of CBQ/WRR in wireless network

2012-01-22 Thread m ali

Dear all ns-users

i run some codes of cbq/wrr for wired networks, it run fine, but when
i use it for wireless network and set IFQ as Queue/CBQ/WRR, simulation
at once terminate without any result.

how can i use cbq/wrr for wireless ad hoc networks

Regards
Moazzam



[ns] CFP-IST-AWSN, Ontario, Canada, August 27-29, 2012

2012-01-22 Thread Nadeem Javaid









Call For Papers (Apologies for multiple copies)

Intelligent System Techniques for Ad hoc and Wireless Sensor Networks 2012 
(IST-AWSN'12) 

will be held in conjunction with 
the 3rd International Conference on Ambient Systems, Networks and Technologies 
(ANT-2012) 
in Niagara Falls, Ontario, Canada, August 27-29, 2012.
 
Recent developments of low-cost, low-power, multifunctional wireless sensors 
have enabled the fast growth of 
Wireless Sensor Network (WSN) applications, which include security, military,
 agriculture, automation, environmental 
and habitat monitoring. WSNs consist of numerous small inexpensive battery 
powered sensors; each sensor has the 
capability to
 process and store the sensor data. A combination of the dense deployment of 
numerous smart sensors, 
AI techniques, and intelligent agents can provide continuous real-time 
monitoring that is precise, accurate, reliable, and inexpensive.
This symposium aims to bring together researchers and practitioners working on 
different aspects of wireless sensor networks and 
software agent technology in an effort to highlight the state-of-the-art and 
discuss the challenges and opportunities to explore 
new research directions. We strongly welcome submissions that include results 
which advance the state of the art relating 
to the theme of the symposium.

The main topics to be addressed include (but not limited to):
•    Adaptive agents in AWSN
•    Agent security and trust in AWSNs
•    Agent-based architectures for AWSNs
•    Agents design issues dealing with
 reliability, efficiency, and fault tolerance
•    Context and situation awareness
•    Database management systems for AWSNs
•    Distributed management systems for AWSNs
•    Future Internet of Things
•    Intelligent data fusion and aggregation
•    Intelligent query and data dissemination
•    Intelligent systems for AWSNs
•    Learning agents in AWSN
•    M2M communication protocols for sensors networks
•    Middleware for sensors network
•    Mobile agents in AWSNs
•    Monitoring agents in AWSNs
•    Peer-to-Peer systems for AWSNs
•    Power management and energy-efficient protocols
•    QoS, performance evaluation and
 simulation
•    Routing protocols for AWSNs
•    Safe transmissions of data in AWSNs
•    Self-organization of AWSNs
•    Sensors and actuators infrastructures for ubiquitous robotics applications
•    Sensors Knowledge Modeling and reasoning with Uncertainty
•    Smart energy-efficient routing protocols

Publication

Only original papers will be considered that have neither been published nor 
submitted for publication elsewhere, 
including web publication. All submissions  will be handled electronically. The 
length of the paper is limited to 6 pages. 
All papers will be reviewed by at least two independent reviewers.

Accepted papers will be printed in the conference proceedings published by 
Elsevier Science in the open-access 
Procedia Computer Science series
 (on-line and
 CD). Procedia Computer Sciences is hosted on www.Elsevier.com 
and on Elsevier content platform ScienceDirect (www.sciencedirect.com), and 
will be freely available worldwide. 
All papers in Procedia will also be indexed by Scopus (www.scopus.com) and 
Engineering Village (Ei) (www.engineeringvillage.com).

This includes EI Compendex (www.ei.org/compendex). The papers will contain 
linked references, XML versions and citable DOI numbers. You will be able to 
provide a hyperlink to all delegates and direct your conference website 
visitors to your proceedings.

Authors of high quality papers presented in the symposium will be invited to 
submit extended
 version of 
their papers for publication in international journal special issues.

Program Committee Chairs 
Karim Djouani, French South African Institute of Techology, Pretoria, South 
Africa 
Yskandar Hamam, ESIEE Paris, France 

Program Committee Co-Chairs 
Paolo Bellavista, DEIS - Università degli Studi di Bologna, Italy 
Joel Rodrigues , Institute for Telecommunications, University of Beira 
Interior, Portugal 

Publicity Chairs 
Anish Mathieu Kurien, Tshwane University of Technology, Pretoria, South Africa 
Chibani Abldeghani, University Paris Est, France 
Nadeem Javaid, COMSATS Institute of IT, Pakistan 


Steering Committee Chair 
Elhadi Shakshuki, Acadia University, Canada 

Program Committee Members 
Barend Jacobus van Wyk, Tshwane University of Technology, South Africa 
Kamel Barkaoui, CNAM-Paris, France 
Marie Noel Lepareux, Thales communication, France
Guy Pujolles, LIP6, University Paris 6, France
Jaime Lloret Mauri, Polytechnic University of Valencia, Spain
Johnson
 Agbinya, La
 Trobe University, Victoria, Australia
Onur Oguz, Comsis, France
Nathalie Mutton, INRIA, France
Lynda Mokdad, LACL, France
Yacine Amirat, University Paris Est, France
Jalel Ben Othmane, University Paris 13, France
Boubaker Daachi, University Paris Est-Creteil (UPEC), France 
Rahma ben Ayed, ENIT, Tunisia
Schahram Dustdar, Vienna University of 

[ns] how to measure load ...a node is experincing

2012-01-22 Thread itishi saxena

Hi All,

Cud anyone pls let me know, how to know load on a node in the the network?

Its urgent.
.Pls help


[ns] how to know load...a node is experincing

2012-01-22 Thread itishi saxena

Hi All,

Cud anyone pls let me know, how to know load on a node in the the network?

Its urgent.


Pls help