[ns] ns-2 on windows vista

2007-06-06 Thread Sidney Doria

I'm using cygwin 1.5.24 and ns-2  2.31 on Vista Home Premium. There
was no problem on installing it, but a few test have failed on
validation (as promessed in the tutorial).

I recomend you to use all-in-one package and install a full cygwin
(default installation does't install some packages needed).


Sidney Doria


2007/6/6, Karun Dambiec [EMAIL PROTECTED]:

 Hi,

 Im about to upgrade to Windows Vista if all my software is compatible.

 Has anybody used Cygwin and NS-2 on Vista? If you have, did you have any
 problems with it?



 Regards

 Karun Dambiec




--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] regarding installation of cygwin in windows XP

2007-06-18 Thread Sidney Doria

Geetha,

sometimes this issue happens with Cygwin setup. Try to unselect some
packages before install.

Sidney Doria

2007/6/18, Geetha [EMAIL PROTECTED]:

 Hello NS-Users,


 When I am trying to install cygwin in Windows XP I get the problem as
 /etc/postinstall/base-files-mketc.sh and it enters in the hang state
 only 99% have been successfully installed.


 If you could tell me where the error is it would of great help for me.



 Looking forward for ur reply,


 Thanking you

 with regards

 geetha




--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] How to work in eclipse for NS-2 new protocol.

2007-10-22 Thread Sidney Doria

Azim,

Eclipse TODO:

- install cygwin (as much complete as possible, to avoid more trouble);

- install ns in cygwin (don't forget the PATH, TCL_LIBRARY and
LD_LIBRARY_PATH stuff at the end of installation) and validate;

- install eclipse;

- make a new directory to your protocol in /ns-allinone-2.32/ns-2.32/

- open eclipse and create a project and the files of tutorial

- to complile, you MUST add (include) dirs like: ns-2.32. commom,
trace, etc. in the eclipse (look for a menu like
project/compiler/directories). so, lots of errors will gone in the
next compile turn.

- Take a look in compile errors to find more needed dirs to include
until last compile error has gone

Finally,

I have tried:

Vista + Cygwin +NS-2 + Eclipse

but the BEST is:

VirtualBox + Ubuntu 7.10 + NS-2 + Eclipse (or gedit and make)

With this last package everything runs smooth and easy.


Sidney Doria


2007/10/21, Azim [EMAIL PROTECTED]:

 Hi all,

 I am new in eclipse. I am using cygwin (g++) for compile and my ns-2.31 is
 in /usr/local directory.

 But I am not getting how can I write new protocol like ping.cpp in eclipse
 and compile NS-2.

 If anyone give me any idea, it would be very helpful for me.

 Regards
 Azim



-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] DNS simulation NS2

2007-10-22 Thread Sidney Doria

I'm not completely sure, but yes, you must implement it in C++ as an agent.

The good news are:

BIND is open source!

If you only need do something interacting with a working DNS you can
try EMULATE some nodes with a real network!

Hope to be useful,

Sidney Doria

2007/10/22, sura [EMAIL PROTECTED]:

 Hi,
 I want to simulate DNS resolving process using NS2. Is
 it possible to simulate such a thing or do i have to
 write separate C++ objects to implement it.



 Suranjith
 UCSC


 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com




-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] DNS Simulation

2007-11-09 Thread Sidney Doria

Two codes can help you, after the ns2 tutorials:

- bind (www.isc.org) (a real implemented DNS server)
- ~ns/webcache/*( an server application implemented on ns2)


Sidney Doria

2007/11/9, sura [EMAIL PROTECTED]:

 Can anyone help on creating DNS simulation using NS2.
 I want to implement it as a Agent.



 Suranjith
 UCSC


 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com




--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] Contribution to NS-2 (Puma multicast protocol)

2007-12-16 Thread Sidney Doria

Hi NS-2 all,

I'm proud to announce my contribution to you.
Puma is a next-generation multicast routing protocol for mobile ad hoc
networks concepted by Ravindra Vaishampayan at UCSC in 2004. It
outperforms that well know multicast protocols like MAODV and ODMRP.

This happens because Puma is a mesh based protocol and uses a unique
control packet called Multicast Announcemet for all mesh maintenance
routines. Puma doesn't use unicast for that (proved as a good choice).

I'm now delivering to you a free, open source, implementation of Puma for NS-2.
Be free to use and change, but as you know, keep our names  (Ravindra
first, me after) as original contributors, and all that thing of
rights protection :)
See LICENSE file for details.

There are a few enhancements TODO (see README file), but It's fully functional.

This is the link to the project on SourceForge
http://puma-adhoc.cvs.sourceforge.net/puma-adhoc/Puma/

Help is wanted* and comments are welcome.

* Specifically, I want to make a standard package for NS-2, with
testing, manual, example simulations etc. Just like another protocols.
Please, can someone help me with this?

Enjoy!

--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] INFO SHARE

2007-12-19 Thread Sidney Doria

Hi Veerayya,

looks obvious, but:

1.  You can consider hidden terminal problem
2.  Propagation? (a one-hop node that, in fact, is far way)

I choose the first problem. Try to reduce node numbers or spread them more.


Hope to be useful

Sidney Doria


2007/12/19, Mallapur Veerayya [EMAIL PROTECTED]:

 Hello Ns-users,

  Here I am sharing one of my experience with Ad-hoc simulations in
 NS-2.29, I would like know the reason for it.

  1. The broadcast packets not reach all one-hop neighbours
  2. Unicast packets does not reach the next hop

  The behaviour changes if the node position is changeg slightly.

  I have used TwoRayGround model as fading model and AODV as routing
 protocol

  If somebody has figured out why is this ? or is it a bug in NS-2 ?
 Please share the information to increase my knoledge..

  Thanks in advance

  Mallapur Veerayya
  M.Tech(CE) student
  Reg No. 06307416
  IIT BOMBAY




-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] New version of Puma available

2008-02-27 Thread Sidney Doria

Hi NS-2 all,

A new version of Puma protocol (a multicast routing protocol, more efficient
than MAODV) is now available at
http://sourceforge.net/projects/puma-adhoc.

*Now Puma for NS-2 is fully functional*

Be free to test it and make comments about any issue.

Hey you,
how can I integrate Puma into NS-2 (just like AODV, TORA etc.)?

Help wanted!

-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] Nodes not receiving broadcast message

2008-03-13 Thread Sidney Doria

Hi Mukaka and all,

 try to add this

 ch-direction()  = hdr_cmn::DOWN;
 ch-next_hop() = MAC_BROADCAST;

 Sidney Doria

 2008/3/12, Nur Aini Rakhmawati [EMAIL PROTECTED]:


   in my protocol code, the addr_type is NS_AF_INET
   I define the port number as well
   here is my broadcast code :
 
   http://nuraini.net/2007/09/16/unicast-and-broadcat-packet-on-ns2/
 
   it works for me :)
 
   ---
   Nur Aini Rakhmawati
   Touch the sky, Down to the earth
   http://nuraini.net/
 
   - Original Message 
   From: SS Mukaka [EMAIL PROTECTED]
   To: ns-users@ISI.EDU
   Sent: Tuesday, March 11, 2008 10:16:50 PM
   Subject: [ns] Nodes not receiving broadcast message
 
 
   I want to send a broadcast message to neighbours I'm having a problem
   because the nodes are not receiving the message if I put ih-daddr() =
   IP_BROADCAST;
   I have tested it by putting ih-daddr() = 1; and it worked... ie. node 1 was
   able to receive the message.. Below is my code for sending and also for
   receiving
 
   void ReQuest::sendREQUEST()
   {
 
Packet* p = Packet::alloc();
struct hdr_cmn* ch = HDR_CMN(p);
struct hdr_ip* ih = HDR_IP(p);
struct hdr_MyPacket* ah = HDR_MyPacket(p);
ch-size() = IP_HDR_LEN + ah-size();
ch-addr_type() = NS_AF_NONE;
 
ih-daddr() = IP_BROADCAST;
ih-saddr() = index;
ah-MyPacket_type = ReQ;
Scheduler::instance().schedule(target_, p, 0.0);
   }
 
   My receive function is as follows:
 
   void ReQuest::recv(Packet* p, Handler*)
   {
struct hdr_cmn* ch = HDR_CMN(p);
struct hdr_ip* ih = HDR_IP(p);
struct hdr_MyPacket* ah = HDR_MyPacket(p);
nsaddr_t src = ih-saddr();
printf(Node %d receiving data packet from %d \n, index, src);
 
   // processing packet
   }
 
   like i said,  nodes can only receive messages if i put the IP address of the
   receipient but when i use IP_BROADCAST, nothing is received...
 
   Thank you in advance
 
 
 
 
 
 

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



--
 Sidney Doria
 Redes ad hoc móveis
 Mestrado em Computação
 UFCG
 Brasil

 Nessa jornada, o conhecimento será o seu escudo...
 (Mestre dos Magos no episódio do grimoire de ouro)



[ns] Application Layer Payload Transfer

2008-04-24 Thread Sidney Doria

Hi NS all,

 We know that NS-2 Transport API to Application layer does not provide
 a payload transfer.

 In NS, Transport only tells to the application: hey, a packet with
 nbytes has arrived. But no data is transfered to the app.
 I'm using UDP and I need the payload to simulate well my application's
 behaviour.

 *** How did you, hard core people, circunvent this issue?

 And...
 Why NS2 does not provide this?!

 --
 Sidney Doria
 Redes ad hoc móveis
 Mestrado em Computação
 UFCG
 Brasil

 Nessa jornada, o conhecimento será o seu escudo...
 (Mestre dos Magos no episódio do grimoire de ouro)



[ns] Ask Google is not a polished answer, isn't it?

2008-04-25 Thread Sidney Doria

Herr Hagen Pfeifer,

 NS2 is not easy to novice. It's normal that novice people be confusing
 with some questions and concepts, even network concepts. After months
 same people that have asked a foo question are now secure, with strong
 skills and helping another novices with their new foo questions.

 I was a novice in past, with foo questions and now a I'm a non-novice
 with less foo questions. My first multicast routing protocol for
 MANETs is done! Great! Thanks to people that have patience to respond
 my foo questions with courtesy.

 Don't do that with NS2 people. NS2 is hard enough.

 PS.: I'm not talking about your answers to me. I don't care.

 --


Sidney Doria
 Redes ad hoc móveis
 Mestrado em Computação
 UFCG
 Brasil

 Nessa jornada, o conhecimento será o seu escudo...
 (Mestre dos Magos no episódio do grimoire de ouro)



-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] New PUMA version

2008-04-25 Thread Sidney Doria

Hi NS-all,

I've just uploaded a new version of Puma to sourceforge at
sourceforge.net/projects/puma-adhoc. Now puma.zip has a .tcl and
scenario files.

Puma is a multicast routing protocol more efficient than MAODV and
ODMRP. Puma was designed by Ravindra Vaishampayan and implemented by
me on NS-2.

Enjoy.

-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] Application Layer Payload Transfer

2008-04-26 Thread Sidney Doria

Herr Hagen Pfeifer,

NS2 is not easy to novice. It's normal that novice people be confusing
with some questions and concepts, even network concepts. After months
same people that have asked a foo question are now secure, with strong
skills and helping another novices with their new foo questions.

I was a novice in past, with foo questions and now a I'm a non-novice
with less foo questions. My first multicast routing protocol for
MANETs is done! Great! Thanks to people that have patience to respond
my foo questions with courtesy.

Don't do that with NS2 people. NS2 is hard enough.

PS.: I'm not talking about your answers to me. I don't care.

-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] List of Wireless Routing Protocols in ns-2?

2008-05-05 Thread Sidney Doria

TORA, DSR, DSDV and AODV are fully integrated in NS-2. They have
documentation, examples, instalation tests etc.

You can found contributed code here:

http://nsnam.isi.edu/nsnam/index.php/Contributed_Code


Sidney Doria

2008/5/6 Michael Nye [EMAIL PROTECTED]:

  Hi All,

  I am just interested to know if anyone has a list of wireless routing
  protocols that have been implemented in ns-2, and locations where they
  can be downloaded from?

  Thanks,

  Michael.





-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] NS 2.33 on Ubuntu 8.04

2008-05-07 Thread Sidney Doria

Hi all,

 after install the same packages needed by Ubuntu 7.10, NS2.33 was
 succefully compiled on Ubuntu 8.04.

 However, I got some failed tests. Anybody else had same test errors?

 TESTS FAILED:
 ./test-all-full ./test-all-diffusion3 ./test-all-pi ./test-all-cbq

 --
 Sidney Doria
 Redes ad hoc móveis
 Mestrado em Computação
 UFCG
 Brasil

 Nessa jornada, o conhecimento será o seu escudo...
 (Mestre dos Magos no episódio do grimoire de ouro)



[ns] TCL commands

2008-05-12 Thread Sidney Doria

Hi,

I suppose this can be very easy, but after read the chapter 3 of ns-2 manual:

how to call a TCL command from C++ code?

For instance, I use many commands in .TCL code, just like:

$ns_ at 0.10 $node_(0) join 0xE00

*** How can I do a join 0xE00 from the node (using C++)?  ***


I would like to instruct the node (myself) to join in a multicast
group. This call will be done by
an APP attached to the node, but the join will be done by a routing
agent (attached to the same node).

-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] How I distinguish a packet in queue is a multicast packet?

2008-05-17 Thread Sidney Doria

If you can access the packet header, a packet is a multicast packet if

#define MULTICAST_ADDRESS 0xE00

p-daddr() = MULTICAST_ADDRESS


Take a look in MAODV code for ns2. It uses this definition in recv() function


Sidney Doria

2008/5/17 王远征 [EMAIL PROTECTED]:


 Hi, all:
I'm implementing a multicast-related router-protocol. When a packet
 enques, I need to determine whether it's a multicast packet. how can I do?


   Best regards.
   Yuanzheng, Wang











--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] UDP Port

2008-05-23 Thread Sidney Doria

Hi all,

why UDP.cc doesn't care about dport() information on each packet it sends? The
problem is: A packet send by an app, using UDP, arrives in network
layer without port information (value: -1) . This happen even if you
set dst_port_
just when you create the udp object in a .tcl file. In fact, the udp.cc code
doesn't care about destination port of sent packets.

Why? This is a bug?

--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] A good FAQ

2008-10-12 Thread Sidney Doria

Hi NS-2 people,

This is a useful FAQ about NS-2:

http://web.syr.edu/~dchen02/FAQ.txt

I propose to include all QA in the NS-2 Wiki.

--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] A good FAQ

2008-10-14 Thread Sidney Doria

Thomas,

The problem of UID invalid is always the same one: a null pointer.

You must debug your program with Eclipse.

Ask google for Eclipse + debug + ns-2.

You will find some tutorials to debug an ns-2 protocol on Eclipse.

Okay, you must know for now:

if you is sending a packet to transport layer, transport will
dealocate your packet, so send a copy of the packet with copy()
method. Use:

Packet p* = new Packet();

send(p-copy()); // hey transport, take a copy of my packet to process
it! Now I will forward the original one!

If your packet is a new type of packet (a special one) you must
implement a correct copy method to the attributes of your new packet.
So the copy will proceed okay.

After all, debug is THE ORACLE.

Sidney Doria
Brazil

2008/10/15 dias thomas [EMAIL PROTECTED]:
 Hi Doria

 I have some serious problems in my simulation
 When i simulate my routing protocol after second broadcast i get an error
 scheduler event UID not valid
 I tried out all tips given by varios users like freeing and reallocating new
 packet, checking timers, the modifications in scheduler timer.cc etc but the
 error still comes.

 there is some event which is not getting ecxecuted and giving a positive UID

 Pls help me, secondly how to which event is creating this problem.

 thanks


 On 10/12/08, Sidney Doria [EMAIL PROTECTED] wrote:

 Hi NS-2 people,

 This is a useful FAQ about NS-2:

 http://web.syr.edu/~dchen02/FAQ.txt

 I propose to include all QA in the NS-2 Wiki.

 --
 Sidney Doria
 Redes ad hoc móveis
 Mestrado em Computação
 UFCG
 Brasil

 Nessa jornada, o conhecimento será o seu escudo...
 (Mestre dos Magos no episódio do grimoire de ouro)




 --
 Sqn Ldr P Dias Thomasinous
 Information Technology
 IIT Kharagpur
 721203
 Mobile No 9734405296



--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] some of DSR parameters

2008-10-26 Thread Sidney Doria

Ok Dasha,

NS-2 requires lots of time! You'll get a good expertise in a year or more.

DSR is a routing protocol. Inside DSR (like every routing protocol in
NS-2) you'll find a function recv(). recv() is the one which lower
layers will call to pass packets. So, when a packet arrives, it goes
layer-by-layer, recv()-by-recv(), until arrives DSR recv() at network
layer.

You must read DSR code and learn how DSR treat all income packets.
You'll find where DSR do packet forwarding. So you can change the code
to allow only 2 hops fowarding.

In a wireless tcl file you can specify radio range. Take a look in
wireless examples in ~ns/tcl/ex folder.

Sidney Doria
UFCG / Brazil


2008/10/26 Dasha Stepanova [EMAIL PROTECTED]:

 Dear ns-users,

 I am new user of ns-2. I am doing a simulation using dsr routing protocols. 
 Now I have several problems with my ns-scenario. I need somehow change range 
 of nodes from 250m to 500m. I found a few ways how to do this but no one is 
 clear for me.
 Other problem how to define number of ad hoc hops, it should be 2 in my 
 case.

 Thank you in advance
 Dasha





-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] about Application Layer Payload Transfer in NS2

2008-10-27 Thread Sidney Doria

Yes, of course.

You must remember that a packet is a pointer to an object in NS-2 (C++).

You can create a new type of packet. A customized one. A, say, ZhangPacket.

So you must teach your new packet what special data It will carry
and you must notify NS-2 how to deal with It.

For that, you must inherit from Packet class to ZhangPacket child
class. I suppose that ZhangPacket carries buffers, variables,
information in general (whenever you want).

In your program, you must call a function from the transport agent
called send(), like this:

---
void
MYPROGRAM::send(int nbytes, AppData* data) {
   agent_-send(nbytes, data);
}
---

this function receives a type AppData*. Why? All packets carry
AppData*. Your ZhangPacket will carry ZhangData* (this is what you
want to carry on inside your packets, your payload).

So, you can pass a ZhangData to a function which received AppData
(because inherit properties).

At the other side, your program in another node, can receive from
transport the pointer to a ZhangPacket and open it. So you will
process a ZhangData* and voilà.

Transport will call a function from app, called process_data().

Let's see an example:


void
MYPROGRAM::process_data(int nbytes, AppData* data) {
   if ((data == NULL) || (data-type() != ZHANG_DATA) ||
   (((ZHANGData*)data)-bits() == NULL))
   return;
   char* buffer = ((ZHANGData*)data)-bits();
   switch (((ZHANGData*)data)-cmdType()) {
   case ZHANG_DATA_1:
   processZhangData1(buffer);
   break;
   case ZHANG_DATA_2:
   processZhangData2(buffer);
   break;
   }
}
-

You MUST declare all new data types and all new packet types.

Take a look in manual. Look for App layer. This section show us how to
create them.

A critical point is: Remember to allocate and deallocate your payload!
Pointers aren't data! They (believe to) point to allocated data.

Sidney Doria
Brazil



2008/10/24 Zhang Shangying [EMAIL PROTECTED]:
 Dear Sidney Doria,

 Sorry to bother you!

I know you from the ns-users list.Can you kindly tell me how to perform
 Application Layer Payload Transfer in NS2?  some piece of code or links
 where I can study it would be wonderful for me. I appreciate your help very
 much.

Thanks in advances!

Best regards,

Shangying Zhang




--
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] assigning IP address to nodes

2008-11-05 Thread Sidney Doria

The best of NS-2 is its flexibility. If you didn't find a trivial
solution to assign a simple IP to a node, you can add a new attribute
to an inherited class of node. You can simply bind this new attribute
in your TCL script and assign what IP you want on the node you want.

The new atrribute can be of type nsaddr_t (IP address).

Hope to be useful,

Sidney Doria
Brazil

2008/11/5 Marlos Marques [EMAIL PROTECTED]:

 Hello all,

 Currently, I am trying to implement an application layer multicast algorithm
 using NS2. For this purpose I need to assign IP address to every node in
 NS2. I checked out the NS2 nodes may have hierarchical routing addressing
 which is similar to IP addressing. But, I also found the addr command
 which apparently allows you to configure the node IP, so I can run the
 following code:

 set ns [new Simulator]
 set n0 [$ns node]
 set n1 [$ns node]
 $n0 addr 192.168.1.1
 $n1 addr 192.168.1.2

 But in the trace file I keep getting sequential identifiers. For example:

 + 0 1 2 tcp 40 --- 2 1.0 5.0 0 0

 But I would like to get this one:

 + 0 192.168.1.1 192.168.1.2 tcp 40 --- 2 1.0 5.0 0 0

 What am I doing wrong?


 Thanks in advance,
 Marlos




-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] Wireless Link @ 2 Mbps

2008-11-13 Thread Sidney Doria

I don't know who exactly ask it, but the way to set wireless link speed is here:

Your TCL file:
(...)
$ns_ node-config -adhocRouting PROTOCOL \
  -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

Mac/802_11 set PLCPDataRate_  2.0e6   ;# 2Mbps
(...)

-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] How to print out Multicast Group IP address in MAODV?

2008-11-21 Thread Sidney Doria

This integer (234881024) is the first multicast address (hex) Ex00.

So, that's correct.

:)

Sidney Doria
Brazil

2008/11/21 Noor Asraf [EMAIL PROTECTED]:

 Hello everyone,
 In MAODV, the variable mt_dst of type nsaddr_t is supposed to hold the
 multicast group IP address. I am referring to aodv_mtable.h of the
 multicst extension for AODV provided by Thomas Kunz and Yufang Zhou. I
 use the following printf:
 for(mt=mtable.head();mt;mt=mt-mt_link.le_next) {
fprintf(outfile, %i\t, mt_dst);
 }
 But the output is only 234881024 throughout the route table entries.
 Is there somehtign I am missibng in printing out the output of this
 variable? Or if I just want to know the destination IP of the group
 what do I do?

 Thanks,
 Asraf





-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] Problem with NS2 installation

2008-11-24 Thread Sidney Doria

Hi,

obviously this NS isn't the simulator. Use which command to locate
where is the command NS:

which ns

the output must be a path to that ns executable.

This will help you to find this alien NS.

Anyway, you must put the correct path to NS (simulator) in your PATH variable.

Ask google for a tutorial about how to change PATH variable in Linux. It's easy.

Put the folder of NS in first place, so when you type NS, the correct
NS will be executed.

Sidney Doria
Brazil

2008/11/24 rtluser [EMAIL PROTECTED]:


 Hi,
 Im a totaly newbie on linux and a couple a days ago i installed ubuntu in
 order to use ns2 (Network simulator)

 I used a the tutorials i found on the net,and didn't get any errors during
 the installation.
 When i wrote 'ns' in the terminal i get this :

 Usage: host [-v] [-a] [-t querytype] [options] name [server]
 Listing: host [-v] [-a] [-t querytype] [options] -l zone [server]
 Hostcount: host [-v] [options] -H [-D] [-E] [-G] zone
 Check soa: host [-v] [options] -C zone
 Addrcheck: host [-v] [options] -A host
 Listing options: [-L level] [-S] [-A] [-p] [-P prefserver] [-N skipzone]
 Common options: [-d] [-f|-F file] [-I chars] [-i|-n] [-q] [-Q] [-T] [-Z]
 Other options: [-c class] [-e] [-m] [-o] [-r] [-R] [-s secs] [-u] [-w]
 Special options: [-O srcaddr] [-j minport] [-J maxport]
 Extended usage: [-x [name ...]]  server [name ...]]

 The guide says i should see a '%' instead of '$'...

 When i try to run a tcl file using the command 'ns example1.tcl'
 I got this :
 Nameserver not running
 example1.tcl NS record not found, try again

 Did you come up with this problem?

 Thanks in advance'
 Avi

 P.S sorry for my english


 --
 View this message in context: 
 http://www.nabble.com/Problem-with-NS2-installation-tp20665635p20665635.html
 Sent from the ns-users mailing list archive at Nabble.com.





-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] ns-2 installation problem

2008-12-15 Thread Sidney Doria

Hi,

you must install a (more) complete Cygwin to solve this.

But a better better way to use NS-2 in Windows is install it on a
Virtual Machine with Linux.

I use virtualbox (virtualbox.org)
Ubuntu 8.10 32-bit (ubuntu.com)
NS-2 [newer] (http://sourceforge.net/projects/nsnam)

After download and install virtualbox, create a VM for Ubuntu.

Download and use Ubuntu 8.10 ISO image to mount a CD inside the VM
(this is easy with virtualbox)

Install Ubuntu.

From the firefox inside Ubuntu, download NS-2 inside the VM.

Install NS-2.
ALERT! To install NS-2 on Ubuntu, you must use those commands before
(install some packs):

sudo aptitude install build-essential autoconf automake libxmu-dev

I promess you, after this step, NS-2 will install and work smoothly forever!

Follow the installation messages of NS-2.


Sidney Doria
UFCG / BRAZIL



2008/12/15 Bello Lawal lawalimor...@yahoo.com:

 Hello,



 i try to install ns in windows vista but it gives me the following error 
 messege. Pls. who can help me out.



 The messege is



 ''Checking for gcc... NO!

 package gcc is not present in your system.

 Please install it using Cygwin's  setup.exe before

 trying to install the ns-2 distribution''



 Finally, i try it using Cygwin but it couldn't  work.



 Thanks.













-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] how can i change the pause time parameters?

2009-01-06 Thread Sidney Doria

I was just questioning: Will that guy say: hey, this is the same answer!?

I tell you: It is not. Read your text and you'll see how rude It was.

I helped him. Twice. And I'm here to help him many more times, to
answer many more questions (if I know the answer).

I will not read your message because probably it doesn't matter. This ends here.

You come from a excelent country, with good schools, and have an well
known, incredible, knowledge of the inside NS-2 and NS-3. So, you can
help people more than anyone.

Please, realize that many students in here had a quarter of your
opportunities. What they need is incentive.

I propose you forget about it, remove the checking for intelligent
life... not found from your email sign, and help us.

Sidney Doria

UFCG / BRAZIL


2009/1/6 Hagen Paul Pfeifer ha...@jauu.net:
 * Sidney Doria | 2009-01-06 20:19:16 [-0300]:


Ok, the answers are here, but I suggest you to google it a bit more! :)

 ;-) that was that what I told you some months ago! OK, a little bit more
 unkindly (but that was not my suggestion). But you see, a lot of questions
 here are superfluous and a google search is much more effective as to post
 here (this belongs to a big part of all questions here).

 Anyway, I must smile on myself where I read your sentence! ;-)


 Best regards and have a nice week!

 Hagen


 --
 [...]
 checking for intelligent life... not found
 [...]
 [aus 'configure' von GIMP-1.2.2]





-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] File transfer protocol for 802.11

2009-01-10 Thread Sidney Doria

Peter,

a lot!

Event bittorrent is already an alternative to content distribution in MANETs.

In a general way, TCP isn't so good to MANETs because the overhead in
handshakes and the well-known problem of delays and packet loss be
interpreted by TCP as congestion. So, TCP will reduce the next window
to avoid the supposed congestion.

Recently, my work was develop a multicast content distribution
protocol to MANETs. I used UDP and the results were good. It'll apear
in IEEE WCNC (in April). I'll add It to the contribution section of
NS-2 Wiki. Take a look in there to see what is already avaiable.

Sidney Doria

UFCG / BRAZIL

2009/1/10 Peter Staab pixst...@gmx.net:

 Hello,

 This is not a ns-2 specific question but it relates to my work with ns-2: 
 which protocol is best for transfering files in wireless 802.11 networks (in 
 ad-hoc mode)?
 I already considered pure FTP or UFTP (UDP FTP). Are there alternative 
 protocols out there?

 Sincerely,
 Peter
 --
 Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL
 für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a





-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] ns-2.33 Scheduler loosing events

2009-01-19 Thread Sidney Doria

Scheduler uses a simple ordered linked list to store events. You must consider:

- memory limits;
- invalid pointers (you cannot add an invalid pointer or dealocate it
before scheduler remove it from the list);

Invalid pointers are the main problem with scheduler. Beyond these
concerns, I suggest you debug with eclipse and gbd.

Sidney Doria
UFCG / BRAZIL



2009/1/19 Nicholas Loulloudes loulloude...@cs.ucy.ac.cy:


 Hi all,

 Is it possible the ns-2.33 scheduler is losing events?

 I generated aprox. 7000 events in a TCL source file and a lot of those
 events when given to the scheduler are lost.

 This is a code snippet:

 void ProtName::create_Pkt(Packet* p){
 /*
 * Create a packet with source and destination header
 */

 // Schedule it for later Transmission
 Scheduler::instance().schedule(target_, p2, 0.0);
 }

 Using printf's i can see the Scheduler correctly receives the packet,
 but later on there is no other trace of it.

 Any suggestions? Is there a limit to the events the scheduler  can handle?

 Thanks in advance.


 --
 _

 Nicholas Loulloudes
 High Performance Computing Systems Laboratory (HPCL)
 University of Cyprus,
 Nicosia, Cyprus

 Tel:  +357-22892663
 Email: loulloudes.n[at]cs.ucy.ac.cy






-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] accessing vaiable of c++

2009-01-19 Thread Sidney Doria

You must BIND a variable to use it in both sides.

Read the specific chapter for this in the NS-2 manual, or take a look
in a real example here:
http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf

Sidney Doria
UFCG / BRAZIL

2009/1/19 neeraj  gupta neerajgupt...@rediffmail.com:


 hi all

   how can i access the variable in c++ in tcl script. Also if change the code 
 in c++ to print the value of variable where that value will be printed.


 Neeraj Gupta
 Assistant Professor
 HOD, CSE  IT Department
 Hindu College of Engineering
 Sonepat




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] How can I send variable sized packet, and measure the size ?

2009-01-19 Thread Sidney Doria

OK,

I suppose a wired network (if you want to do this in a wireless net,
read this tutorial:
http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf).

Any node receives a packet in the network layer by a method called RECV().

recv() decides what to do with the received packet. So the main
parameter is the packet pointer itself. It reads the headers and
decides discard that packet, forward it or send to upper layers. This
is what a routing protocol does. In a choosed protocol, in the code
fragment where It decides to forward a packet, change the code and add
your packet manipulation.

Sidney Doria
UFCG / BRAZIL


2009/1/19 Daehee Kim dahki...@gmail.com:
 Hi, Sidney

 Yes..

 Danny

 2009/1/18 Sidney Doria ssdo...@gmail.com

 You mean the packet size (and content) may be increased or decreased
 in a forwarder node?

 Sidney Doria
 UFCG / Brazil

 2009/1/18 Daehee Kim dahki...@gmail.com:
 
  Hi everyone.
 
  I want to send a packet which has variable size on the way to a
  destination.
 
  That is, the packet size when it starts from a source node will be
  different
  from when it is at one of forwarded nodes. ;
  the packet size is varied.
 
  How can I implement variable sized packet ? Also, How can I measure the
  size
  of the packet at any time ?
 
  Thanks
  Danny
 
  --
  DaeHee(Danny) Kim
  Department of Electrical Engineering and Computer Science(EECS), Wichita
  State University
  email-address : dxk...@wichita.edu, dahki...@gmail.com
 



 --
 Sidney Doria
 Redes ad hoc móveis
 Doutorado em Computação
 UFCG
 Brasil

 Nessa jornada, o conhecimento será o seu escudo...
 (Mestre dos Magos no episódio do grimoire de ouro)



 --
 DaeHee(Danny) Kim
 Department of Electrical Engineering and Computer Science(EECS), Wichita
 State University
 Cell Phone : 1-607-321-9574
 email-address : dxk...@wichita.edu, dahki...@gmail.com




--
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] how to implement a buffer

2009-02-06 Thread Sidney Doria

My implementation of PUMA protocol has this functionality. Take a look
in the Class MessageCache. You can download the code at:

sourceforge.net/projects/puma-adhoc

Sidney Doria
UFCG / BRAZIL



2009/2/6 sai krishna gumudavally saikris...@gmail.com:

 Hello,
I'm working on a project where i need to store (I even need to sort
 them according to seq no in the buffer) all the packets received by a node
 and manipulate them before forwarding .I need to know how a buffer is
 implemented at a node.Please anyone help me.



 Thanks,
 Saikrishna




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] Scheduler: Event UID not valid!

2009-03-11 Thread Sidney Doria

A good answer is here:

http://web.syr.edu/~dchen02/FAQ.txt

QUESTION 1.

Sidney Doria
UFCG / BRAZIl



2009/3/11 Spyros Marinis spyros_...@yahoo.gr:

 Hi all!
 I use ns-2.33 and I am running a simulation for wireless sctp.
 However the simulation stops at the very beginning, and it shows:
 Scheduler: Event UID not valid!
 I have read some older posts here about this, but they are all, as well as 
 the proposed solutions, for older versions of ns, and some of the changes 
 indicated are already on ns-2.33.
 Can anyone help me and guide me what to do?
 Thank you very much in advance. Any help will be appreciated,
 Spyros





 ___
 Χρησιμοποιείτε Yahoo!;
 Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail
 διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών
 μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] How to send a message from one node to another node (i.e. to send an integer value)

2009-03-13 Thread Sidney Doria

Gaddam,

this is the FIRST BASIC step when you learning NS-2. You can find lots
of information about this, here:

- asking google;
- reading NS-2 manual;
- tutorials in the NS-2 wiki;
- on the book Introduction to Network Simulator NS-2.

But we know how difficult are the first steps! So, this tutorial can
help with scripts (in OTcl) or how to code (in C++) to send and
receive packets in NS-2:

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

That tutorial is for WIRELESS networks. If you want for Wired
networks, I suggest you the Marc Greiss's tutorial (Section IV):

http://www.isi.edu/nsnam/ns/tutorial/


Sidney Doria
UFCG / BRAZIL


2009/3/13 muralikrishna g muralikrishn...@gmail.com:

 hi to all..

 i am using ns-2.33, here i have to send a message (i.e. to send an
 integer value) from one node to another node, is it possible in tcl
 script itself.. or i have to go for c++

 please help me regarding this,

 by

 Muralikrishna Gaddam (muralikrishn...@gmail.com)





-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] how to improve maodv

2009-04-13 Thread Sidney Doria

This is a difficult problem.

The origin TCP problems in MANETs (with any routing protocol,
multicast or not) is the interpretation of facts by TCP. TCP has the
sliding windows technology which reduces the amount of data sent to
the destination each time it not receives ACKs as expected. So, in a
wireless network there are frequent collisions and packet losses by
the nature of the transmission, and TCP interprets them as congestion,
reducing the sliding windows (and the performance).

Nitin Vaidya wrote a classic paper about this problem. I suggest you
read this paper, so you must give some inspiration.

Sidney Doria
UFCG / BRAZIL


 2009/4/13 vaishali mandhare v_mandh...@yahoo.com:

 Hi all,
 I am m-tech. student and doing my project in ad-hoc routing.I was implement=
 ed one paperperformance comparision of tcp and cbr in maodv.I want to imp=
 rove or extend maodv which affect the perfomance of tcp and cbr, but i cant=
 know which technique exist and which i use.Please help me regarding this .=
 Waiting for your valuable replay.

 vaishu


      Add more friends to your messenger and enjoy! Go to 
 http://messenger.yahoo.com/invite/




 --
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] How to add a new or modify existing protocols in NS2.32]

2009-04-26 Thread Sidney Doria

Yeah. And if you want to add a new wireless protocol, you must see
this tutorial:

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


Sidney Doria
UFCG / BRAZIL


2009/4/26 Gisane Michelon gisan...@gmail.com:


 You should read the topics VII A new protocol for ns
 http://www.isi.edu/nsnam/ns/tutorial/ and I am sending a file about
 this.

 Ane





-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] odmrp implementation

2009-07-14 Thread Sidney Doria

This way to configure a protocol of a node seems to be depracated.

:(

Sidney Doria
UFCG / BRAZIL

2009/7/14 kundavi kundav...@gmail.com:

 Hi,

 I downloaded Monarch's wireless multicast extension (ODMRP/ADMR) and
 successfully integrated it with ns-2.1b8a. But I got the following error
 when I run an ODMRP simulation:

 invalid command name Agent/RTRAgent

 while executing

 Agent/RTRAgent set sport_ 255

 

 .plz do help me

 with regards,

 sangeetha.k




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] How to send, reliably, a real payload on MANET and prevent ns2 from dropping application 's packets ?!!!!!!!

2010-01-16 Thread Sidney Doria

The abstraction of Packet have a (unused) pointer to a possible
payload (APPDATA). You may allocate memory and put the real data
structure there. I suggest you use a header variable in the packet
(you must create a new packet type for this) to bring the pointer to
the real data payload), or something like that. So the packet will
carry the payload with it.


Sidney Doria
UFCG / BRAZIL

2010/1/14 adel belkhiri adel.belkh...@hotmail.com:










 Hi dear ns-users,

        As I know, the NS-2 Transport API to Application layer does not provide
 a payload transfer. In NS, Transport only tells to the application: hey, 
 there is a packet with
 nbytes that has arrived. But no data is transfered to the app. I want to 
 simulate an application
 (Certification authority) attitude over Manet network and I need the payload 
 of this application
 to be sent through TCP to simulate well my application's behavior. How can do 
 this please ?! Are
 there a transport protocol (a variant of TCP for example) which can make a 
 reliable tranfer of a
 real payload ?! or are there a way to prevent ns2 from dropping my 
 application 's packets even
 without using a transport protocol ?

 Thank you very much for answering my question.


 with regards,
 Adel Belkhiri.

 _
 Keep your friends updated—even when you’re not signed in.
 http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010



-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] In which layer , packets aggregation from different nodes can done in wireless networks

2010-01-16 Thread Sidney Doria

You CAN (be able to) update any layer in NS-2. But for me this must be
an APP. You may (choice) create a new APP and load in each node. Pass
an information (variable) to each node in your new APP to inform if
it's a regular node, a sink or a collector. Good luck.

Sidney Doria
UFCG / BRAZIL

2010/1/13 Jyotirmoy Karjee jyotirmoy.infosecur...@gmail.com:

 Dear All,

 i have some doubt in simulation point of view(say ns2)

 suppose i have wireless topology , where many nodes(say n1 ,n2.nn)
 collects data packets and aggregate all the data in a single aggregation
 node (say Agg.Node)and finally passes the data in the sink node.

     My question is in which layer (whether in mac layer, network layer or
 Application layer), I can update the simulation code( ns2) for packets
 aggregation in Agg.node for wireless networks .



     with regards
     Jyotirmoy




--
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] Required ODMRP, AMRoute, AMRIS, CAMP code for NS2

2010-01-20 Thread Sidney Doria

http://nsnam.isi.edu/nsnam/index.php/Contributed_Code#Multicast

Sidney Doria
UFCG / BRAZIL

2010/1/21 soni sunilson...@gmail.com:

 Dear Sir/Madam
                            I am Sunil Soni Research scholar from Punjab
 Technical University India I require NS2 Implemented code of multicast
 routing protocols Like ODMRP,AMRoute,AMRIS, CAMP etc

 I shall be very thank full to yours

 --
 Thanks  Regards:

 
 Sunil Kumar Soni
 Asstt.Prof. - Deptt. of Computer Science
 Email: sunilson...@gmail.com
 Phone: +91-98725-00787
 Fax: +91-172-5094173
 www.sasiitmohali.com
 




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] NS-2 eclipse debug

2010-01-25 Thread Sidney Doria

Debug the entire simulator as a unique c++ program (with your code inside it).

take a look:

http://wcms1.rz.tu-ilmenau.de/fakia/NS2-for-Eclipse.6025.0.html
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging.html

Sidney Doria
UFCG / BRAZIL


2010/1/25 Arash Malekzadeh aras...@gmail.com:

 Hello,

 I was wondering if anyone has used eclipse to debug NS-2. I cannot figure
 out how you can startup a tcl script as you would with linux gdb ( run
 ex1.tcl ). Is there a command to type after starting the debugger ?

 Thanks,




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] NS-2 eclipse debug

2010-01-25 Thread Sidney Doria

Ok, are you using linux or cygwin? gdb in cygwin doesn't work. Linux okay.

Did you enable symbols? this step is imperative and you must recompile
entire ns-2 with symbols to visualize all step-by-step.

Sidney Doria
UFCG / BRAZIL

2010/1/25 Arash Malekzadeh aras...@gmail.com:
 Thank you for your reply Sidney,
 I have it all setup and I'm running the entire code in Eclipse. I have my
 tcl script as an argument in Run configuration. When I run the program, I
 see the script running and gives output. However, in debug mode, i have a
 break point at main. It stops at main, but if I step into it nothing happens
 and then I just see the script running again and I have no way to step
 through the c++ code

 Arash Malekzadeh
 University of British Columbia

 On Mon, Jan 25, 2010 at 2:54 AM, Sidney Doria ssdo...@gmail.com wrote:

 Debug the entire simulator as a unique c++ program (with your code inside
 it).

 take a look:

 http://wcms1.rz.tu-ilmenau.de/fakia/NS2-for-Eclipse.6025.0.html
 http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging.html

 Sidney Doria
 UFCG / BRAZIL


 2010/1/25 Arash Malekzadeh aras...@gmail.com:
 
  Hello,
 
  I was wondering if anyone has used eclipse to debug NS-2. I cannot
  figure
  out how you can startup a tcl script as you would with linux gdb ( run
  ex1.tcl ). Is there a command to type after starting the debugger ?
 
  Thanks,
 



 --
 Sidney Doria
 Redes ad hoc móveis
 Doutorado em Computação
 UFCG
 Brasil

 Nessa jornada, o conhecimento será o seu escudo...
 (Mestre dos Magos no episódio do grimoire de ouro)





-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] Problems with Puma protocol

2010-01-29 Thread Sidney Doria

Dear Belkhiri,

Thank you for your support. The memory leaks are gone. I hope the
problems you've reported be now solved. Valgrind is a beautiful tool!

Community,

I've uploaded a new version of PUMA in SourceForge.

www.sourceforge.net/projects/puma-adhoc

Sidney Doria
UFCG / BRAZIL


2009/10/29 adel belkhiri adel.belkh...@hotmail.com:


 Hello friends,


 I'm encountering some issues with Puma protocol...In fact I have added this 
 protocol to my ns2.33 installation but when
  I tested it with the Valgrind tool I have noticed that the implementation 
 suffer from memory leaks !!! also it present some
 others issues when I want to access the packet header reserved for my agent 
 (some attributes of the header are set to
  zero !!). This seems strange for me because these problems doesn't exist 
 when I use other routing protocol such as AODV
  or DSDV !!!

 I don't know if someone have noticed these problems and have corrected  it. 
 Please don't hesitate to write to me. I'll be grateful
 if you could help me and many thanks for advance.



                                                                               
                   Sincerely / Adel Belkhiri.

 _
 Windows Live: Make it easier for your friends to see what you’re up to on 
 Facebook.
 http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009



-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] Help Required Regarding NS2 version!

2010-02-16 Thread Sidney Doria

Aqeel,

any version of NS you choose for your purposes, I suggest you to use It in
a Virtualbox with Ubuntu [8.04 - 9.04].
This is the most compatible NS-2 set you ever use in Windows.

Cygwin is an option, but:

- I can tell you that NS runs slower in Cygwin than in a
Virtualbox Linux VM. You may measure that counting time of a simple
validate in both platforms.

- While the newest NS-2.35 isn't released, you must use a previous NS
in Cygwin 1.5 (legacy-setup) to a successful compilation, but this
release of Cygwin
isn't compatible with Windows 7. The newest Cygwin 1.7.1 is fully
compatible with Windows 7, but isn't compatible with NS-2.34 and below.
So, the main solution will be the NS-2.35. For now, to circumvent the
problems, those that use
Windows 7 must install Cygwin 1.5 in compatible mode (win95). After
this special install, recreate the Cygwin bash icon in start menu.

Sidney Doria
UFCG / BRAZIL


2010/2/16 Muhammad Aqeel aqeel...@gmail.com:

 Hi,
    I am going to do Mobility management in WiFi, WiMax and UMTS. I am going
 to use 802.21 for mobility management.
 I want to know which version of NS2.XX is more suitable for 802.21 and which
 also supports WiFi, WiMax and UMTS. I tried to find out comparisons but
 could not find enough information.
 I am using Windows 7 operating system.

 Please guide me regarding the best suitable version of NS2 for 802.21 based
 mobility management.

 Regards




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] ns-2.34 installation problem

2010-03-08 Thread Sidney Doria

Issariayakul,

this problem has been reported by me and is already addressed by Tom
in NS-2.35 RC, as you can see in the NS-2 roadmap:

http://nsnam.isi.edu/nsnam/index.php/Roadmap

You can use NS-2.33, NS-2.34 in Cygwin 1.5.25 (legacy-setup.exe), but
to install It in Windows 7, you must use compatible mode (as win95).
After the setup, recreate the icon in start menu (the original icon
won't work), or use the cygwin.bat directly.


Sidney Doria
UFCG / BRAZIL

2010/3/6 Teerawat Issariyakul teera...@ece.ubc.ca:


 Hi Lupe,

 I am facing the similar problem. Both Ns 2.33 and NS 2.34 do not work
 with Cygwin 1.7. The suggestion is to go back and use Cygwin 1.5.

 As for you problem--an alert for gcc is not found, I guess you can ignore
 it by pressing 'n'. GCC is on your system but NS2 just can't find it.
 You can begin building it.

 The real problem, (according to my guess), is you cannot build Tcl/Tk on
 Cygwin 1.7. I am trying several options. I would like to share it with
 you. Please see below:

 1. Cygwin 1.7 does not work for both 2.33 and 2.34.
 2. Cygwin 1.5 MAY work with 2.33 and 2.34. I tried it long ago. And, it
 worked. The problem is I cannot find Cygwin 1.5 anywhere. I try to use
 setup-legacy.exe from Cygwin. But I have a feeling that it still install
 Cygwin v 1.7.
 3. Cygwin 1.5 does not work with Windows 7. Even if you get it to work,
 you cannot run it on Windows 7.

 Here is my main question: Where do you get Cygwin 1.5.25.

 Thanks,
 Best Regards,
 Teerawat Issariyakul
 http://www.ns2ultimate.com/
 http://www.ece.ubc.ca/~teerawat
 http://www.t-issariyakul.blogspot.com


 On 3/5/2010, Lupe Krops lupe...@yahoo.com wrote:


Hi to everyone,


I'm trying to install ns-allinone-2.34 on win xp.
I have installed the full package of cygwin v. 1.7.1.
When I tried to ./install the ns-2.34 it gave me the message
the Package gcc is not present on your system (also cannot
find xorg-x11-base and xfree86-base). I found a post
saying that ns-2.34 best works with cygwin 1.5.25, so i removed
the previous version of cygwin and installed v. 1.5.25.
However, it gives me the same errors.
I checked with gcc -v command and shows me that it runs gcc version 3.4.4
Also i compiled (without any problem) a .c file, just to see that the 
compiler is
successfully installed.

I really don't know what else to do or what to check.
Any help is much appreciated.

Regards,
Lup









-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] BitTorrent Simulations

2010-03-09 Thread Sidney Doria

Hi all,

I'm looking for the BitTorrent code (patch) and scripts from Kolja Eger's works:

Packet and flow level simulations of BitTorrent-like P2P networks
Efficient Simulation of Large-scale P2P Networks: Packet-level vs.
Flow-level Simulations

This code isn't avaiable anymore in the cited site.

If you have it, please send me a copy (or a link).

Thanks in advance,

-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] BitTorrent sources

2010-03-15 Thread Sidney Doria

Hi all,

Would anybody please send me a BitTorrent source code and scripts for
NS-2 (like the Kolja Eger's patch) to help my research?

The Eger's patch isn't avaliable anymore in the cited link.

Thank you in advance,

-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] NS-2 Packet Payload

2010-04-04 Thread Sidney Doria

For those who want to know how to manipulate a packet payload in NS-2,
here is a good solution:

http://www-sop.inria.fr/members/Mohamed_Karim.Sbai/index.php/research/56
(code and scripts available in the site)

I've used another approach. I'll make it available soon.

--
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] Help: accessing contents of data payload in NS2

2010-04-08 Thread Sidney Doria

There are many options to circunvent this issue and use packet
payloads. Some more elegant, some less elegant.

A more elegant is to use a new class inherited from AppData, ready to
manipulate a real payload, and more, ready to manipulate real objects,
or everything you want. (you must implement a virtual copy() and a
virtual destructor of this class to use inheritance. So, the packet
may be copied and destructed).

A less elegant is use a pointer in the packet's header (a new packet
type for your app). This pointer will be your packet payload, so it
may carry what you want.

You may use a buffer of payloads as a onipresent entity (like in
BitTorrent.patch from Kolja Eger).

Many options, but you'll not carry a real packet payload (with
everything you want) in a standard NS-2.

Sidney Doria
UFCG / BRAZIL


2010/4/6 MiLo_TUD mike.lor...@mailbox.tu-dresden.de:


 Oh, sorry. You used PacketData.
 But how did you wrote your payload to your packet ?

 I see, there's a problem. setdata(..) want a pointer to the class AppData.
 And you don't have direct access to the unsigned char* data_ of PacketData.
 So you can't create a new object with data inside. It is only possible to
 create an empty packet or copy an existing packet of type PacketData.
 So you have to derive a class from class PacketData or change the the class
 PacketData.


 --
 View this message in context: 
 http://old.nabble.com/Help%3A-accessing-contents-of-data-payload-in-NS2-tp28115846p28153305.html
 Sent from the ns-users mailing list archive at Nabble.com.





-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] multicast communication in wireless mesh network

2010-04-09 Thread Sidney Doria

Take a look in NS-2 Contributed Code.

Sidney Doria
UFCG / BRAZIL

2010/4/10 gurudevi patil patilgurude...@gmail.com:

 -- Forwarded message --
 From: gurudevi patil patilgurude...@gmail.com
 Date: Fri, Apr 9, 2010 at 11:05 AM
 Subject: protocol
 To: ns-users@isi.edu


 dear mam/sir ,
                  if u have implemented any new multicast routing protocol
 in wireless mesh network using ns2.34.
                plz send me that code.



 thanks
 g.m.patil




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] help regarding trace file format

2010-04-10 Thread Sidney Doria

May this link help you.

NS-2 Trace Formats:

http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats

Sidney Doria
UFCG / BRAZIL

2010/4/10 nikitha v v.niki...@gmail.com:

 hello everyone,
         can somebody interpret this trace file format
 r 49.979739718 _2_ AGT  --- 5575 ack 40 [13a 1 0 800] --- [0:0 4194305:0
 30 4194305] [2776 0] 1 0

 Thanking you,
 Nikitha




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] Adding static routes

2010-05-17 Thread Sidney Doria

Alexandre,

The original is a big TCL. This excerpt can help you.

Enjoy!

Sidney Doria
UFCG / BRAZIL

Thanks to Priscila Doria (UFCG), who created this scenario script.
Thanks to somebody who created the two special routines.


# Create six nodes (some of them are routers)
set x [$ns node]
set y [$ns node]
set z [$ns node]
set w [$ns node]
set r1 [$ns node]
set r2 [$ns node]
set r3 [$ns node]
set r4 [$ns node]
set a [$ns node]
set b [$ns node]
set c [$ns node]
set d [$ns node]

# Configure node colors (NAM)
$x color green
$y color red
$z color purple
$w color white
$r1 shape box
$r2 shape box
$r3 shape box
$r4 shape box
$a color green
$b color red
$c color purple
$d color white

# Connect them.
$ns duplex-link $r1 $x  10Mb 1ms  DropTail
$ns duplex-link $r1 $c  10Mb 1ms  DropTail
$ns duplex-link $r1 $r2 2Mb  20ms DropTail

$ns duplex-link $r2 $y  10Mb 1ms  DropTail
$ns duplex-link $r2 $d  10Mb 1ms  DropTail
$ns duplex-link $r2 $r3 10Mb 40ms DropTail

$ns duplex-link $r3 $z  10Mb 1ms  DropTail
$ns duplex-link $r3 $a  10Mb 1ms  DropTail
$ns duplex-link $r3 $r4 2Mb  20ms DropTail

$ns duplex-link $r4 $w  10Mb 1ms  DropTail
$ns duplex-link $r4 $b  10Mb 1ms  DropTail
$ns duplex-link $r4 $r1 10Mb 40ms DropTail

# NAM organization (orientation)
$ns duplex-link-op $r1 $x orient up
$ns duplex-link-op $r1 $c orient left
$ns duplex-link-op $r1 $r2 orient right

$ns duplex-link-op $r2 $y orient right
$ns duplex-link-op $r2 $d orient up
$ns duplex-link-op $r2 $r3 orient down

$ns duplex-link-op $r3 $z orient right
$ns duplex-link-op $r3 $a orient down
$ns duplex-link-op $r3 $r4 orient left

$ns duplex-link-op $r4 $w orient left
$ns duplex-link-op $r4 $b orient down
$ns duplex-link-op $r4 $r1 orient up


# Alexandre, these two routines help in the static routing construction

# Returns the local link that leads to
# the next hop node with the passed
# node address parameter. If no link to
# the given node exists, the procedure
# returns -1.
Node instproc nexthop2link { nexthop } {
#$self instvar link_
set ns_ [Simulator instance]
foreach {index link} [$ns_ array get link_] {
set L [split $index :]
set src [lindex $L 0]
if {$src == [$self id]} {
set dst [lindex $L 1]
if {$dst == $nexthop} { 
# Cost Debug
#puts Src:$src Dst:$dst Link:$link
#puts [$link info class]
# End Cost Debug
return $link
}
}
}
return -1
}

#
# This procedure is used to add explicitly
# routes to a node, overriding the routing
# policy used (e.g. shortest path routing).
# Tested currently with static ns2 routing.
# Essentially, it is used to add policy-routing
# entries in realistic network topologies.
#
# Parameters:
#
#   node: the ns2 node, to which the route
# entry is added to. This parameter
# is of type Node.
#   dst: the destination, to which the route
#entry refers to. This parameter
# is of type Node.
#   via: the next hope node, that the local node
#will use to access the destination node.
#This parameter is of type Node.
#
##
proc addExplicitRoute {node dst via } {
set link2via [$node nexthop2link [$via node-addr]]
if {$link2via != -1} {
$node add-route [$dst node-addr] [$link2via head]
} else {
puts Warning: No link exists between node [$node
node-addr] and [$via node-addr]. Explicit route not
added.
}
}

# Routing Table!
$ns at 0 addExplicitRoute $r1 $z $r4
$ns at 0 addExplicitRoute $r1 $a $r2
$ns at 0 addExplicitRoute $r1 $w $r4

$ns at 0 addExplicitRoute $r2 $w $r1
$ns at 0 addExplicitRoute $r2 $b $r3
$ns at 0 addExplicitRoute $r2 $x $r1

$ns at 0 addExplicitRoute $r3 $x $r2
$ns at 0 addExplicitRoute $r3 $c $r4
$ns at 0 addExplicitRoute $r3 $y $r2

$ns at 0 addExplicitRoute $r4 $y $r3
$ns at 0 addExplicitRoute $r4 $d $r1
$ns at 0 addExplicitRoute $r4 $z $r3




2010/5/17 Alexandre Jaron alexandre.ja...@gmail.com:

 Hello,

 I built a wired topology in which I want to edit routing tables for a
 certain number of nodes.
 I want to tell a node, every packet coming from this node forward them to
 that node. Just as simple as it is.

 I found something on the Internet : [$node set ragent_] addstaticroute
 number of hops next hop destination node interface
 But 'ragent' is unknown, and I don't know how to write down the arguments,
 what is the interface arg? next hop, is it an address, a node ?

 Looking forward to your answer,
 Kind regards,

 Alexandre Jaron.
 MSc student at the King's College London.




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa

Re: [ns] Routing table NS2

2010-05-18 Thread Sidney Doria

Alexandre,

This TCL might help you.


Thanks to Priscila Doria @ UFCG (who give me this TCL).


Sidney Doria
UFCG / BRAZIL
---

# Create six nodes
set x [$ns node]
set y [$ns node]
set z [$ns node]
set w [$ns node]
set r1 [$ns node]
set r2 [$ns node]
set r3 [$ns node]
set r4 [$ns node]
set a [$ns node]
set b [$ns node]
set c [$ns node]
set d [$ns node]

# Define NAM node colors
$x color green
$y color red
$z color purple
$w color white
$r1 shape box
$r2 shape box
$r3 shape box
$r4 shape box
$a color green
$b color red
$c color purple
$d color white

# Links
$ns duplex-link $r1 $x  10Mb 1ms  DropTail
$ns duplex-link $r1 $c  10Mb 1ms  DropTail
$ns duplex-link $r1 $r2 2Mb  20ms DropTail

$ns duplex-link $r2 $y  10Mb 1ms  DropTail
$ns duplex-link $r2 $d  10Mb 1ms  DropTail
$ns duplex-link $r2 $r3 10Mb 40ms DropTail

$ns duplex-link $r3 $z  10Mb 1ms  DropTail
$ns duplex-link $r3 $a  10Mb 1ms  DropTail
$ns duplex-link $r3 $r4 2Mb  20ms DropTail

$ns duplex-link $r4 $w  10Mb 1ms  DropTail
$ns duplex-link $r4 $b  10Mb 1ms  DropTail
$ns duplex-link $r4 $r1 10Mb 40ms DropTail

# Orientation (NAM)
$ns duplex-link-op $r1 $x orient up
$ns duplex-link-op $r1 $c orient left
$ns duplex-link-op $r1 $r2 orient right

$ns duplex-link-op $r2 $y orient right
$ns duplex-link-op $r2 $d orient up
$ns duplex-link-op $r2 $r3 orient down

$ns duplex-link-op $r3 $z orient right
$ns duplex-link-op $r3 $a orient down
$ns duplex-link-op $r3 $r4 orient left

$ns duplex-link-op $r4 $w orient left
$ns duplex-link-op $r4 $b orient down
$ns duplex-link-op $r4 $r1 orient up


# Returns the local link that leads to
# the next hop node with the passed
# node address parameter. If no link to
# the given node exists, the procedure
# returns -1.
Node instproc nexthop2link { nexthop } {
#$self instvar link_
set ns_ [Simulator instance]
foreach {index link} [$ns_ array get link_] {
set L [split $index :]
set src [lindex $L 0]
if {$src == [$self id]} {
set dst [lindex $L 1]
if {$dst == $nexthop} { 
# Cost Debug
#puts Src:$src Dst:$dst Link:$link
#puts [$link info class]
# End Cost Debug
return $link
}
}
}
return -1
}

#
# This procedure is used to add explicitly
# routes to a node, overriding the routing
# policy used (e.g. shortest path routing).
# Tested currently with static ns2 routing.
# Essentially, it is used to add policy-routing
# entries in realistic network topologies.
#
# Parameters:
#
#   node: the ns2 node, to which the route
# entry is added to. This parameter
# is of type Node.
#   dst: the destination, to which the route
#entry refers to. This parameter
# is of type Node.
#   via: the next hope node, that the local node
#will use to access the destination node.
#This parameter is of type Node.
#
##
proc addExplicitRoute {node dst via } {
set link2via [$node nexthop2link [$via node-addr]]
if {$link2via != -1} {
$node add-route [$dst node-addr] [$link2via head]
} else {
puts Warning: No link exists between node [$node
node-addr] and [$via node-addr]. Explicit route not
added.
}
}

# Now the Routing Table
$ns at 0 addExplicitRoute $r1 $z $r4
$ns at 0 addExplicitRoute $r1 $a $r2
$ns at 0 addExplicitRoute $r1 $w $r4

$ns at 0 addExplicitRoute $r2 $w $r1
$ns at 0 addExplicitRoute $r2 $b $r3
$ns at 0 addExplicitRoute $r2 $x $r1

$ns at 0 addExplicitRoute $r3 $x $r2
$ns at 0 addExplicitRoute $r3 $c $r4
$ns at 0 addExplicitRoute $r3 $y $r2

$ns at 0 addExplicitRoute $r4 $y $r3
$ns at 0 addExplicitRoute $r4 $d $r1
$ns at 0 addExplicitRoute $r4 $z $r3

--

2010/5/18 Alexandre Jaron alexandre.ja...@gmail.com:

 Hello,

 I am a King's College student in London. I am encountering difficulties with
 my project.
 I am working on a wired scenario for now, and I need to add a kind of
 routing table on certain nodes. Basically, I want to tell one node: 'every
 packet coming from this node, forward them to that node'.
 Is it doable in NS2 ?

 I found something, to add static routes : *[$node set ragent_]
 addstaticroute number of hops next hop destination node interface*
 But I don't know how to use it.

 May somebody help me?
 Kind regards,

 Alexandre Jaron.
 MSc student.




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



Re: [ns] memory leak because of payload allocation

2010-11-27 Thread Sidney Doria

Get out of trouble. Use Valgrind.

Sidney Doria
UFCG / BRAZIL

2010/11/26 avinash chaurasia avinash.aviank2...@gmail.com:

 hello all,
 I have written following lines of code in UDP to transfer mien data over
 network, but when i run script it eats up all my 3gb memory and 5gb swap too
 with actual data of size around 16 mb.

 code in udp layer:
 *p-allocdata(len);*
 * **((PacketData*)(p-userdata()))-setData(readbuf);*

 Can anyone help me out, whats wrong with this approach.

 at the receiver side i am calling *free(p);*
 *
 *


 Thanks
 Avinash Kumar Chaurasia
 Department of Computer Science
 IIT Kanpur, India
 Thanks
 Avinash Kumar Chaurasia
 Department of Computer Science
 IIT Kanpur, India




-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] How to be completely IGNORED in mailing lists, like this one.

2010-12-05 Thread Sidney Doria

- WRITE A SUBJECT USING LOUD CAPITAL LETTERS. MOST PEOPLE ARE BLIND;
- show how are you desperated using enfatic terms (e.g., HELP ME! VERY
URGENT!);
- put the entire text on the subject field;
- do not use please or thank you;
- use klingon language or your prefered language;
- use a good compression algorithm in your own dialect (e.g., d u knw?
r u?) It's more confortable!
- concise? what is this? what are you talking about? Why should I be
concerned about this? by the way, ...
- why ask Google first? Why search in old mailing posts? It's easy to
waste other's time;
- use multi-part mime contents with plain text duplicated as HTML: of
course, everyone should use Outlook Express;
- write really BIG posts, why not?
- and finally, never, ever read this FAQ:
http://www.faqs.org/rfcs/rfc1855.html (because it's old...)

Help people to help you. :)

Sidney Doria
UFCG / BRAZIL



[ns] WRITING AND READING DATA TO AND FROM PACKETS

2010-12-15 Thread Sidney Doria

HI,

you may use pointers in the payload as a metaphor for your data. The
real data is there, so the sender and the receiver can manipulate it.
You might use typed data as objects or bag of bits, using chars.
Anyway, the point here is the *size* of the data payload, which you
must inform correctly to perform a correct simulation. The size is
important because all routing transporting, (...) and packet algoritms
are based on the size of the payload.

Kolija Eger has made a BitTorrent code for NS-2. In this code you'll
see an example of a stack of pointers that he uses to pass real data
in packets.

Sidney Doria
UFCG / BRAZIL

2010/12/15 Akbar Hosseinkhani akbar.hosseinkh...@gmail.com:

 Dear all,
 I want to write data in packets, and check(read) the data on the way to the
 destination.
 could any one give me an Idea.
 any response would be appreciated.
 AK.




--
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

Nessa jornada, o conhecimento será o seu escudo...
(Mestre dos Magos no episódio do grimoire de ouro)