[ns] how to reply to a thread

2015-05-16 Thread Daniel Trierweiler

Hello,

the question may not really belong to ns and may even sound a little 
odd, but how do I correctly reply to a question in the mailing list?

Do i have to recite the Message-ID? And if so, where?



Re: [ns] nam problem in ns2 it is urgent

2015-05-16 Thread Daniel Trierweiler

Since you' re mentioning the .deb-file, i assume you installed ns via
Software-Center.

Please try installing ns2 following these instructions:
http://askubuntu.com/questions/467901/segmentation-fault-core-dumped-in-ns2-ubuntu-14-04

The tcl-file you posted in the other thread calls nam. So as long as nam
won't run by itself,
the error you get with the tcl-script seems to be clear ...





[ns] EPE-PEMC 2012: ECCE Europe SPECIAL SESSION: Industrial Wireless Sensor Networks

2012-01-09 Thread Daniel Gutiérrez Reina
I populate the HDR_CMN fields like this:
> ___
> struct?hdr_cmn *ch = HDR_CMN(p);
>
> ch->ptype() = PT_MYTYPE;
> ch->size() = 8 + IP_HEADER_LEN?
>
> ch->iface() = -2;
> ch->error() = 0;
> ch->prev_hop_ = address;//node's address
> ch->next_hop_ = IP_BROADCAST;//It is a broadcast transmission?
> ch->addr_type() =NS_AF_NONE;
> ch->direction() = hdr_cmn::DOWN;
> ___?
>
>
> and the HDR_fields:
> ___?
>
> struct hdr_ip *ih =?HDR_IP(p);
> ih->saddr() = address;
> ih->daddr() = IP_BROADCAST;
> ih->sport() = RT_PORT;
> ih->dport() = RT_PORT;
> ih->ttl_ = 1;
> ___?
>
> and I send it from the routing layer (AODV) with:?
> ___?
>
> Scheduler::instance().schedule(target_, p, 0.0);
>
> ___?
>
>
> This packet is transmitted periodically. Then, when I check the trace
> file, the simulator generates the following: The first time that the packet
> is transmitted, its size at the routing layer is 120 when it should be 8+20
> = 28 bytes:
>
> ...
> s 400.0 _0_ RTR ?--- 0 my_type 120 [0 0 0 0] --- [0:255 -1:255
> 1 0]?
>
> s 400.000345000 _0_ MAC ?--- 0?my_type??127 [0  0 800] ---
> [0:255 -1:255 1 0]?
>
> ...
>
> And the rest of messages have the correct size but they never go to the
> MAC layer but to the IFQ (and dropped).?
>
> ...
> s 469.298724000 _0_ RTR ?--- 0?my_type?28 [0 0 0 0] --- [0:255 -1:255
> 1 0]?
> D 469.298749000 _0_ IFQ ?--- 0?my_type?28 [0  0 800] ---
> [0:255 -1:255 1 0]
> ...
>
> I do not understant what I am doing wrong and why this is happening. If
> there are no ideas about the first problem (strange size of the packet), I
> would like to know ?why a packet is sent to the IFQ.
>
> I appreciate all the help possible.
>
> Thanks in advance,
> ?
> David
>
>
> --
>
> Message: 4
> Date: Mon, 9 Jan 2012 00:14:51 +0500
> From: Najma Ismat 
> Subject: [ns] Bonnmotion and ns2
> To: Ns Users 
> Message-ID: 
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hi,can anyone guide how to use bonnmotion mobility model in wsn tcl
> script?regards,najma
>
> --
>
> ___
> Ns-users mailing list
> Ns-users@isi.edu
> http://mailman.isi.edu/mailman/listinfo/ns-users
>
>
> End of Ns-users Digest, Vol 97, Issue 8
> ***
>



-- 
Cordiales Saludos / Best Regards,
Daniel Gutiérrez Reina.

Ingeniero Técnico Industrial / Technical Industrial Engineer.
Ingeniero en Electrónica / Electronic Engineer.
Máster en Electrónica, Tratamiento de Señal y Comunicaciones / MSc in
Electronic, Signal treatment, and Communications.
Teléfono/Phone. +34 658870907.


Re: [ns] Ns-users Digest, Vol 95, Issue 7

2011-11-08 Thread Daniel Gutiérrez Reina

El 8 de noviembre de 2011 10:01, Daniel Gutiérrez Reina <
d.gutierrez.re...@gmail.com> escribió:

> Hi all,
>
> I would like to know how to simulate a wireless network using an ideal MAC
> in ns-2.34 in Ubuntu 10.04. I do not want to take into consideration
> collisions and contention.
>
> Thank you so much in advance,
>
> 2011/11/8 
>
> Send Ns-users mailing list submissions to
>>ns-users@isi.edu
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>http://mailman.isi.edu/mailman/listinfo/ns-users
>> or, via email, send a message with subject or body 'help' to
>>ns-users-requ...@isi.edu
>>
>> You can reach the person managing the list at
>>ns-users-ow...@isi.edu
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Ns-users digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Re: ns-2.35 released (Martin Pirhac)
>>   2. Compute packet loss (Recompile .cc file to change trace .tr)
>>  (samira h)
>>   3. Re: packet marking for ip traceback (ankunda rubereza)
>>
>>
>> --
>>
>> Message: 1
>> Date: Mon, 7 Nov 2011 15:15:40 +0100
>> From: Martin Pirhac 
>> Subject: Re: [ns] ns-2.35 released
>> To: Tom Henderson 
>> Cc: "ns-users@isi.edu" 
>> Message-ID:
>><
>> ca+ct6m43tzxwewntgpt1mhbyxpyjmypqhfyecauv0wun-pg...@mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hello Tom,
>>
>> Is there any recommended version of gcc compiler, which should be used to
>> install ns-2.35 ?
>> I compiled ns-2.35 on Ubuntu10.04. with gcc-4.4. compiler and I get
>> several
>> warnings, which result in that DCCP agents does not work for me :(
>>
>> Thanks for your help.
>> Martin Pirhac
>>
>> On Sun, Nov 6, 2011 at 5:33 AM, Tom Henderson  wrote:
>>
>> >
>> > This is to announce the posting of the ns-2.35, nam-1.15, otcl-1.14, and
>> > tclcl-1.20 source code releases and a corresponding ns-allinone-2.35
>> > package.
>> >
>> > Downloads are available at the Sourceforge project pages; for otcl and
>> > tclcl:
>> > http://sourceforge.net/projects/otcl-tclcl/
>> > for ns-2, nam-1, and ns-allinone:
>> > http://sourceforge.net/projects/nsnam/
>> >
>> > Support for Tcl/Tk 8.5 series is a major enhancement across all
>> > packages, largely due to patches contributed a while back by Amir
>> > Habibi.  Tcl/Tk 8.6 is not yet tested/supported.
>> >
>> > In ns-2, the remaining issues that have caused discrepancies between
>> > validation results on 32- and 64-bit platforms have been fixed.  In
>> > addition, there are a few new models and updates to existing models:
>> > - Protocol for Unified Multicasting Through Announcements (PUMA)
>> > - Multi-path Dynamic Address RouTing (M-DART)
>> > - Datagram Congestion Control Protocol (DCCP)
>> > - SCTP and Tmix extensions
>> >
>> > A full changelog for ns-2 is at:
>> > http://www.isi.edu/nsnam/ns/CHANGES.html
>> >
>> > The released packages have been tested on recent Fedora and Ubuntu Linux
>> > (32/64 bit) systems, OS X Snow Leopard, and Cygwin 1.7.1.
>> >
>> > Please use the trackers or ns-developers mailing list to report bugs or
>> > problems with these packages; for otcl and tclcl:
>> > http://sourceforge.net/tracker/?group_id=30174&atid=398499
>> > for ns-2, nam-1, and ns-allinone:
>> > http://sourceforge.net/tracker/?group_id=149743&atid=775392
>> >
>> > - Tom
>> >
>> >
>>
>>
>> --
>>
>> Message: 2
>> Date: Mon, 7 Nov 2011 21:32:01 +0330
>> From: samira h 
>> Subject: [ns] Compute packet loss (Recompile .cc file to change trace
>>.tr)
>> To: ns-users 
>> Message-ID:
>>> u-...@mail.gmail.com>
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Hello,
>> I'm going to compute packet loss for wireless nodes. As you know in
>> trace file "-d" indicates a dropped packet but when node_(0) sends a
>> packet to node_(1) and the receiver node drops the packet, in trace
>> file in related line we can see "-d -t .. Hs 0 ..". How can I change
>> and make the .cc file that generate .tr file so that in trace file it
>> sh

[ns] Queue / Buffer Size Question

2010-11-01 Thread Lear, Daniel J M

Hello,

I am currently trying to implement a relatively simple network topology where I 
want to specify the buffer / queue size on a node within the network. However, 
it appears the only way I can do this is specifying the size in packets using 
the code:

"$ns queue-limit $n(1) $n(2) 100"

However I wish to specify the queue size in bytes instead of packets, how is 
this achievable (using a drop-tail queue)?

Regards
Daniel


[ns] Queue / Buffer Size

2010-10-25 Thread Lear, Daniel J M

Hello,

I am currently trying to implement a relatively simple network topology where I 
want to specify the buffer / queue size on a node within the network. However, 
it appears the only way I can do this is specifying the size in packets using 
the code:

"$ns queue-limit $n(1) $n(2) 100"

However I wish to specify the queue size in bytes instead of packets, how is 
this achievable?

Regards
Daniel


[ns] implementation of new protocol

2010-04-15 Thread Daniel Zvolensky



Hi everybody

I am trying implement my own MAODV protocol into NS-2.34. I already have done 
structure of packets, routing tables and now I would like programme 
communication between nodes. So I created “class node” in file “node.h” where I 
define the IP address and seq. num of node and functions such as “void 
recv(Packet*, Handler*)”. In file “node.cc” in function “void recv(Packet* p, 
Handler* h)” I put following code:

void node::recv(Packet* p, Handler* h)
{
struct hdr_maodv* maodvh = HDR_MAODV(p);
struct hdr_ip* iph = HDR_IP(p);
}

..and when I make compilation, the following error appears:

In function ‘hdr_ip::access(Packet const*)’:
node.cc: (.text.ZN6hdr_ip6accessEPK6Packet[hdr_ip::access(Packet const*)]+0×7):
undefined reference to ‘hdr_ip::offset_’
collect2: ld returned 1 exit status

Could you help me? Do you have any idea where could be a problem?

Regards

Daniel




Re: [ns] SCTP support for DelayBox?

2010-01-15 Thread Daniel Anguita O.

Anyone can help me with the DelayBox to make it works with SCTP?

Regards
-- 
Atte.
Daniel Anguita O.
Making my Magister Thesis
UTFSM
2010/1/13 Daniel Anguita O. 

> Hello everyone,
>
> Has anyone make or adapt the DelayBox to support SCTP flows?
> I need to simulate delays and stuff like that, but with SCTP flows, and as
> I can see NS2 doesn't provide any solution for that.
>
> I prefer to ask first if anyone know something or has done something about
> this.
>
> If not, i will need to code my own SctpDelayBox.
>
> Thanks for your time my friends.
> Bye
>
> --
> Atte.
> Daniel Anguita O.
> Making my Magister Thesis
> UTFSM
>


Re: [ns] SCTP: chunk fragmentation is not yet supported? Help!

2009-11-09 Thread Daniel Anguita

anyone? help!

regards

2009/11/5 Daniel Anguita 

> Or this message should be to de developers list?
>
> Help!
>
> 2009/11/4 Daniel Anguita 
>
> Hi Everyone,
>>
>> I'm using ns2 to simulate and test performance of an application over
>> different protocols. The first tests with TCP where very easy to do, but now
>> i'm trying with SCTP and everything was going well till i got this message:
>>
>> SCTP ERROR: message size (10240) too big
>> SCTP ERROR: data chunk size (10256) + SCTP/IP header(34) > MTU (1500)
>>...chunk fragmentation is not yet supported!
>>
>> What i did is to create a new Application that is aware of SCTP protocol,
>> so I can use the AppData settings and test a few things.
>> I also add a "priority" flag on the SCTP Header that I use to mark each
>> "data chunk" to know each priority, because later i want to add a per-flow
>> priority algorithm.
>> I'm doing this for my master thesis, and i'm working on ns2 from the
>> beginning.
>>
>> BUT, what i didn't know is that SCTP didnt support chunk fragmentation
>> yet! (i'm fool, i didnt read things right)
>>
>> I am very scared, because I may loose all my work that I've accomplished
>> so far. Because without this feauture, i cant test my theory
>>
>> Anyone knows some work around? is there any patch to add fragmentation
>> support?
>> My only hope is to implement it myself? (i wish not)
>>
>> I need to mesure the bandwith speed and packet delay/loss over a given
>> topology and a given application with different protocols.
>>
>> Please.. HELP!
>>
>> Thanks in advance guys, bye.
>>
>>
>> --
>> Daniel Anguita O.
>> UTFSM - Master Thesis
>>
>
>
>
> --
> Atte.
> Daniel Anguita O.
> Austral Technologies Ltda.
> ___
> Skype: daniel.anguita
> Phone: +56 2 779 2425
> dangu...@austec.cl
> ___
> Noticia: La información contenida en este mensaje e-mail y/o archivos
> adjuntos pueden contener información confidencial, privada o privilegiada.
> Si usted no es el destinario, cualquier difusión, uso, revisión,
> distribución, impresión o copia de la información, contenida en este mensaje
> de correo electrónico y/o archivos adjuntos, están estrictamente prohibidas.
> Si ha recibido esta comunicación por error, por favor avísenos respondiente
> por e-mail o teléfono e inmediatamente y permanentemente elimine este
> mensaje y cualquier archivo adjunto. Gracias.
>



-- 
Atte.
Daniel Anguita O.
Austral Technologies Ltda.
___
Skype: daniel.anguita
Phone: +56 2 779 2425
dangu...@austec.cl
___
Noticia: La información contenida en este mensaje e-mail y/o archivos
adjuntos pueden contener información confidencial, privada o privilegiada.
Si usted no es el destinario, cualquier difusión, uso, revisión,
distribución, impresión o copia de la información, contenida en este mensaje
de correo electrónico y/o archivos adjuntos, están estrictamente prohibidas.
Si ha recibido esta comunicación por error, por favor avísenos respondiente
por e-mail o teléfono e inmediatamente y permanentemente elimine este
mensaje y cualquier archivo adjunto. Gracias.


Re: [ns] identifying per application packets, not per agent

2009-10-28 Thread Daniel Anguita

is there a way to put a flag on each packet? a per flow flag.
For example, if we have a video streaming and a messaging over TCP. Can we
add an extra flag [V] for video and [M] for each packet sended by the
applications over the same agent?

Or i'll need to hack the ns2 source code at a C++ level?

Thanks

2009/10/24 Daniel Anguita 

> It's possible to identify with a flag or something the packets being send
> from an Application/Telnet? not by Agent.
>
> I have a emulation with two SCTP Agents, one on each node, to send data in
> both ways.
> And I add four Application/Telnet, each emulating a real world application.
>
> I need to analyze the trace files or nam files per application data flow,
> but the problem is that i can't figure out how to distinguish packets of
> each application.
> I'm doing this test, because i want to prove that SCTP can balance several
> streaming better than TCP. And maybe later add a priority algorithm to SCTP
> and test again.
> But how to distringuish each application flow?
>
> Thanks a lot!
> bye
>
> --
> Atte.
> Daniel Anguita O.
> UTFSM Student
>


Re: [ns] problem with change of node and packet flow colour

2009-10-25 Thread Daniel Anguita

The coloring options has to be at an Agent level with the fid_ variable.

Example:

$ns color 1 red
set tcp [new Agent/Tcp]
$tcp set fid_ 1

in this way, the flow color in nam will be red for that Agent.

regards

2009/10/25 preeti nimonkar 

>
> hello all ,
> I am using commands
> $ns  color 1 Red
> $tcp0 set class_ 1  with this their is no change of packet flow color
>
> and
> $node4 color blue
> $ns at 0.0 "$node0 color red" gives the following error---
>
> av...@localhost ~/NS_WORKS/ns2program> ns routingex.tcl
> num_nodes is set 6
> INITIALIZE THE LIST xListHead
> Starting Simulation...
> ns: _o14 color red: can't read "attr_(COLOR)": no such element in array
>while executing
> "eval list "n -t [format "%.15g" [$ns now]] -s $id_ -S COLOR -c $color -o
> $attr_(COLOR) -i $color -I $attr_(LCOLOR)""
>invoked from within
> "if [$ns is-started] {
>
> $ns puts-nam-config  [eval list "n -t [format "%.15g" [$ns now]] -s $id_ -S
> COLOR -c $color -o $attr_(COLOR) -i $color -I $attr..."
>(procedure "_o14" line 6)
>    (Node color line 6)
>invoked from within
> "_o14 color red"
>
>
>
> Can someone point to the exact problem and solution.
> preeti  khanwalkar
>



-- 
Atte.
Daniel Anguita O.
Austral Technologies Ltda.
___
Skype: daniel.anguita
Phone: +56 2 779 2425
dangu...@austec.cl
___
Noticia: La información contenida en este mensaje e-mail y/o archivos
adjuntos pueden contener información confidencial, privada o privilegiada.
Si usted no es el destinario, cualquier difusión, uso, revisión,
distribución, impresión o copia de la información, contenida en este mensaje
de correo electrónico y/o archivos adjuntos, están estrictamente prohibidas.
Si ha recibido esta comunicación por error, por favor avísenos respondiente
por e-mail o teléfono e inmediatamente y permanentemente elimine este
mensaje y cualquier archivo adjunto. Gracias.


[ns] "throughput fluctuation" of IEEE 802.11 DCF

2009-10-21 Thread Daniel sun

Dear all,

I am doing some simulations with ns-2.31 to calculate the
saturation throughput of the IEEE 802.11 DCF, just as Bianchi did in his
work
"Performance Analysis of the IEEE 802.11 Distributed Coordination Function".
I have used NOAH to get rid of the routing effect on the performance of mac
layer.
One weird phenomenon has confused me for months. When CWmax and  CWmin are
both small,say, CWmin=CWmax=32, or CWmin=2,CWmax=128, the saturated
throughput of the network drops down initially, then it bounces back and
fluctuates. I think in this high contention network the throughput should
drops down to some low value. However the throughput in my simulation will
never drops to that value.  Anyone has experienced some similar thing?

Thanks a lot!
Daniel
-- 
Daniel
City University of Hong Kong
Dept.of EE


Re: [ns] ns2.33 download

2009-08-18 Thread Daniel Vigueras



Oladapo Oluwadiya wrote:
> hi,
> does anyone know which url i can download ns2.33 from?
> regards
>
>
>
>   
You can download ns2.33 from here:
http://downloads.sourceforge.net/project/nsnam/allinone/ns-allinone-2.33/ns-allinone-2.33.tar.gz
>   
>
>   



[ns] [Fwd: Re: how to add a cpp file to ns2]

2009-08-14 Thread Daniel Vigueras

Read this: http://masimum.inf.um.es/nsrt-howto/html/node20.html I think
it can help you.

kundavi wrote:
> hello friends,
>
> i downloaded some cpp files of odmrp protocol and i want to implement it in
> NS2.33.
>
> for example,
>
> i added rtragent.cc and supporting files of it too
>
> but then also i get an error as "invalid command name Agent/RTRAgent".
>
> to make it as a valid command name ..plz help me to make a link between the
> c file and tcl file,
>
> with regards
>
> sangeetha.k
>
>   




Re: [ns] IsNeighbor function

2009-08-05 Thread Daniel Charles

neerajgupta escreveu:
>  hi all
>
>i am using IsNeigbor() function(defined in /mobile/god.cc) in mac802_11.cc 
> to check whether the two nodes are neighbors or not.
>
> the parameters are like 
> God::instance()->IsNeighbor((u_int32_t)index_,src)
>
> in god.cc i have diable the energy model in IsNeighbor(int i, int j) function.
>
> after recompiling the code and on my tcl script. i am getting the
> segmentation fault.
>
> plz. help
>
>
>
> Neeraj Gupta
> Assistant Professor
> HOD, CSE & IT Department
> Hindu College of Engineering
> Sonepat
>   
paste your error message here or at pastebin.com and paste your tcl 
script too. It will make easier to understand what's happening..
I recommend you to check the dimensions of your topology and node placement.

Daniel Charles F Porto
Researcher
Brazil



Re: [ns] Adding new MAC protocol in NS2

2009-04-19 Thread Daniel Dekst

Hi,

Adding a new mac needs you to add it in the following files, referring to the 
Mac/802_11.
tcl/lan/ns-mac-802_11.tcl
tcl/lan/ns-mac.tcl

tcl/lib/ns-mobilenode.tcl
tcl/lib/ns-packet.tcl
tcl/lib/ns-default.tcl

Best,
Pei


  


[ns] if you know any power-based topology control algorithm implementation

2009-03-03 Thread Daniel Tadesse

hi all

if you know where i can get any power-based topology control algorithm
implementations in ns2 please help!!!

thanking you in advance!

regards,

aweke



[ns] Packet manipulation in the queue using ns2.33 on vista

2009-02-04 Thread Daniel A.

Dear all,

I’ve just made some changes in the queue class within the
Queue::recv(Packet* p, Handler*) function! 4 bytes are added to each packet
in the queue bevor fowarding the packet to the target. The default packet
size is 1000 bytes (set in the ns-default.tcl file).
 
Compiling the simulator was successful but when running simulations I got a
segmentation fault message! 

Do you think that the segmentation fault is due to the new size of the
packets or is it something else?  How would I be eventually able to fix
that?!

Many thanks in advance.

Dan.





[ns] Storing data packets in an array/matrix while simulating

2009-01-13 Thread Daniel A

Hi everybody,

I am about simulating a data transmission over ns2. 
Within the network (node, link), I would like to store every 4 packets in a
matrix/array, manipulate them in the matrix(e.g. by inserting some
additional bytes to each packet and multiplying the content of the matrix
with an another one) and then forward the manipulated data to the sink.
As ns2 is handling single packets, I don't really know where and how to do
that! 
Do you have any idea where I eventually could do that? And which functions I
should change? 


Best,

Dan  







[ns] Segmentation fault when compiling

2009-01-09 Thread Daniel A

Hi everybody,

I am working on ns2.33 using cygwin. When compiling the attached code, I get
the following message:

$ ./ns Evaltran.tcl 
num_nodes is set 1
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Base station is created!
wireles node is created!
39.312258
Simulation starts!!
Segmentation fault (core dumped)



An ns.exe text file appears in my compiling folder with the following
content

Exception: STATUS_ACCESS_VIOLATION at eip=18F71E50
eax= ebx=011F762C ecx=011EBDE4 edx=011F6808 esi=00229B00
edi=00229B50
ebp=002294B8 esp=002293E0
program=C:\cygwin\home\KiKoLoCo\ns-allinone-2.33\ns-2.33\ns.exe, pid 8112,
thread main
cs=001B ds=0023 es=0023 fs=003B gs= ss=0023
Stack trace:
Frame Function  Args
002294B8  18F71E50  (011E0998, 0602, , )
002294D8  19226F3E  (011E0998, 0602, , 1913AFAB)
002294F8  18F8685D  (011E1E08, 0602, 00229518, 18F88603)
00229518  18F86ED0  (011E1E08, 011E1E08, 00229968, 18F86668)
00229528  18F8863A  (011E1E08, 19338CEB, 00F72488, )
00229968  18F86668  (011E1E08, 0002, 00229B0C, 0003)
00229988  1913B9C6  (011E1E08, 00F72370, 0005, 00229B00)
00229B38  1913F0F2  (011EB1D0, 00F72370, 0003, 00229B50)
00229BB8  19143F88  (011EB2F0, 00F72370, 0003, 00F74690)
00229C48  19145650  (00F72370, 0003, 00F74690, )
00229EF8  191671D3  (00F72370, 011F29A8, 0010, 1915C357)
00229F28  1916AC4C  (00F72370, 011F29A8, 0005, )
0022A1D8  19167463  (00F72370, 0116D2A0, 0022A208, 1916B2FC)
0022A208  1916AC4C  (00F72370, 00F7B320, 00F7CF40, 0001)
0022A5D8  19160E78  (00F861F8, 00F72370, 0005, 0022A600)
0022A668  191610F5  (00F861F8, 00F72370, 0005, 0022A720)
End of stack trace (more stack frames may be present)


I tried to solve this problem by following the instructions in the link
listed below and provided by Mr Rehmani. 

http://article.gmane.org/gmane.network.simulator.isi/2766/match=segmentation
+fault 

but I got the following lines

$ gdb -c core
GNU gdb 6.8.0.20080328-cvs (cygwin-special)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 

Re: [ns] Please help me to solve my issue in ns2

2008-10-18 Thread Daniel Dekst

Hi,
   
  I don't think you want to classify packets in mac layer. Instead, you want 
your packets to be submitted to aodv. Thus, in aodv.cc, you need to identify 
your packets in AODV::recv(Packet *p). In fact, as you know, all packets first 
arrive at such a recv function in any layer. So if you want to do anything 
about your packets, it should be in this function.
   
  Then how to identify your packets
  you need to register your packet header in common/packet.h
  then you can set hdr_cmn and use it to identify your packets and do something.
  hdr_cmn *ch = HDR_CMN(p)
  when you send a packet, set the packet type as yours,
  when you recv it in aodv
 if(ch->ptype() == PT_YOUR_TYPE) {
   recvMYPACKT(p); //change to execute your code instead of recvAODV(p)
   return;
 }

  Detailed how to register your header can be referred to
  Implementing a New Manet Unicast Routing Protocol in NS2
  see the "needed changes" part.
   
  BTW, how to suppress duplicate packets I have sent. I do not want to read 
aodv code if you already know.
   
  Best,
  Pei

Mubashir Rehmani <[EMAIL PROTECTED]> wrote:
Hello Daniel

I hope that you are fine. I need your help to resolve my problem in ns2.
 
Basically i am using AODV.cc and as you know that AODV has many types of 
packets like HELLO, RREQ etc. I have declared my own packet header in AODV.cc 
and i used it for unicasting. Now the problem is that when i send my own packet 
from source to destination in AODV.cc then first this packet is received in MAC 
802.11.cc file in the recv_timer() function and then in this recv_timer() 
function all the packets are classified. For instance if the packet is Control 
like RTS/CTS/ACK then recv_timer() call functions like recvRTS() etc etc. and 
if the packet is data packet, as Hello or my own packet then it just check 
whether it is data packet or not and just call the recvDATA() packet in 
mac-802.11.cc and then this function send packet to upword layer to recv() 
function that is present in AODV.cc file. Then further action is taken place 
and packets are being dropped there. 

Now my problem is that when i send my own packet from particular source to 
destination then at the mac layer all the nodes that are in the communication 
range will listen this packet and discard them at the mac layer (control 
packets) but if the packet is data packet, in the mac layer it will not 
classify the data packet, instead it will just check whether it is a data 
packet or not and then forward it to upper layer.

What i want to do is that at the mac layer, in the recv_timer() function, the 
mac layer should classify the data packet and if it found that at the mac layer 
that this is a data packet and of type HELLO or RREQ then discard them or if it 
is my own data packet type then forward it to upper layer.

I hope you understand my question.

Thanks in advance.

Regards


-- 
Mubashir Husain Rehmani

Mobile :   00 33 (0)6 32 00 89 35




 __
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com

Re: [ns] How to access mac layer in c++ of ns2

2008-10-17 Thread Daniel Dekst

Hi,
   
  I have never done anything with TCP layer, so I'm not sure.
  But a general rule I summarized is that
   
  1) If the two layers you want to cross-access are adjacent, you can use 
uptarget_/downtarget_
   
  2) If they are not, it is a bit of difficult to make the pointer clear. My 
method is to use tcl to get the pointer. You must have seen the usage of 
TclObject::lookup() many times.
  My case is to let my SensorAgent to access Mac802_11, thus
  in my sensor-agent.cc  (can be others such as aodv.cc)
  implement a command
if (strcmp(argv[1], "access-mac") == 0) {
mac_pt_ = (Mac802_11*)TclObject::lookup(argv[2]);
if (mac_pt_ == 0)
return TCL_ERROR;
return TCL_OK;
}
  here mac_pt_ is defined in sensor-agent.h
  Mac802_11  *mac_pt_
  you may also need to declare Mac802_11 as friend class.
  Once you execute the following command in your tcl file, mac_pt_ gets the 
right pointer and you can use it now.
  $sensoragent_($i) access-mac [$node_($i) set mac_(0)]
   
  vice versa
  set mac_ [$node_($i) set mac_(0)]
  $mac_  access-agent [$node_($i) agent 255]
  you implement "access-agent" command in mac layer
   
  so the point is that you need to know how to get TCP
  set tcp_  ???
   
  Best,
  Pei

Basim Javed <[EMAIL PROTECTED]> wrote:
I just read, and you are correct.
Could u plz also tell me how to access the TCP layer from the node pointers in 
C++, and how does we know that this is the current node (some thing like self)? 
So I want each node to access the TCP and PHY layers from within itself, and 
also the reverse of it: i.e. within TCP I want to access the MAC functions of 
the concerned node, if possible?

thanks many.
basim






Pei Huang, Ph.D. student
Dept. of Computer Science and Engineering
Michigan State University
http://dekst.awardspace.com
 __
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com

Re: [ns] How to access mac layer in c++ of ns2

2008-10-16 Thread Daniel Dekst

Hi,
   
  Thanks a lot. I recall this. But I never use it because I don't know who is 
the uptarget_ of who. Using debug, it seems every leayer will go to trace so I 
wonder whether uptarget_ of mac is trace or link.  Do you have any experience ? 
So we only need to follow the structure of Chapter 16, is that right?
   
  Best,
  Pei

李业 <[EMAIL PROTECTED]> 写道:
  Hi,

When you created a node in otcl, mac layer and other components are
fixed together(both in otcl and C++). If you want to access MAC layer
in C++, you simply use a pointer uptarget_* or downtarget_* in the
layer where you want to do this. For example you want to do this in
PHY layer, you just:
uptarget_->

You may want to refer to the overview diagram provided in NS manual
chapter 16. I'm new to NS, hope this helps!

2008/10/16 Daniel Dekst :
>
>
> Hi, everyone,
>
> I know how to access physical layer since Class Node provides a variable 
> ifhead_ for list of phys.
> So
> WirelessPhy* physicalLayer = (WirelessPhy*)(node_->ifhead()).lh_first;
> works.
>
> But it does not provide list of mac, thus can I access mac layer similar as 
> above?
> I know tcl may work by calling mac layer and then again use tcl to return the 
> desired value, but is there any method to access it directly using c++?
>
> Best,
> Pei
>
> Pei Huang, Ph.D. student
> Dept. of Computer Science and Engineering
> Michigan State University
> http://dekst.awardspace.com
>
>



-- 
Best regards,
Li Ye


   
-
 雅虎邮箱,您的终生邮箱!

Re: [ns] How to access mac layer in c++ of ns2

2008-10-16 Thread Daniel Dekst

Hi,
   
  Yes, if we want to use mac functions, we first need to include mac header file
  #include
   
  But a problem is that we need to acquire the pointer of Class Mac802_11 so 
that we can access the variables or functions.
   
  For physical layer you want to know, it is easy.
  You can see in node.h it provides a list of phys, so if you acquire the 
pointer of the list, then you can use it.
  in your .h
  #include
   
  in your Class
  MobileNode* node_;
   
  then in your .cc you can
  WirelessPhy* physicalLayer = (WirelessPhy*) (node_->ifhead()).lh_first;
physicalLayer->node_off();
   
  Best,
  Pei

Basim Javed <[EMAIL PROTECTED]> wrote:
hi

As I know of, u can access the MAC layer, by declaring the mac header files 
where u want to use the mac functions. Similarly u should be able to use 
functions of any layer.

I wonder what is the idea behind your approach...plz tell more about it, as it 
looks ok to me, as well.

best
basima

  2008/10/16 Daniel Dekst <[EMAIL PROTECTED]>
  

Hi, everyone,

I know how to access physical layer since Class Node provides a variable 
ifhead_ for list of phys.
So
WirelessPhy* physicalLayer = (WirelessPhy*)(node_->ifhead()).lh_first;
works.

But it does not provide list of mac, thus can I access mac layer similar as 
above?
I know tcl may work by calling mac layer and then again use tcl to return the 
desired value, but is there any method to access it directly using c++?

Best,
Pei

Pei Huang, Ph.D. student
Dept. of Computer Science and Engineering
Michigan State University
http://dekst.awardspace.com







   
-
 雅虎邮箱,您的终生邮箱!

[ns] How to access mac layer in c++ of ns2

2008-10-15 Thread Daniel Dekst

Hi, everyone,

I know how to access physical layer since Class Node provides a variable 
ifhead_ for list of phys.
So
WirelessPhy* physicalLayer = (WirelessPhy*)(node_->ifhead()).lh_first;
works.

But it does not provide list of mac, thus can I access mac layer similar as 
above?
I know tcl may work by calling mac layer and then again use tcl to return the 
desired value, but is there any method to access it directly using c++?

Best,
Pei

Pei Huang, Ph.D. student
Dept. of Computer Science and Engineering
Michigan State University
http://dekst.awardspace.com
   
-
 雅虎邮箱,您的终生邮箱!

Re: [ns] Trace file

2008-10-09 Thread Daniel Dekst

It is printed by
sprintf(log_target_->pt_->buffer(),"N -t %f -n %d -e %f", s.clock(),
   address_, energy_model_->energy());
  in function
 MobileNode::log_energy()
   
  So maybe only the author knows the meaning of N,  eNergy? Node? I think you 
can just regard it as a tag to identify energy decrease.


Pei Huang, Ph.D. student
Dept. of Computer Science and Engineering
Michigan State University
http://dekst.awardspace.com
   
-
 雅虎邮箱,您的终生邮箱!

Re: [ns] how to find where a variable is initialized

2008-10-06 Thread Daniel Dekst

Thanks a lot!

reza mohammadi <[EMAIL PROTECTED]> wrote:  hello
you must set some variable in ns-default.tcl file
for example
set  mac/802_11  bandwidth_  1e6
ns-default.tcl is in ns-allinone-2.32/ns-2.32/tcl/lib
good luck




Mubashir Rehmani <[EMAIL PROTECTED]> wrote: 

Hi

I think that you can use grep command and you can also use ddd.

Hope it helps

Regards   
   
-
 雅虎邮箱,您的终生邮箱!

Re: [ns] how to find where a variable is initialized

2008-10-04 Thread Daniel Dekst

Hi, Mubashir,
   
  Thanks a lot!
  Usually I can find where a variable is defined (in which Class) but it is 
difficult to find out who call a command to change it.
   
  In this case, cache_node_count_ is defined in class Mac802_11 and is 
initialized to 0. Fortunately I notice that there is a command "nodes" in 
mac-802_11.cc that can change the value of cache_node_count_ and using gdb I 
see it is indeed executed here, but who call the command and when?
   
  Previous answers show it is related to mobile/god.h/cc and I found there 
exists commands related to nodes number. And I also thought it might has some 
relationship with node construction. So I read tcl/lib/ns-mobilenode.tcl and 
finally understand it --  "$mac nodes [$god_ num_nodes]". It is here changes 
the value of cache_node_count_.

  I'm lucky to find it without too many troubles, but is there any method that 
can list all tcl files which will call a certain command?
   
  Best,
  Pei
  
Mubashir Rehmani <[EMAIL PROTECTED]> wrote:
Hi Daniel Dekst,

You can find the variables here
http://www-rp.lip6.fr/ns-doc/ns226-doc/html/functions.htm

Regards

Mubashir Husain Rehmani

  2008/10/4 Daniel Dekst <[EMAIL PROTECTED]>
  

Hi, everyone,

How to find where a variable is initialized ?
I add a new mac same as mac-802_11, but it puts warning
MAC_RMAC: accessing MAC cache_ array out of range (src 0, dst 1, size 0)!
I found out that it is due to cache_node_count_ = 0.
It must be set somewhere in MAC/802_11, but I do not know where to find it. I 
think it might be in a .tcl file.
Any help is appreciated!

Best,
Pei








-- 
Mubashir Husain Rehmani

Mobile :   00 33 (0)6 32 00 89 35




   
-
 雅虎邮箱,您的终生邮箱!

[ns] how to find where a variable is initialized

2008-10-03 Thread Daniel Dekst

Hi, everyone,

How to find where a variable is initialized ?
I add a new mac same as mac-802_11, but it puts warning
MAC_RMAC: accessing MAC cache_ array out of range (src 0, dst 1, size 0)!
I found out that it is due to cache_node_count_ = 0.
It must be set somewhere in MAC/802_11, but I do not know where to find it. I 
think it might be in a .tcl file.
Any help is appreciated!

Best,
Pei


   
-
 雅虎邮箱,您的终生邮箱!

Re: [ns] problem - undefined reference ... while compiling ns-allinone-2.33 in debian

2008-09-19 Thread Daniel Henrique Joppi

:/ it is normal ...

it´s not error

On Thu, Sep 18, 2008 at 12:03 AM, Daniel Henrique Joppi <
[EMAIL PROTECTED]> wrote:

> what does that mean? is it mean that it compile
> correct or not
>
> if it is correct...why the compilation did not
> continue because as I understand from the
> "Makefile.in" I think there is a compilation for "tcl"
> folder contents... and I think this reflect a problem
> of not reflecting my changes on the tcl files.
>
> :(
>
> ps? txz for help Tom!
>
> On Thu, Sep 18, 2008 at 12:00 AM, Daniel Henrique Joppi <
> [EMAIL PROTECTED]> wrote:
>
>> txz ... but now
>>
>>  ... /rmst_source.o diffusion3/apps/ping/1pp_ping_sender.o
>> diffusion3/apps/ping/1pp_ping_receiver.o
>> diffusion3/apps/ping/2pp_ping_sender.o
>> diffusion3/apps/ping/2pp_ping_receiver.o diffusion3/apps/ping/ping_common.o
>> diffusion3/apps/ping/push_receiver.o diffusion3/apps/ping/push_sender.o
>> diffusion3/filters/gear/gear_attr.o diffusion3/filters/gear/gear.o
>> diffusion3/filters/gear/gear_tools.o diffusion3/filters/misc/log.o
>> diffusion3/filters/misc/srcrt.o diffusion3/filters/misc/tag.o
>> diffusion3/filters/rmst/rmst.o diffusion3/filters/rmst/rmst_filter.o
>> delaybox/delaybox.o packmime/packmime_HTTP.o packmime/packmime_HTTP_rng.o
>> packmime/packmime_OL.o packmime/packmime_OL_ranvar.o
>> packmime/packmime_ranvar.o gen/version.o gen/ns_tcl.o gen/ptypes.o
>> common/win32.o common/tkAppInit.o -L/home/norxs/ns-allinone-2.33/tclcl-1.19
>> -ltclcl -L/home/norxs/ns-allinone-2.33/otcl -lotcl
>> -L/home/norxs/ns-allinone-2.33/lib -ltk8.4
>> -L/home/norxs/ns-allinone-2.33/lib -ltcl8.4 -lXext -lX11 -lnsl -ldl -lm -lm
>> *for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec
>> indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr
>> indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
>> make[1]: Entering directory
>> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
>> make[1]: Nothing to be done for`all'.
>> make[1]: Leaving directory
>> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
>> make[1]: Entering directory
>> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
>> make[1]: Nothing to be done for `all'.
>> make[1]: Leaving directory
>> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
>> make[1]: Entering directory
>> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
>> make[1]: Nothing to be done for `all'.
>> make[1]: Leaving directory
>> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
>> make[1]: Entering directory
>> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
>> make[1]: Nothing to be done for `all'.
>> make[1]: Leaving directory
>> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
>> make[1]: Entering directory
>> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
>> make[1]: Nothing to be done for `all'.
>> make[1]: Leaving directory
>> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'*
>>
>>
>>
>> On Sat, Sep 13, 2008 at 7:52 PM, Tom Henderson <[EMAIL PROTECTED]> wrote:
>>
>>> Daniel Henrique Joppi wrote:
>>>
>>>> anybody?
>>>>
>>>> On Thu, Sep 4, 2008 at 10:12 PM, Daniel Henrique Joppi <
>>>> [EMAIL PROTECTED]> wrote:
>>>>
>>>>  Help...
>>>>>
>>>>> I have changed to get rid of "inline" keywords but the errors are
>>>>> persisting...
>>>>>
>>>>>
>>>>> ---
>>>>>
>>>>>
>>>>> ---
>>>>> In file included from ./trace/trace.h:43,
>>>>> from ./trace/cmu-trace.h:42,
>>>>> from aodvg/aodvg_rqueue.cc:33:
>>>>> ./common/packet.h: In static member function 'static void
>>>>> p_info::initName()':
>>>>> ./common/packet.h:273: warning: deprecated conversion from string
>>>>> constant
>>>>> to 'char*'
>>>>>
>>>>
>>> 
>>>
>>>

Re: [ns] problem - undefined reference ... while compiling ns-allinone-2.33 in debian

2008-09-17 Thread Daniel Henrique Joppi

what does that mean? is it mean that it compile
correct or not

if it is correct...why the compilation did not
continue because as I understand from the
"Makefile.in" I think there is a compilation for "tcl"
folder contents... and I think this reflect a problem
of not reflecting my changes on the tcl files.

:(

ps? txz for help Tom!

On Thu, Sep 18, 2008 at 12:00 AM, Daniel Henrique Joppi <
[EMAIL PROTECTED]> wrote:

> txz ... but now
>
>  ... /rmst_source.o diffusion3/apps/ping/1pp_ping_sender.o
> diffusion3/apps/ping/1pp_ping_receiver.o
> diffusion3/apps/ping/2pp_ping_sender.o
> diffusion3/apps/ping/2pp_ping_receiver.o diffusion3/apps/ping/ping_common.o
> diffusion3/apps/ping/push_receiver.o diffusion3/apps/ping/push_sender.o
> diffusion3/filters/gear/gear_attr.o diffusion3/filters/gear/gear.o
> diffusion3/filters/gear/gear_tools.o diffusion3/filters/misc/log.o
> diffusion3/filters/misc/srcrt.o diffusion3/filters/misc/tag.o
> diffusion3/filters/rmst/rmst.o diffusion3/filters/rmst/rmst_filter.o
> delaybox/delaybox.o packmime/packmime_HTTP.o packmime/packmime_HTTP_rng.o
> packmime/packmime_OL.o packmime/packmime_OL_ranvar.o
> packmime/packmime_ranvar.o gen/version.o gen/ns_tcl.o gen/ptypes.o
> common/win32.o common/tkAppInit.o -L/home/norxs/ns-allinone-2.33/tclcl-1.19
> -ltclcl -L/home/norxs/ns-allinone-2.33/otcl -lotcl
> -L/home/norxs/ns-allinone-2.33/lib -ltk8.4
> -L/home/norxs/ns-allinone-2.33/lib -ltcl8.4 -lXext -lX11 -lnsl -ldl -lm -lm
> *for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec
> indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr
> indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
> make[1]: Entering directory
> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
> make[1]: Nothing to be done for`all'.
> make[1]: Leaving directory
> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
> make[1]: Entering directory
> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
> make[1]: Entering directory
> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
> make[1]: Entering directory
> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
> make[1]: Entering directory
> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory
> `/home/norxs/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'*
>
>
>
> On Sat, Sep 13, 2008 at 7:52 PM, Tom Henderson <[EMAIL PROTECTED]> wrote:
>
>> Daniel Henrique Joppi wrote:
>>
>>> anybody?
>>>
>>> On Thu, Sep 4, 2008 at 10:12 PM, Daniel Henrique Joppi <
>>> [EMAIL PROTECTED]> wrote:
>>>
>>>  Help...
>>>>
>>>> I have changed to get rid of "inline" keywords but the errors are
>>>> persisting...
>>>>
>>>>
>>>> ---
>>>>
>>>>
>>>> ---
>>>> In file included from ./trace/trace.h:43,
>>>> from ./trace/cmu-trace.h:42,
>>>> from aodvg/aodvg_rqueue.cc:33:
>>>> ./common/packet.h: In static member function 'static void
>>>> p_info::initName()':
>>>> ./common/packet.h:273: warning: deprecated conversion from string
>>>> constant
>>>> to 'char*'
>>>>
>>>
>> 
>>
>>  ./common/packet.h:368: warning: deprecated conversion from string
>>>> constant
>>>> to 'char*'
>>>>
>>>
>> Daniel,
>>
>> To avoid all of these warnings, try adding the gcc option
>> -Wno-write-strings to your ns-2 Makefile; e.g.
>>
>> CCOPT   = -g -Wall -Wno-write-strings
>>
>> The above fixed the problem for me for gcc-4.3.2 machines.
>>
>>
>>  -L/home/norxs/ns-allinone-2.33/tclcl-1.19 -ltclcl
>>>> -L/home/no

Re: [ns] problem - undefined reference ... while compiling ns-allinone-2.33 in debian

2008-09-06 Thread Daniel Henrique Joppi

anybody?

On Thu, Sep 4, 2008 at 10:12 PM, Daniel Henrique Joppi <
[EMAIL PROTECTED]> wrote:

> Help...
>
> I have changed to get rid of "inline" keywords but the errors are
> persisting...
>
> ---
>
> ---
> In file included from ./trace/trace.h:43,
>  from ./trace/cmu-trace.h:42,
>  from aodvg/aodvg_rqueue.cc:33:
> ./common/packet.h: In static member function 'static void
> p_info::initName()':
> ./common/packet.h:273: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:274: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:275: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:276: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:277: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:278: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:279: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:280: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:281: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:282: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:283: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:284: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:285: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:286: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:287: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:288: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:289: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:290: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:291: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:292: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:294: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:295: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:296: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:297: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:298: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:299: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:301: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:302: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:303: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:304: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:305: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:306: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:307: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:308: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:309: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:310: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:311: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:312: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:313: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:314: warning: deprecated conversion from string constant
> to 'char*'
> ./common/packet.h:316: warning: d

Re: [ns] Calculate Signal strength in ns2

2008-07-21 Thread Daniel Rother

Hi,
I've got the same problem. In tcl I haven't found a solution. I  
thougth there is something easy like "set strength [$node set  
signalstrength]" but it seems there isn't such a think... :(
Because of that I go to the C++-Source-Code. After a little bit of  
searching I found the file "wireless-phy.cc" and there the function  
"sendUp". I think there the variable "Pr" is the signal strength  
(because later in the function "Pr" is compared with "CSTresh_" and  
"RXTresh_" wich a used to simulated if a paket is recieved correct or  
not).
But now I had the problem that "Pr" alway had got the same value and I  
don't know why. I went back to my tcl file and play a little bit with  
my settings. As I changed "set opt(prop) Propagation/TwoRayGround" to  
"set opt(prop) Propagation/FreeSpace" and start a simulation, I've got  
an output on my console like "time: 0.008566: d: 31.622777, Pr:  
2.949347e-09" (and there the Pr is chaniging!). First I was wondered  
about that, but then I looked into the file "propagation.cc" and there  
I found in the function Pr() "printf("%lf: d: %lf, Pr: %e\n",  
Scheduler::instance().clock(), d, Pr);". So I copy that and put it  
into the file "tworayground.cc" at the same position (the function Pr)  
and now it seems to work.
But I always have a question: Why is Pr in "tworayground" changing and  
in "wireless-phy" not? And is it the correct position to read out the  
signal strength?
I've alway looked into the file "mac-802_11.cc" and the function  
"send" but there "Pr" also seems not to work correct (there it is  
alwas "1.600278e-02" or "-1"...) What do I have to change?
And a last thing: I want to have the signal strength in dBm. Because  
of that I made "10*log10(Pr)" but I'm not sure if I have to use  
"10*log10(Pr/0.001)" instead (because 1mW is the referece value for  
dBm and I don't know if it is include in Pr or not...)
I hope anybody can help me with my problem(s). Thanks!
Greets Daniel Rother


Zitat von angelina socratous <[EMAIL PROTECTED]>:

>
>
> I have a topology with some access points and some wireless nodes   
> attached to them. If a new node wants to join the network how can i   
> get the signal strength which the new node receives from each access  
>  point?
> Should i use c++? If someone has a tutorial for this task it would   
> be very helpful.
>
> Thanks, Angelina
> _
> Explore the seven wonders of the world
> http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
>






[ns] How to get signal strength

2008-07-10 Thread Daniel Rother

Hi,
I want to get the signal strength of a mobile node and put it into a
trace file but I don't know how... Can anybody help me? Thanks!
greets Daniel



Re: [ns] Large ad hoc simulation using FreeSpace propagation model is way too slow

2008-05-17 Thread Daniel Mahrenholz

Hi Ricardo,

the obvious answer - the number of events to process is very different.
But why?
First of all, the different propagation models result in different
transmission ranges. And greater transmission range results in a larger
number of nodes receiving an event and hence more processing time
required. You can check this by counting the number of events in the
event trace.
Second, when you start your simulation it should print a line containing
"distCST_ = 550.0". This is the maximum range one node can affect
another one (carrier sense). If it is unknown you will see a really huge
number. This value is used to optimize the propagation computation
because nodes further away do not need to be considered during the
transmission of a packet. So, larger values will increase computation time.
Third, even if you set the transmission range of different models to the
same value you will get different event counts. The reason is that all
models produce different carrier sense to transmission range ratios.
That means, equal transmission ranges will result in different carrier
sense ranges that obviousely results in a different behavior of your
simulation.

Daniel.

Ricardo Ulisses schrieb:
> Hi all,
>
> I've been doing research on large mobile ad hoc network simulation, so
> far using Two-Ray Ground radio wave propagation model. I suppose I was
> achieving a reasonable amount of time to fully complete a simulation
> run with 10k nodes with 3k connections between them during 300 seconds
> of simulation time (about 2 days and a half).
>
> Now I've switched to the FreeSpace propagation model and I've noticed
> that the time to process the simulation largely increased.
>
> Let me show some small scale network examples:
>
> 1) Simulating 10 nodes, 3 connections between them, 300s simulation time:
>
> FreeSpace..1m3.232s
> TwoRayGround0m0.500s
>
> 2) Simulating 100 nodes, 30 connections between them, 300s simulation time:
>
> FreeSpace..more than 30 minutes
> TwoRayGround1m11.207s
>
> I've also made some simulations using the Shadowing model and the time
> spent was very close to the ones obtained when using the TwoRayGround
> model.
>
> I am really surprised with the high time consumption of the simulation
> run using FreeSpace model as it is a much less complex model than
> TwoRayGround and Shadowing.
>
> Does anyone have any clue about the reason why this is happening?
>
> Yes, I've read the FAQ, ns-problems page, and manual and I couldn't
> find the answer there neither in any other document or website.
>
> Please, ask me if more information about how the simulation is
> configured is needed.
>
> Thanks in advance.
>
> Ricardo J. Ulisses Filho
> =
> Departamento de Sistemas e Computacão - DSC
> Universidade de Pernambuco - UPE
> Recife - Pernambuco - Brazil
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
>   





[ns] how to include vector into ns

2008-04-15 Thread Daniel Dekst

Hi,
   
  I'm trying to use 
  vector stl
  in ns.
   
  I add
  #include 
  #include 
  in the file.
   
  but it claims:
  Error: vector is undeclared
   
  However, if I use a single file to try the program.
  $g++  test.cpp -g -o test
  It works well.
   
  So why ns cannot recognize it?
   
  Best,
  Pei

 between -00-00 and -99-99   http://cn.mail.yahoo.com/";> 雅虎邮箱,您的终生邮箱!

Re: [ns] Rx Threshold calculation when using Ricean fading model

2008-04-04 Thread Daniel Dekst




   
-
 雅虎邮箱,您的终生邮箱!

Re: [ns] Vectors in NS

2008-03-06 Thread Daniel Mahrenholz

Hi,

vector.erase(...) works only on iterators. Look here for more 
information: http://www.cplusplus.com/reference/stl/vector/erase.html

Daniel.


SS Mukaka schrieb:
> Dear All
>
> How do you define and manipulate vectors in C++ code.
> I have written my own protocol but I'm having problems with the vectors
>
> Here is how I defined my vector:
>
> vector  MyVector
>
> and this is how I manipulate it
>
> MyVector.erase(index)
> MyVector. push_back(DataItem)
>
> This is the error that I get when I try to compile my code (using make)
>  error: no matching function for call to 'std::vector std::allocator >::erase(int)'
> /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/vector.tcc:110:
> note: candidates are: typename std::vector<_Tp, _Alloc>::iterator
> std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp,
> _Alloc> >) [with _Tp = int, _Alloc = std::allocator]
> /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/vector.tcc:122:
> note: typename std::vector<_Tp, _Alloc>::iterator
> std::vector<_Tp, _Alloc>::erase(__gnu_cxx::__normal_iterator std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp,
> _Alloc> >, __gnu_cxx::__normal_iterator _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >) [with _Tp =
> int, _Alloc = std::allocator]
>
> Regards
>
> SS Mukaka
>   



Re: [ns] About wireless cards specifications simulation

2008-02-25 Thread Daniel Mahrenholz

Hi,

Gabrial Monty schrieb:
>   You have said that :
>   "To answer your question: NO, it is absolutely not realistic to deduce 
> from a result of 150m transmission range to be in an indoor scenario."
>
>   Do you mean that I cannot assume an indoor range to be 150m, or I cannot 
> assume that an infrastructured network is working in an indoor environment?
>   
What I tried so say is: "If your transmission range is 150m, you cannot 
assume to be in an indoor environment".
For your question:
a) you cannot assume that the transmission range will be 150m in an 
indoor environment. Usually, when someone gives a transmission range, he 
means that the transmission range can be _up to_ this value. You can 
never assume a minimum range (s. the elevator example).
b) An infrastructured network is known to work in an indoor environment.
>
>   The point that I want to get to, is that in the standard it is specified 
> that the maximum transmit power for 802.11a cards in the range 5.725-5.825 
> GHz can reach 800 mW, following this can I assume a range of 150m (for 
> example) for a card using 600 mW as its transmit power, apart from the 
> propagation model or lets say I am working with TwoRayGround model, can I 
> assume this or one can argue that my simulation settings are not real?   
>   
In a general environment (one you have no specific knowledge about) you 
cannot assume anything (s. the elevator). If you define some properties 
of the environment as prerequisits (e.g. "we are in an open park area 
with clear line-of-sight and no obstacles within the first fresnel 
zone") you can assume a transmission range with high confidence (e.g. 
150m +/- 20m). In an indoor environment this is quite difficult because 
the variation is extremly high - something linke 50m +/- 50m does not 
help you much. Furthermore, even in a static indoor environment (one 
where anything remains at its position, no people moving, no doors 
opened/closed etc.) the signal strength between a pair of stationary 
WLAN transmitters will not be constant. You will find more information 
and references to other peoples' work in my thesis 
(http://deposit.ddb.de/cgi-bin/dokserv?idn=980478588) or in the papers 
of my collegues that continued / extended my work 
(http://wwwivs.cs.uni-magdeburg.de/EuK/forschung/publikationen/index.shtml).

So my advise - start your work with a discussion of the properties of 
the environment, than that of your devices, and finally that of your 
protocol. From all this you can derive the performance of your 
communication / application with reasonable confidence. And don't forget 
- transmission power is a property of your devicey, but transmission 
range is not. It is a result of the combination of transmitter, 
receiver, environment, and signal encoding.

Daniel.
> Daniel Mahrenholz <[EMAIL PROTECTED]> wrote:
>   Hi,
>
> Gabrial Monty schrieb:
>   
>> I have to simulate an infrastructured wireless network behavior using 
>> different wireless cards specifications. I want to test the network 
>> performance using 802.11a cards with high transmit power level (not less 
>> than 600 mW). I have choosen the XtremeRange5 card but what I have realized 
>> is that its outdoor range is over 50 km and it indoor range is 150 m, during 
>> simulation if two nodes are further than 150 m the link throughput is 0, so 
>> is it realistic to assume that I deal with indoor networks? what I mean I am 
>> dealing with similar networks topology to wireless mesh networks, can I 
>> assume this network to be indoor and apply this NIC card specifications
>> 
> Basically there is no difference if you increase the transmission power 
> or use a high gain antenna. So, apart from the transmission power, the 
> sensitivity of the transceiver is what makes the most important 
> difference between two wireless cards.
>
> Before you proceed with your work you should read something about 
> wireless propagation. Just as an example, an outdoor range of 50km is 
> only possible if the transmitter is placed high enough above ground. 
> Otherwise you will not have a free line of sight and fresnel zone. When 
> I remember right, for 50km distance the transmitter needs to be placed 
> about 80m above ground. The environment defines how the transmitted 
> signal is attenuated. Just imaging you are inside a metal elevator - 
> then you probably get an "indoor range" of 1m.
>
> To answer your question: NO, it is absolutely not realistic to deduce 
> from a result of 150m transmission range to be in an indoor scenario.
>
> I suggest that you start by selecting a propagation model that mimics 
> the effects experienced in an indoor environment (e.g. multipath 
> propagation, s

Re: [ns] About wireless cards specifications simulation

2008-02-22 Thread Daniel Mahrenholz

Hi,

Gabrial Monty schrieb:
>   I have to simulate an infrastructured  wireless network behavior using 
> different wireless cards specifications. I want to test the network 
> performance using 802.11a cards with high transmit power level (not less than 
> 600 mW). I have choosen the XtremeRange5 card but what I have realized is 
> that its outdoor range is over 50 km and it indoor range is 150 m, during 
> simulation if two nodes are further than 150 m the link throughput is 0, so 
> is it realistic to assume that I deal with indoor networks? what I mean I am 
> dealing with similar networks topology to wireless mesh networks, can I 
> assume this network to be indoor and apply this NIC card specifications
Basically there is no difference if you increase the transmission power 
or use a high gain antenna. So, apart from the transmission power, the 
sensitivity of the transceiver is what makes the most important 
difference between two wireless cards.

Before you proceed with your work you should read something about 
wireless propagation. Just as an example, an outdoor range of 50km is 
only possible if the transmitter is placed high enough above ground. 
Otherwise you will not have a free line of sight and fresnel zone. When 
I remember right, for 50km distance the transmitter needs to be placed 
about 80m above ground. The environment defines how the transmitted 
signal is attenuated. Just imaging you are inside a metal elevator - 
then you probably get an "indoor range" of 1m.

To answer your question: NO, it is absolutely not realistic to deduce 
from a result of 150m transmission range to be in an indoor scenario.

I suggest that you start  by selecting a propagation model that mimics 
the effects experienced in an indoor environment (e.g. multipath 
propagation, shadowing, interference ...). If you have such a 
propagation model, you can start to investigate effects caused by the 
transmission power, cars specification, protocol ... whatever you like.

Hope that gets you started,
Daniel.



Re: [ns] Somthing wrong when I patch NS-2.27 with Emulation Extensions

2008-02-04 Thread Daniel Mahrenholz

Hi,

you need to install the kernel headers (or the complete kernel sources)
to compile this emulation extension.

Daniel.

M Lee schrieb:
> Hello:
>  I have install NS-2.27 on* Linux Redhat9* and patch it with  NS-2
> Emulation Extensions :
>  *Distributed Clients Emulation Patch against ns-2 2.27, examples [**TGZ
> *<http://ivs.cs.uni-magdeburg.de/EuK/forschung/projekte/nse/ns2emu-dstapp.tgz>
> *]*
>
>  Every thing is OK until I type "make", the following info coming:
>  .
>   /filter_core -I./asim/ -I./qs -o common/scheduler.o
> common/scheduler.cc
> *common/scheduler.cc:53:21: asm/msr.h: No such file or directory
> common/scheduler.cc: In member function `void
>RealTimeScheduler::sync_cputicks()':
> common/scheduler.cc:1059: `rdtscll' undeclared (first use this function)
> common/scheduler.cc:1059: (Each undeclared identifier is reported only once
> for
>each function it appears in.)
> make: *** [common/scheduler.o] Error 1*
> * *
> *  Anyone met this before? *How can I do?*   *
> **
> *   Thanks!*
> **
> * *
>
> * *
>   



Re: [ns] Which is the best Opreating System for NS2.27 emulation

2008-02-04 Thread Daniel Mahrenholz

M Lee schrieb:
> Hello:
>  I want to know which is the best Opreating System for
> NS2(2.27--2.32)?especially
> for emulation.
>  linux Redhat9 ? linux Debian? Free BSD?
>
>Thanks!
>   
Debian - if you use Debian, you can install the whole emulation 
extension using apt-get / aptitude. Furthermore, NSE has been developed 
and tested on Debian for a long time.

Daniel.



[ns] Monitor Queue Size for Wireless Nodes

2007-11-30 Thread Daniel T. Fokum

Hi,

How do I monitor the queue size for wireless nodes?  I have tried using
the following lines of code:

+
  set monitor [$ns_ monitor-queue $node_(1) $node_(0) stdout]

  proc queueLength {sum number} {
global ns monitor
set time 0.1
set len [$monitor set pkts ]
set now [$ns now]
set sum [expr $sum+$len]
set number [expr $number+1]
puts ‘‘[expr 1.0*$sum/$number]’’
$ns_ at [expr $now+$time] "queueLength $sum $number"
  }
  $ns_ at 0 "queueLength 0 0"


However, I get an error message from ns2 that states:
> can't read "link_(1:0)": no such variable
>while executing
> "$link_([$n1 id]:[$n2 id]) init-monitor $self $qtrace $sampleInterval"
>(procedure "_o3" line 3)
>(Simulator monitor-queue line 3)
>invoked from within
> "$ns_ monitor-queue $node_(1) $node_(0) stdout"
> invoked from within
> "set monitor [$ns_ monitor-queue $node_(1) $node_(0) stdout]"

Any help will be appreciated; I have checked the ns-2 manual and have not
been able to resolve this issue.

Thanks,
Daniel



[ns] Using an error model in NS2

2007-11-19 Thread Daniel T. Fokum

I am working on a project to study the effect of channel errors over a
wireless link.  I have read chapter 13 of the NS2 manual and I am not
quite clear as to how to implement the error model in ns2.  Any pointers
will be accepted.

Thanks,
Daniel



Re: [ns] Movement of nodes should be modifiable during runtime of an ns-2 simulation

2007-08-22 Thread Daniel Mahrenholz

Hi Bjoern,

Schuenemann, Bjoern schrieb:
> I'd like to make a simulation with ns-2 where the movement of the nodes is 
> modifiable by another program during the runtime of the ns-2 simulation. How 
> could I realize this? It seems that modifications of trace and movement files 
> are ignored by ns-2 after the files are read in by the TCL script
I think the problem is that after reading the movement files all events 
that actually control the movement are already in the event queue.

One of my students implemented an external movement control some years 
ago for the emulation mode. Basically he adds a listening socket that 
takes simulator control commands from an external program, converts them 
to TCL code and evaluates them. Then he ran the simulation for an 
infinite time (and send a stop command from the external controller to 
exit) and could move the nodes around as he liked.

But, this only works in emulation mode. The reason is, if you are in the 
normal simulation mode, time will jump from event to event. And if there 
is the last movement event in the queue, the simulator possibly will 
jump to the final stop event and quit. So, only emulation ensures that 
your simulation time does not runs too fast.

I took a quick look but could not find the diploma thesis / code of the 
student. I will spend more time searching if you like. Title of the 
thesis was " Eine dynamische WLAN-Emulationsumgebung auf Basis des 
NS-2", Thomas Kiebel, Diplomarbeit, 2005.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] why my TCL file cannot run ..?

2007-08-22 Thread Daniel Mahrenholz

AZHAR MOHD ARIS schrieb:
> The good news is i succesfully installed NS2 in my Ubuntu Linux OS.
> The bad news is :D i found an error when execute the command ns
> singlehop.tcl
>
> [EMAIL PROTECTED] :/usr/local/ns2/projek$ ns singlehop.tcl
>
> num_nodes is set 3
> invalid command name "Propagation/SimpleDistance"
> while executing
> "Propagation/SimpleDistance create _o24 "
> invoked from within
> "catch "$className create $o $args" msg"
> invoked from within
> "if [catch "$className create $o $args" msg] {
> if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
> delete $o
> return ""
> }
> global errorInfo
> error "class $..."
> (procedure "new" line 3)
> invoked from within
> "new $propType_"
> (procedure "_o3" line 29)
> (Simulator node-config line 29)
> invoked from within
> "$ns_ node-config -mobileIP OFF \
>   -adhocRouting NOAH \
>   -llType LL \
>   -macType Mac/802_11 \
>..."
> (file "singlehop.tcl" line 22)
>   
For me its seems that you implemented a new propagation model but forgot 
to make it available on the tcl layer.
Check the following:
- Makefile compiles your new propagation model
- the final binary contains the new model
- the new model is registered with tcl using the right name

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln
Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] How can i set transmission difference rage

2007-08-21 Thread Daniel Mahrenholz

Phitsanu Eamsomboon schrieb:
> Dear All
> My name is Phitsanu from Thailand , I  to do my research about ad
> hoc network , In my research having 100 mobile nodes but I want to set 50
> nodes can communicated in 250 m and another 50 node communicated in 500 node
> . How can I set in tcl for NS-2 ?
>
>   
Use antennas with different gains. Change the global settings for the 
antenna gain before you create a node. That means, set it to (for 
example) to 2dBi for the first 50 nodes and 8dBi for the next 50. Use 
the propagation.cc utility to calculate the exact parameters (search the 
list for details).

But be aware, the transmission range depends on both, the sender and the 
receiver. That means, if you have two kinds of nodes (A and B) you get 3 
different combinations and hence communication ranges (e.g. A->A: 250m, 
A->B: 400m, B->B: 500m).

Hope this helps,
Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] TCP packet size and Wireless channel delay settings?

2007-08-17 Thread Daniel Mahrenholz

Farzaneh Razavi Armaghani schrieb:
>   I'm monitoring the TCP throughput over 802.11 in wireless networks in my 
> scenario. 
>   When I change the TCP packet size, I can not see any change in TCP 
> throughput? is it alright? 
>   I'm using the command "Agent/TCP set packetSize_ 1460" in my TCL script and 
> I'm calculating the throughput using this equation: (total received bytes in 
> server * 8)/simulation time. Is it correct?
>   Also, How can I set the wireless channel delay to 25 microsecond in my TCL 
> script
Delay on the wireless link is defined by physical laws. However, you 
could increase the error rate to cause retransmissions on the MAC layer. 
Or you could introduce a processing delay in the agent.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] Is there exist any IRC for ns2

2007-08-16 Thread Daniel Mahrenholz

Scottie schrieb:
> I had do a google search and hardly find any of IRC for ns2.
> Regards,
>   Scottie
>   
4th hit with Google for "irc ns-2" : 
http://mailman.isi.edu/pipermail/ns-users/2005-November/052772.html

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] Is there a data rate limitation for ns emulate?

2007-08-15 Thread Daniel Mahrenholz

jerry zhao schrieb:
> I want to build a scenrio to emulate video streaming.
> my real network topology is:
>
>  A- - - - >B<- - - - -C
> The NS was installed on Computer B.
> The data rate is relative big(more than 30Mb/s). There is always
> warnings " RealTimeScheduler:
> warning:slop ... exceed limit "
> And some packets are lost, but the bandwith is enough to transmit the video
> data.
> Could anyone tell me if there is a data rate limitation for ns emulate? Any
> advice would be appreciated
ns-2 defines no limitation. However, ns-2 needs to process data packets 
almost in real-time and hence is limited by the speed of your hardware / 
operating system. If you emulate a wired network ns-2 will perform quite 
well. But for a wireless network performance requirements are much 
stronger (standard ns-2 will not be able to work at all for wireless 
networks in most cases).
But even if your CPU is fast enough, the operating system can introduce 
short but significant delays. To avoid them you should try the following:
- set ns-2 to run with real-time priority
- disable tracing
- use a multi-core / CPU system and pin ns-2 to one CPU / core
- disable other applications that write to the disk
- if you need tracing, buffer output in memory (ram disk)

For high-throughput emulations of wired networks you should consider a 
different emulator like NIST Net.

This should improve your results.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] Memory problems

2007-08-14 Thread Daniel Mahrenholz

Hi,

Ángel Cuevas Rumín schrieb:
> I am having some problems with my simulations.
> I am generating quite a lot packets and at some point during the simulation,
> it finishes with this messages in the screen:
>
>   terminate called after throwing an instance of
> 'std::bad_alloc'
>   what():  St9bad_alloc
>
>
> It seems there is not more free space to allocate new entities.
>
> I have tried to free memory by freeing packets (Packet::free(p)). I have
> also tried some other solutions but they didn't work.
>
> I would appreciate any kind of help from someone who had the same problem in
> the past or someone who knows which is the problem.
>   
For any memory problem I suggest to use valgrind (http://valgrind.org).
It saved my day several times.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] Changing NS Unit disk model of radio range

2007-08-14 Thread Daniel Mahrenholz

Hi,

Faisal Aslam schrieb:
> I am using cmu extension to simulate a wireless-sensor protocol. I 
> believe NS-2 only support unit disk transmission range model. However, 
> unit disk model is not realistic.
100% true.
>  I wish to have model that has following
> (1) Each node selects its transmission range (say c) using uniform 
> distribution from say [a, b].
>   
Simply modify the antenna gain or transmission power before creating a node.
> (2) Each node randomly selects few nodes near the border of circular 
> transmission range to be out of range. It is because in practice 
> transmission range is not exactly circular.
>   
You will need to implement (maybe there is already an implementation) a 
directional antenna. Also using the Shadowing propagation model 
introduces some probabilistic effects.

To select particular nodes that are not "in range" you could implement a 
new propagation model that uses some kind of lookup table to determine 
the reception of a packet.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] verying link capacity dynamically

2007-08-14 Thread Daniel Mahrenholz

bhaskar sardar schrieb:
>  Is there any way to dynamically change the bandwidth of a wireless link. I
> mean, during first 10 sec of the simulation BW is 1 Mb, for next 10 seconds
> BW is 2 Mb and so on. This is required when a user moves very fast.
>   
A wireless link does not have a "link bandwidth". Maybe you mean the 
trasmission data rate. If so, use the new 80211 MAC layer with multirate 
support.
If you really need links with defined bandwidth, you first need to 
implement a bandwidth management / admission control which is quite 
difficult in wireless networks.

Regards,
Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] advice (relatime protocol implementation on ns-2)

2007-08-10 Thread Daniel Mahrenholz

Hi,

koleti suresh schrieb:
> Please advice me how to implement real time protocol(it should work on linux) 
> on ns-2 ?
> can any one tell that in which applications we willl use ns-2?
> let me conform whether this tool is used for real time implementation of a 
> protocol or not?
> my basic doubt is i want to implement new protocol for linux. whether i can 
> use this tool for development purpose ?
>   
If you try to implement a new protocol for linux and need to test it in 
ns-2, our extension may be a solution for you:
http://ivs.cs.uni-magdeburg.de/EuK/forschung/projekte/gea/index.shtml
http://ivs.cs.uni-magdeburg.de/EuK/forschung/publikationen/pdf/2005/gea.pdf

If you find this approach suitable for your needs, contact me to get the 
extension.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] help ! for increase communication rage to 1600 m

2007-08-08 Thread Daniel Mahrenholz

Hi,

adjusting transmission power and thresholds is not sufficient for such a 
long distance. You also need to adjust MAC timeout values.
Citing from my own mail with subject "Re: [ns] MAC/802.11 "STA" error on 
ACK"
-
The Linux driver for the madwifi cards
includes a utility to calculate all relevant timeout values. Maybe it is
a starting point for you. If you do not have access to a madwifi card I
could ask a colleague for assistence.

Look here for some information:
http://forums.wi-fiplanet.com/showthread.php?t=6488


Faisal Aslam schrieb:
> Read the section of "transmission models" in NS-2 manual. You should 
> check which transmission model (e.g. FreeSpace, TwoRayGround, Shadowing) 
> is in use. You should try to adjust the RXThreah_ using threshold.c as 
> described in the NS manual.
>
> regards,
> Faisal
>
> Phitsanu Eamsomboon wrote:
>   
>> My name is Phitsanu from Thailand , I use ns-2 for to do my research .
>> May I trouble you for ask you some question , I try to increase Transmission
>> rage is 1600 m by increase Pt but  It still can communicate in 500 m range ,
>>
>> How can I  increase transmission rage is 1600 m if I use TwoRayGrounf model.
>> How can I calculate , Please recommend me !!!
>> 

Regards,
Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] Shadowing and Rayleigh models

2007-07-18 Thread Daniel Mahrenholz

Hi,

Venkataramana Badarla schrieb:
>   I am going to use Rayleigh fading model in some of my simulations. However,
>   we do not have this model in NS2. If any one you have solution for this,
>   kindly give me the details.
>
>   
I think there is an implementation somewhere, but I can't remember where.
>   Further, have any one you used Shadowing model instead of Tworayground 
> model.
>   When I ran example file in tcl/ex/wireless-shadowing-test.tcl, it shows a
>   very large string of digits for distCST_ (i.e., carrier sense distance). Is
>   this a problem? If any of you have a working tcl file kindle give me.
>   
This is not a problem. distCST_ is the distance where the propagation
models stops calculating signal strength (because it will be zero) to
reduce the computation time. The shadowing model includes a random
variable that affects the transmission power. Even in large distances
there is a (very) small chance to receive a packet. To be on the save
site, distCST_ is set to a very large value in order to avoid the
optimization.

You can find the setup I used for my simulations in appendix A of my
thesis (http://deposit.ddb.de/cgi-bin/dokserv?idn=980478588).

If you have any further questions, don't hesitate to ask me.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] shutting down link or node with wireless topology

2007-06-27 Thread Daniel Dekst

seems "$node off" works
  
-
抢注雅虎免费邮箱3.5G容量,20M附件! 

Re: [ns] shutting down link or node with wireless topology

2007-06-27 Thread Daniel Dekst

I also want to know whether there is any simple way to shut down nodes.
  I use "$ns_ node-config -IncomingErrProc UniformErr" to assign nodes 
different link loss.
  But I have to add a "kill-node" command to shut down nodes.
   
   
   
  >--
>
>Message: 17
>Date: Wed, 27 Jun 2007 21:20:48 +0200 (CEST)
>From: [EMAIL PROTECTED]
>Subject: Re: [ns] shutting down link or node with wireless topology
>To: "Daniel Mahrenholz" <[EMAIL PROTECTED]>
>Cc: ns-users@ISI.EDU
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain;charset=iso-8859-1
>
>Hello Daniel,
>
>Thank you, but you didnt say why the solution of simulating a complete
>node failure wouldn't work.
>I understand that shutting down links is not an option since links
 >don't
>exist like i supposed but shouldn't i be able to shut down a node in
>wireless like i do in wired scenarios figures?
>
>Patrick
>
>>> I am a new ns user i am trying to simulate a wireless topology using
>>> OLSR
>>> as a routing protocol. I need to simulate a link failure for a short
>>> period of time to study the reactions of OLSR to the failure
>> In a wireless scenario you do not have links, so you cannot shut them
>> down. One option is to simply move a node out of the transmission
> >range
>> of another. This may become difficult for a large number of nodes.
> You
>> could also extend the node to implement something like a MAC filter
 >so
>> that a node simply ignores messages from individual sources. But im
 >not
>> aware of any such solution currently existing. You could also modify
 >the
>> propagation model to create very specific transmission failures, e.g.
>> drop all packets from a specific node (node failure).
>
> Daniel.
>
> --
> Dr.-Ing. Daniel Mahrenholz
> rt-solutions.de GmbH
> Oberl?nder Ufer 190a
> D-50968 K?ln
>
> Web: www.rt-solutions.de
>
> rt-solutions.de
> networks you can trust.
>
>
--

  
-
抢注雅虎免费邮箱3.5G容量,20M附件! 

Re: [ns] Receive Wireless Frames thresholds (Tiago Junqueira)

2007-06-27 Thread Daniel Dekst

Hi,
   
  Why I always get 'cannot post' message. That considerably affects my passion. 
 :>
   
  In my experience, Pt_ seems to be the max transmission power and relate to 
something that count the affected neighbors.
  So if we change Pt_ directly, some nodes will not receive packets as we 
thought.
  What I do is using a new variable named txPower to replace the Pt_ in 
sendDown() function.
  Then you can change the transmission power 'txPower' from 0 to max 'Pt_', but 
Pt_ is still the max transmission power.
  By this way, you will not decrease the number of affected neighbors.
   
  When the signal strength of the frame is between RxThresh_ and
CSThresh_ , it will be tagged as corrupted, and it will be dropped in 
implemention of mac-802_11.cc.
  Generally, if the receiving strength of a packet is under the RxThresh_, it 
will be considered as cannot be interpreted correctly with too much error bits.
  Some other implementions might be changed to according to BER.
   
  Hopes helpful.

>--
>
>Message: 1
>Date: Tue, 26 Jun 2007 04:22:25 +0200
>From: "Tiago Junqueira" 
>Subject: [ns] Receive Wireless Frames thresholds
>To: ns-users@ISI.EDU
>Message-ID:
><[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>Hi people,
>
>I'm not understanding how is processed an incoming wireless packet. I
>setted the following thresholds:
>Phy/WirelessPhy set RXThresh_ 630e-15
>Phy/WirelessPhy set CSThresh_ 630e-15
>
>I'm using the FreeSpace model, and a distance of 880 m with Gr=50 and >Gt=25.
>If I run the script for a Pt_ = 0.0158 W (12 dBm), the power received
>using the Friis formula or the result printed by the function i get:
>OFDM phy receiving packet with mod=0 and cp=0.25
>0.031842: d: 880.00, Pr: 1.199811e-09
>
>But if I run the script for Pt= 0.01 W (10 dBm), there is no packet
>received, and Pr is not printed, but it should be more or less
>7.2e-10.
>Why the value is higher than the thresholds, and the frames are not >accepted?
>(I don't know if this is important,but i'm simulating WiMAX with the
>NIST package)
>
>Another question is, the CSThresg_ is the collision Threshold, is it
>important when there is only one cbr flow from one station to the
>mobile node? There should be no collisions?
>When the signal strength of the frame is between RxThresh_ and
>CSThresh_ , it will be tagged as corrupted, and there is a probability
>of reception in the MAC layer or not?
>
>thanks in advance
>
>
>
>--

   
-
 雅虎免费邮箱3.5G容量,20M附件!

Re: [ns] shutting down link or node with wireless topology

2007-06-27 Thread Daniel Mahrenholz

Hi,

[EMAIL PROTECTED] schrieb:
> I am a new ns user i am trying to simulate a wireless topology using OLSR
> as a routing protocol. I need to simulate a link failure for a short
> period of time to study the reactions of OLSR to the failure
In a wireless scenario you do not have links, so you cannot shut them 
down. One option is to simply move a node out of the transmission range 
of another. This may become difficult for a large number of nodes. You 
could also extend the node to implement something like a MAC filter so 
that a node simply ignores messages from individual sources. But im not 
aware of any such solution currently existing. You could also modify the 
propagation model to create very specific transmission failures, e.g. 
drop all packets from a specific node (node failure).

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] How MAC finds out that there is no more traffic?

2007-06-18 Thread Daniel Mahrenholz

Hai T. Vu schrieb:
> I am working on Mac protocol for wireless network. Let say I have node_(1)
> with cbr traffic sending to node_(0). The cbr traffic will be like this:
> start at 1.0, stop and 2.0, (re)start at 3.0 and stop again at 4.0 second.
> My question is that: at 2.0, how Mac finds out that the traffic is indeed
> done? For example, if node_(2) is a mobile phone, and cbr traffic is the
> voice call, then at 1.0 it needs to set up the call and after 2.0 second it
> needs to tear down the call.
>
> If you know how to do this, please help me. I appreciate any help.
>   
Usually a MAC will not care about calls etc, it only handles individual 
data packets. In your terms, the MAC layer knows that there is no more 
traffic if its input buffer is empty. If you need a MAC layer that is 
aware of the duration of a call you need to implement some cross-layer 
interaction, i.e. the layer handling the voice connection needs to pass 
this information down to the MAC layer e.g. to (de)allocate ressources 
on the medium.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.




Re: [ns] help required regarding analysis of tracefile

2007-06-01 Thread Daniel Mahrenholz

Hi,

harpreet schrieb:
>   
> Hi.
> I want to analysis trace file which looks like (not exactly ) data given 
> below.
> Here are NS Manual's example
> + 1.84375 0 2 cbr 210 --- 0 0.0 3.1 225 610
> - 1.84375 0 2 cbr 210 --- 0 0.0 3.1 225 610
> r 1.84471 2 1 cbr 210 --- 1 3.0 1.0 195 600
> r 1.84566 2 0 ack 40 --- 2 3.2 0.1 82 602
> + 1.84566 0 2 tcp 1000 --- 2 0.1 3.2 102 611
> - 1.84566 0 2 tcp 1000 --- 2 0.1 3.2 102 611
> r 1.84609 0 2 cbr 210 --- 0 0.0 3.1 225 610
> + 1.84609 2 3 cbr 210 --- 0 0.0 3.1 225 610
> d 1.84609 2 3 cbr 210 --- 0 0.0 3.1 225 610
> - 1.8461 2 3 cbr 210 --- 0 0.0 3.1 192 511
> r 1.84612 3 2 cbr 210 --- 1 3.0 1.0 196 603
> + 1.84612 2 1 cbr 210 --- 1 3.0 1.0 196 603
> - 1.84612 2 1 cbr 210 --- 1 3.0 1.0 196 603
> + 1.84625 3 2 cbr 210 --- 1 3.0 1.0 199 612
>
> Ok. last field is packet identifier right? and it's unique.
> But 1st line 610 packet enque and next deque. but 7th line 610 packet again 
> received and enque and dropped.
> How can this happen? packet identifier is not unique?
>   
Line 1: packet #610 enqueued on node 0
Line 2: packet #610 dequeued on node 1
Line 7: packet #610 received on node 2 from node 0
Line 8: packet #610 enqueued on node 2 (now with new destination / next
hop 3)
Line 9: packet #610 dropped

If you receive a packet, the receiver is still the destination.

Hope this clearifies you problem.,
Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.




Re: [ns] How to modify the packet content at intermediate nodes

2007-05-22 Thread Daniel Dekst

maybe you can extract the info from packet and encapsulate again
 try:
 struct msg_struct msg_name
 memcpy(&msg_name, Pkt->accessdate(), sizeof(struct msg_struct));

[EMAIL PROTECTED] 写道:

--

Message: 10
Date: 21 May 2007 14:23:49 -
From: "SB" 
Subject: [ns] How to modify the packet content at intermediate nodes
To: ns-users@ISI.EDU
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

Dear NS users,
Consider the following network

n1--n2--n3---n4 ?.

In this network the node n1 is source node and n4 is destination node.
node n1 is sending packets to node n4.Now what I want is to modify the packet 
contents at node n2 and n3.How to do this one?i.e how to access and modify the 
packet contents at intermediate nodes.
Thank you well in advance.
Satish.

--





  
-
抢注雅虎免费邮箱3.5G容量,20M附件! 

Re: [ns] Ns2 with threads

2007-05-02 Thread Daniel Mahrenholz

Hi,

Jose M.Herrera schrieb:
> A question.
> Does they know if Ns2 support threads 
Usually not - but you can get a version that uses threading internally. 
The question is for what you need threading?

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] HELP WITH Mac/Csma/Cd

2007-04-27 Thread daniel . rodriguez






> Hi All:
> 
> Im working with NS2 version 2.31 and I'm simulating a simple LAN 
> Network with two hosts connected to the lan, a hub and one gateway 
> connected to the hub.  I have created the Lan as follows: 
> 
> $ns make-lan "$n_(1) $n_(2)  $hub" 10Mb 100ms LL Queue/DropTail 
> Mac/Csma/Cd Channel
> $ns duplex-link $hub $gw 10Mb 10ms DropTail
> $ns duplex-link-op $hub $gw orient right
> 
> The problem is that, when there is a collision in the LAN, CSMA/CD 
> should send a Jam signal, the nodes should stop transsmiting and they 
> should enter on a back off time to retransmit the pck, but the 
> simulation doesnt shows all this events. What can i do to see all this 
> events including retransmitions in the nam simulation and in the trace 
> file??? Thanks.

___

AVISO LEGAL: El presente correo electronico no representa la opinion o el 
consentimiento oficial de la PONTIFICIA UNIVERSIDAD JAVERIANA. Este mensaje es 
confidencial y puede contener informacion privilegiada la cual no puede ser 
usada ni divulgada a personas distintas de su destinatario. Esta prohibida la 
retencion, grabacion, utilizacion, aprovechamiento o divulgacion con cualquier 
proposito. Si por error recibe este mensaje, por favor destruya su contenido y 
avise a su remitente.
En este aviso legal se omiten intencionalmente las tildes.

Este mensaje ha sido revisado por un sistema antivirus, por lo que su contenido 
esta libre de virus.
This e-mail has been scanned by an antivirus system, so its contents is free of 
viruses.



[ns] Modifications of ALOHA protocol for Satellite for usage in other communications

2007-04-20 Thread Daniel

Hi all,

I searched in the ns-users archives for infos about Aloha protocol for
the MAC layer, to use it in a ns-2 simulation.
I found almost all questions and no answers.
I'm trying to modify the sat-aloha.tcl to apply it to a 1090 Mhz
channel were 112bits messages are broadcasted using pure aloha for the
first sending and then these are periodic every 0,5ms.

Do you know where to find some infos or examples of modifications of
the sat-aloha.tcl ???

thx in advance

Daniel Casolini



[ns] what about ALOHA protocol in ns2 ??

2007-04-18 Thread Daniel

 Hi all,

I've to implement a PURE ALOHA  protocol for the MAC layer for a ns2
simulation.
Is it already integrated in any ns2 file?
Does anyone has already implemented it?
Do you know where to find it?

Thx a lot

Daniel Casolini


Re: [ns] Lucents WaveLAN propagation model

2007-04-18 Thread Daniel Mahrenholz

Mohammed Abu Hajar schrieb:
>
>   Yes, realy I want to simulate the performance of DSR routing protocol using 
> NS-2 , I did that and compare my results I got with a published paper called 
> " Performance omparison of Two On-Demand Routing Protocols for Ad Hoc 
> Networks ", but unfortunatly there were some differences among figures 
> relayed to:  Normalize Routing Load , Average End to End Delay, Packet 
> delivery Ratio. I am using the same parameters used in the paper , but there 
> is a statement menssion in the peper talks " 
>   
You may use the same parameters - but do you use the same version of 
ns-2? Small code changes can have a significant effect.
>   The radio model uses
>   characteristics similar to a commercial radio interface,
>   Lucent’s WaveLAN [14, 15]. WaveLAN is modeled as a
>   shared-media radio with a nominal bit rate of 2 Mb/s and a
>   nominal radio range of 250 m."
>   I am didn't understand how I write this parameter in my TCL script file , 
> So I think the differences in my results  related to this point.
>   
If I remember right, these are the default values included in 
tcl/lib/ns-default.tcl or ns-node.tcl . Look there or in the tutorials 
mentioned in the ns-2 wiki for examples to setup wireless nodes. If you 
use a current ns-2 version, my guess is that the code makes most of the 
difference.

Personally, I never used this setup because a) the Lucent WaveLAN 
adapter has significant differences to currrent WiFi cards and b) all 
models that include a fixed communication range deliver results not 
applicable to real-world scenarios / applications. My personal advise - 
at least you the ShadowPropagation model. It is not perfect but creates 
many "problems" you have to cope with in the real world.

More about this topic and the setup used for my research can be found in 
my thesis at 
http://diglib.uni-magdeburg.de/Dissertationen/2006/danmahrenholz.htm

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.




[ns] what about ALOHA protocol in ns2 ??

2007-04-18 Thread Daniel

Hi all,

I've to implement a PURE ALOHA  protocol for the MAC layer for a ns2
simulation.
Is it already integrated in any ns2 file?
Does anyone has already implemented it?
Do you know where to find it?

Thx a lot

Daniel Casolini


Re: [ns] strange bug in ns2 - halted forever (more details) ?

2007-04-18 Thread Daniel Mahrenholz

tdinhtoan schrieb:
> I got the following bug in ns2: I run a Tcl file, after running for a
> while, it is halted forever (of course it is expected to run more), and I
> could not get the results at all.
>
> There is no infinite loop in my code. My simulation is a wireless mesh  
> network topology consisting of several nodes, and I run UDP flows between  
> nodes. I compute the throughput of each node and output them to the screen  
> every 5ms. The bug is like this: After outputing the results several times  
> (say 5 times, for example), it is halted and does not outputs more  
> results, but I program it to output the results 10 times. Sometimes, with  
> some topologies, it works as expected - running to the final, and  
> sometimes with other topologies, it does not work.
>   
I don't know this bug, but I suggest to do the following:
1. Check if you flush the output after you write your statistics. This 
is a mistake I made several times.
2. Look into the trace file (enable it if necessary) if the simulation 
generates events during the time it seems to be "halted"
3. Run the simulation inside a debugger and break it when it hangs to 
see whats going on. Maybe you managed to create an infinite loop of 
events triggering itself over and over again.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] Lucents WaveLAN propagation model

2007-04-18 Thread Daniel Mahrenholz

Mohammed Abu Hajar schrieb:
>   How can I implement(write)  Lucent’s WaveLAN propagation model in ns-2 tcl 
> script file?, is it like: 
>   set opt(prop)   Propagaion/TwoRayGround, or
>   set opt(prop)   Propagaion/FreeSpace, or
>   set opt(prop)   Propagaion/Shadowing. 
Don't mix the modelling of a transmitter with the modelling of the 
signal propagation.

The model of the card (see answer from Ran Ren) defines what signal is 
generated (frequency, power), the antenna characteristics (gain), and 
what signals the card is able to receive (*Thresh).

The propagation model defines how the signal changes (signal strength 
degradation, noise, etc.) between the transmitter and the receiver.

If you have more specific questions, don't hesitate to ask me.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.



Re: [ns] how to computer the Transmission range

2007-04-18 Thread Daniel Mahrenholz

Mohammed Abu Hajar schrieb:
> Is there any utility in NS-2 that compute the transmission range of a 
> wireless node like in glomosim simulator you type at the command line: 
> radio_range config.in it's gives the range in m like 375m.
>   
Look in the indep-utils/propagation directory.

But keep in mind - in reality you do not have anything like a discrete 
transmission range. Instead you have regions with different receive 
probabilities.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.




[ns] Simulation of broadcast messeges on 1090 MHz data-link

2007-04-14 Thread Daniel

Hi all,

I'm trying to simulate the broadcasting of ADS-B messages on the 1090MHz 
Extended Squitter data-link, used for aeronautical purposes. This 
messages are transmitted using Mode S replies(112 bits). The access to 
the channel is randomic. There are no particular protocols to implement.
The specifications of the Mode S reply signal are described at page 10 
in http://adsb.tc.faa.gov/WG3_Meetings/Meeting8/Squitter-Lon.pdf and in 
a more detailed way in the ICAO Annex 10 vol 4 (1,3 Mb pdf file) 
http://dcaa.slv.dk:8000/icaodocs/Annex%2010%20-%20Aeronautical%20Telecommunications/Volume%20IV-%20Surveillance%20Radar%20and%20Collision%20Avoidance%20Systems/Vol.%204-%20AMDT%2080.pdf
 
.

How can I implement this telecommunication system in ns-2?
How can I implement the signal waveform?

Thanks a lot

Daniel (Roma,Italy)



Re: [ns] HELP: installation problems - no display found for nam

2007-04-14 Thread Daniel Casolini

Timo Reimann ha scritto:
> Daniel wrote:
>   
>> I tried to install on my Intel based MacBook Pro the
>> ns2-allinone-2.29.3-Precompiled-UniversalBinary-Intel-Mac package that I
>> found here
>> <http://nsnam.isi.edu/nsnam/index.php/Downloading_and_installing_ns-2>.
>> I tried to run a simple tcl example script ( /ns-2.29/tcl/ex/simple.tcl ),
>> but I had this error running the NAM part of the simulator:
>>
>> running nam...
>> nam: couldn't connect to display ":0.0"
>>
>> Maybe I have to change some settings, but I don't know where they are.
>> Could someone help me??
>> 
>
> This doesn't seem to be a problem with ns-2 but Unix which Mac OS uses.
> Basically, this error shows up when you don't have an X server (which is,
> IIRC, actually called client in the X terminology) running.
>
> So are you sure you're having an X server running? I don't know if that's
> default on Mac OS, don't know too much about it.
>
> Can you open any other GUI application from the shell you're trying to
> start nam from? (like xterm?) If not, that would support my theory that
> something with your Unix-MAC-GUI chain is broken...
>
>
>   
Thank you very much Timo!!
I run the X11.app and then ns and nam was displayed!!! Super!
I was using Parallels (a virtual machine) to run ns on Linux, and now I 
don't need it anymore.

Thanks a lot,

Daniel


Re: [ns] HELP: installation problems - no display found for nam

2007-04-14 Thread Daniel Casolini

Timo Reimann ha scritto:
> Daniel wrote:
>   
>> I tried to install on my Intel based MacBook Pro the
>> ns2-allinone-2.29.3-Precompiled-UniversalBinary-Intel-Mac package that I
>> found here
>> <http://nsnam.isi.edu/nsnam/index.php/Downloading_and_installing_ns-2>.
>> I tried to run a simple tcl example script ( /ns-2.29/tcl/ex/simple.tcl ),
>> but I had this error running the NAM part of the simulator:
>>
>> running nam...
>> nam: couldn't connect to display ":0.0"
>>
>> Maybe I have to change some settings, but I don't know where they are.
>> Could someone help me??
>> 
>
> This doesn't seem to be a problem with ns-2 but Unix which Mac OS uses.
> Basically, this error shows up when you don't have an X server (which is,
> IIRC, actually called client in the X terminology) running.
>
> So are you sure you're having an X server running? I don't know if that's
> default on Mac OS, don't know too much about it.
>
> Can you open any other GUI application from the shell you're trying to
> start nam from? (like xterm?) If not, that would support my theory that
> something with your Unix-MAC-GUI chain is broken...
>
>
>   
Thank you very much Timo!!
I run the X11.app and then ns and nam was displayed!!! Super!
I was using Parallels (a virtual machine) to run ns on Linux, and now I 
don't need it anymore.

Thanks a lot,

Daniel



[ns] HELP: installation problems - no display found for nam

2007-04-13 Thread Daniel

 Dear all,

I tried to install on my Intel based MacBook Pro the
ns2-allinone-2.29.3-Precompiled-UniversalBinary-Intel-Mac package that I
found here
<http://nsnam.isi.edu/nsnam/index.php/Downloading_and_installing_ns-2>.
I tried to run a simple tcl example script ( /ns-2.29/tcl/ex/simple.tcl ),
but I had this error running the NAM part of the simulator:

running nam...
nam: couldn't connect to display ":0.0"

Maybe I have to change some settings, but I don't know where they are.
Could someone help me??

Thanks in advance

Daniel


Re: [ns] how to pass PHY layer information to upper layers?

2007-04-12 Thread Daniel Mahrenholz

sri_seeta_ram schrieb:
> I want to pass the "Received Power" of the packet from PHY layer to the
> protocol agent.
> how can i achieve this in ns2?
>
> I found the Received power in wirelessphy.cc and mac-802_11.cc i.e PHY and
> MAC layers.
> how can i pass this info to LL and then Routing agent...?
>   
A Packet in ns2 contains all configured headers in parallel. So, if you 
can access information on one layer (e.g. PHY), you can also access it 
on other layers. If the information is not contained in a header you 
need to add a new header to the packet structure. In this header you can 
store your information and pass it around.

Daniel.

-- 
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.




Re: [ns] Doubt........plz help me

2007-03-29 Thread Daniel Mahrenholz


Shailesh Gamit schrieb:

hello to every ns users,
 i have a doubt that in ad hoc network the links are wireless, so
when we send the packets using any protocol i.e aodv, dsr.
then the receiving is done at the node which is specified in destination
address. But if we consider real scenerio of wireless links than all the
packets sent are always BROADCASTED  and received by all the node. In
simulation it is not the same
  
You are wrong. There is nothing like a wireless link. All nodes are 
attached to a Channel object that is a broadcast medium. If a node 
transmits a packet, the simulator calculates the receive power for all 
nodes attached to the channel. If the signal is strong enough, the node 
will receive the packet. But if the destination address does not match, 
it will simply ignore it.


Regards,
Daniel.

--
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.




Re: [ns] MAC/802.11 "STA" error on ACK

2007-03-29 Thread Daniel Mahrenholz


[EMAIL PROTECTED] schrieb:

I sent CBR packets from node 0 to node 1. The distance between the two
nodes is changing. I found that when the distance is more than 700m, the
transmitter seems always drop the ACK coming back from the receiver, and
give an error state of "STA". When the distance is below 500m,
everything is fine. I attached some trace below. 


Is this caused by the long propagation delay of 700m? If so would change
the retransmit timeout solve the problem? How can I do that? Or is there
any other suggestion on the reason?
  

Increasing the retransmission timeout is not enough. You will need to
increase other timeouts as well. The Linux driver for the madwifi cards
includes a utility to calculate all relevant timeout values. Maybe it is
a starting point for you. If you do not have access to a madwifi card I
could ask a colleague for assistence.

Look here for some information:
http://forums.wi-fiplanet.com/showthread.php?t=6488

Regards,
Daniel.

--
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.




[ns] problem running nam with a MacBook Pro

2007-03-21 Thread Daniel

Hi all,

I installed the ns precompiled package for mac that I found in the ns wiki.
I only had a problem when trying to start an example tcl file:

dCasolini:/ns-allinone-2.29/ns-2.29/tcl/ex dcasolini$ ns simple.tcl
210
0.0037499
running nam...
dCasolini:/ns-allinone-2.29/ns-2.29/tcl/ex dcasolini$ nam: couldn't 
connect to display ":0.0"

dCasolini:/ns-allinone-2.29/ns-2.29/tcl/ex dcasolini$

I think it has problems to find the 15,4" LCD display in the MacBook Pro.
Anyone can help me to solve this problem?

Thank you very much

Daniel



Re: [ns] definition of sending / receiving threshold per mobile node

2007-03-08 Thread Daniel Mahrenholz


Hi Markus,

Leitner, Markus schrieb:

I am currently working on a project dealing with simulation of mobile
nodes. 
To describe relevant network topologies I am searching for a possibility

to define the receiving threshold individually per node (e.g. mobile
node A has a receiving threshold of X, while all other nodes have a
receiving threshold of Y).
 
I know how to set the receiving threshold in principle via RXThresh_ but

I unfortunately did not find any way of specifying this per node.
 
Is anybody aware how to implement this?
  
I don't know if the following works for the threshold (it did for the 
antenna gain). Just give it a try. Set the threshold before you create a 
node. The node constructor will copy the value and you can change it 
later without changing the properties of already existing nodes. Maybe 
this is a bug - but we used it as a feature.


Daniel.

--
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

Web: www.rt-solutions.de

rt-solutions.de
networks you can trust.




Re: [ns] what is the transmission range fo mobile nodes

2007-02-08 Thread Daniel Mahrenholz


Satish B schrieb:

I want know what is the transmission range(ie upto maximum what distance it can 
send/receive packets with other nodes)of the mobile nodes in ns2.If I want to 
set with new range how to send it.please let me know this.
Thank  you .
  

This question has been answered multiple times.

Transmission range is NOT a parameter you can set. It is the result of
the signal propagation. To change the transmission range you can adjust
the transmission power, receive thresholds, antenna gains, and
propagation parameters. The propagation.cc utility
(indep-utils/propagation/) helps you to calculate these parameters.
Additionally, you should study some hardware specs to get realistic values.

Daniel.

--
Dr.-Ing. Daniel Mahrenholz
rt-solutions.de GmbH
Oberländer Ufer 190a
D-50968 Köln

rt-solutions.de
networks you can trust.




Re: [ns] Ns-users Digest, Vol 37, Issue 24

2007-01-25 Thread Daniel Dekst

Hi,
   
  I'm not quite sure about that. Just see from mac-802_11.cc, it 
dosen't drop any packet whose dst = MAC_BROADCAST.
And in files like aodv.cc, in function recv(), it will drop packets 
whose src = itself and forward hop num !=0 (==0 mean it generates the 
packet).
So I thought all nodes including sender will receive broadcasting 
pakcets.
  If it doesn't, somewhere maybe have ensure that the sender will not 
receive its own packets.
And it's true in real world. I don't think you can receive while you 
are sending.
  In mac layer, when you send packets, the MAC state will be setted as 
SEND and no packets can be received in this period of time.
This might be the reason that sender does not receive its own 
broadcasting packets.
   
  Pei


  --

Message: 9
Date: Wed, 24 Jan 2007 17:48:21 +0100
From: "Paolo Cencioni" 

Subject: [ns] how to send itself a packet via IP-BROADCAST
To: ns-users@ISI.EDU
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

What do you mean with "we ensure that the sender drops it in agent 
layer"?

The Agent i'm using doesn't drop any package, but the sender doesn't
receive the package he broadcasted anyway.
So, i'd like to know what do i have to change to let ALL nodes
(including the sender) receive a broadcasted packet.
Thank you very much

-- 
Paolo Cencioni

-
 Mp3疯狂搜-新歌热歌高速下   

Re: [ns] Energy analysis in NS-2

2006-12-21 Thread Daniel Dekst

Hi,

I'm also confused at how to compare my method with another concerning energy 
consumption. Some use success ratio vs. time to illustrate the better 
performance on energy save.
If you have any idea, pls tell me.

Pei

--

Message: 3
Date: Thu, 21 Dec 2006 09:38:47 + (GMT)
From: pipi VN 
Subject: Re: [ns] Energy analysis in NS-2
To: Matthias Kuhnert 
Cc: NS-user 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ascii

Hi, I have read that two paper however that was exactly what I have
said in my previous email, the paper mean nothing if you do not show
how you implement it and how you measure it. The 2 paper said they have
done something, but how they did it, does they do the right way? There
are no explanation and public work (code, analysis script, validation
...) after they public their paper and therefore they can not guanranty
that the result is correct (it could be 1+1 =3). 
I'm finding a
resource that give a hint of how to extract the metric regarding energy
consumtion in wireless network from new trace format. There are not
much information about is so far. Please share it or post here if you
know how to locate it from somewhere or someone. Thank you.


Ns-2 newbee



 __
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com

[ns] What's the relationship of Pt_ and Pt_consume_

2006-12-14 Thread Daniel Dekst

Hi, all
   
  What's the relationship of Pt_ and Pt_consume_? 
   
  I know when a node receive a packet, it will calculate Pr according to Pt_, 
then decide whether successfully capture this packet. If I calculate "txPower" 
according to the distance between two nodes, and replace the Pt_ then the 
transmission range will be changed. But how much energy should be decreased 
also should be changed, which is implemented in function 
"em()->DecrTxEnergy(actual_txtime, Pt_consume_)".
   
  Then should we use "(txPower/Pt_)*Pt_consume_" to replace "Pt_consume_" or 
some other functon?
   
  Thanks in advance,
  Pei


-
抢注雅虎免费邮箱-3.5G容量,20M附件! 

Re: [ns] threads in NS-2

2006-12-08 Thread Daniel Mahrenholz

Savitri P. Pandharikar schrieb:
>Is it possible to create threads in NS-2,I am using Linux platform for 
> NS-2.
>   
In general - yes. But for what purpose? You cannot run the simulation 
with multiple threads. But you can off-load certain tasks like output 
compression to separated threads.

All simulations are event-based and do not need threads.

Daniel.



[ns] Who have once changed the rts_frame?

2006-11-30 Thread Daniel Dekst

Hi, all
   
  Who have once changed the rts_frame?

I added a variable (double ldDistSum)  into the "struct rts_frame", then we 
cannot forward packet. The dh_ra, dh_ta seems erratic. where set the 
"mh->dh_ra, mh->dh_ta" of RTS.  (mh = HDR_MAC802_11(pktRTS_))
 
   
I've debugged it for two days with gdb and understood roughly how the packet 
transmits from AGT to MAC. When the first packet arrives ll layer, it will call 
arpresolve(dst, p, this). There it will call arprequest(src, dst, ll) for we 
don't have a MAC address for next hop hence send an ARP Request. In function 
arprequest() it will call s.schedule(ll->downtarget_, p, delay_). I don't know 
how to go on debugging, but I guess it will run arpinput() and it's seems right.

There the next hop receive the ARP Request and send RTS to previous node. So I 
set breakpoints at recv() in mac-802_11.cc and assure "dh_ra" is right until in 
Mac802_11::recv() I cannot go on debugging for encounter mhDefer_.start().

I thought it should call deferHandler() and run check_pktRTS() when time is 
expired. 

In check_pktRTS() is where I found difference. originally in the function the 
mh->dh_ra, mh->dh_ta is right, but if I've inserted a new variable into the 
"struct rts_frame" here we will get wrong value.

A question is in sendRTS() we didn't set "mh->dh_ra" (mh = 
HDR_MAC802_11(pktRTS_)), then what happened between mhDefer.start() and 
deferHandler(). I think "mh->dh_ra, mh->dh_ta" is set in the  interval.

In short, where set "mh->dh_ra, mh->dh_ta" of RTS.

  Thanks in advance,
  Pei

-
 雅虎免费邮箱-3.5G容量,20M附件

Re: [ns] sleep a node

2006-11-29 Thread Daniel Dekst

I'm not Matthias, but it's seems that you haven't declared "node_wakeup" 
"node_sleep" in your mac/mac-tdma.h
  you can try it.
  Or "make clean,  make depend, make", maybe they are declared somewhere
   
  Pei

  Message: 3
Date: Wed, 29 Nov 2006 13:02:25 +0100
From: "juan manuel gomez garcia" 
Subject: Re: [ns] sleep a node
To: Ns-users@ISI.EDU
Message-ID: 
Content-Type: text/plain; charset=iso-8859-1; format=flowed

Hi Matthias :

I'm investigating the energy consumption in zigbee routing protocol. For 
that I need that the nodes sleep.
Then I found the code of Iyappan. This are the steps that I do:

? Delette the files of ns2.
? Copy the files of Iyappan.
? 'make clean'
? 'make'
but the 'make' dont finish because I obtain the next error:

mac/mac-tdma.cc: In member function `void MacTdma::radioSwitch(int)':
mac/mac-tdma.cc:484: error: `node_wakeup' undeclared (first use this 
function)
mac/mac-tdma.cc:484: error: (Each undeclared identifier is reported only 
once
for each function it appears in.)
mac/mac-tdma.cc:494: error: `node_sleep' undeclared (first use this 
function)
make: *** [mac/mac-tdma.o] Error 1

I have not modified anything.
What are the changes that you do for Iyappan code run ok?

Thank you very much for your help.



l f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

_
Descubre la descarga digital con MSN Music. M?s de un mill?n de canciones. 
http://music.msn.es/



-
 Mp3疯狂搜-新歌热歌高速下   

Re: [ns] recall a procedure every time that a packet arrives

2006-11-29 Thread Daniel Dekst

You may can achieve your purpose by insert your own function in the "recv()" 
function
   
  Pei


Message: 5
Date: Wed, 29 Nov 2006 17:41:49 +0100
From: "[EMAIL PROTECTED]" 
Subject: [ns] recall a procedure every time that a packet arrives
To: "ns-users" 
Message-ID: 
Content-Type: text/plain; charset=iso-8859-1

Hi,

is it possible to recall a procedure 
every time that a packet arrives 
in a tail? Or better,I would want to
do a special control on every packet 
that arrives in a tail,in particular which 
flow belongs the packet.


Thank you very much

Regards,
Luca


--
Scopri subito RAS FullCasa: vinci 500? di buoni Mediaworld a settimana ed un 
viaggio Expedia!
http://click.libero.it/ras29nov06




--
Scopri subito RAS FullCasa: vinci 500? di buoni Mediaworld a settimana ed un 
viaggio Expedia!
http://click.libero.it/ras29nov06




--
Scopri subito RAS FullCasa: vinci 500? di buoni Mediaworld a settimana ed un 
viaggio Expedia!
http://click.libero.it/ras29nov06



-
 Mp3疯狂搜-新歌热歌高速下   

Re: [ns] Regarding linking c++ code in ns2

2006-11-29 Thread Daniel Dekst

You might need to find a tutorial to learn something basic.
  You can refer to 
  "Implementing a New Manet Unicast Routing Protocol in NS2"  Francisco J. Ros  
 Pedro M. Ruiz
  Or
  http://blog.chinaunix.net/u/10654/showart.php?id=52030
  http://140.116.72.80/~smallko/ns2/ns2.htm  (need to understand chinese)

  Pei
   
  Message: 2
Date: Wed, 29 Nov 2006 12:10:19 +0530
From: "Anuradha Sehgal" 
Subject: [ns] Regarding linking c++ code in ns2
To: ns-users@ISI.EDU
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Dear Sir/Madam,

i m facing the probelm of linking c++ code in ns2.
i have installed ns2 that is working correctly..but now how to run c++ code
in it..please do help me..its really very urgent..
please reply soon..thanks in advance...


sincerely,
Anuradha Sehgal



-
 Mp3疯狂搜-新歌热歌高速下   

-
抢注雅虎免费邮箱-3.5G容量,20M附件! 

[ns] How to access mac layer of each node

2006-11-27 Thread Daniel Dekst

Hi, all
   
  How to access mac layer of each node? 
   
  If I create a command “attach-traceDebug” in mac-802_11.cc to transmit debug 
file name to it. How could I call this command in tcl script.
   
  Like “set ftp [new Application/FTP],   $ftp attach-agent $tcp”, what should 
be the first parameter? 
  “set mac_($i) [new ???],   $mac_($i) attach-traceDebug $traceDebug_”
   
  Thanks in advance,
  Pei


-
 Mp3疯狂搜-新歌热歌高速下   

Re: [ns] Simulating channel Hopping in ns2

2006-11-15 Thread Daniel Mahrenholz

Hi,
gaurav deshpande schrieb:
> Hi all,
>
> We intend to implement channel hopping using ns2 simulator. Has anyone tried 
> to implement hopping in ns2?
>
> Our approach: 
>
> We found that each channel (class WirelessChannel) keeps a linked list of all 
> nodes listening on that channel.  For a mobilenode to hop we wrote code to 
> dynamically  add and remove the node from this list. However, on running ns 
> we get a segmentation fault. The code we wrote looks something like:
>
>
> MobileNode* n = ;
> WirelessChannel new = ;
> WirelessChannel current = ;
>
> new.addNodeToList(n);
> current.removeNodeFromList(n);
>
>
> It would be great of someone share thier experience in implementing channel 
> hopping in ns2.
>   
I cannot help with the channel hopping. But to find problems with linked 
lists etc. in the C++ part of the code it is always a very good idea to 
run ns-2 using valgrind. Simulations will use a lot more time to run, 
but every strange or wrong memory access will be recognized.

Daniel.



Re: [ns] Compilation Error ns2.1b8a

2006-11-15 Thread Daniel Mahrenholz

Mohammad Haseeb Zafar schrieb:
> Hi
> I got following error while compiling ns2.1b8a. Please help.
> Haseeb
>
>
> c++ -c  -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR  
> -DNDEBUG
> -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H 
> -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H 
> -I. -I/bonhome/haseeb/work/ns-allinone-2.1b8a/tclcl-1.0b11 
You should provide more information, especially the version of gcc/g++ 
you are using. NS2.1b8a is very old. So, you will need an old gcc / 
binutils to compile it.

Daniel.



Re: [ns] How can i measure the bandwidth in use?

2006-10-23 Thread Daniel Mahrenholz

wang laye schrieb:
> Hi,
>I am simulating a QoS Routing Protocol,in this protocol,the
> available bandwidth of node is caculate according:
> Available Bandwidth=Total Bandwidth - Reseved Bandwidth - Bandwith In Use
> My question is:In C++, to a mobile node,How can i measure (or
> caculate) the bandwidth in use?
> Any suggestion is appreciated!
>   
You should explain your network a little more, are you suing APs or an 
ad hoc network?

Determining the available bandwidth in a wireless network is quite 
complicated because it depends on the behavior of the nodes around you 
(even if they are out of communication range).

I used the following approach: instead of bandwidth I used "air time" 
(to account for different transmission speeds), that is the time a node 
utilizes the wireless channel in its region for a transmission. To 
reserve air time I used a beacon-based multi-hop reservation protocol. 
Additionally, to measure "lost" air time, that is air time than cannot 
be used because of interference from nodes out of communication range 
(or e.g. a microwave oven) I measured the time a packet to be 
transmitted spends in the output buffer of the transmitter. Changes in 
this time indicate a change in the available air time.

You see, the task you are going to solve cannot simply be accomplished 
by calculating a value out of available variables. If you have more 
questions, don't hesitate to ask me.

Daniel.



Re: [ns] Need tunctl command for cygwin

2006-10-19 Thread Daniel Mahrenholz

Emin Gencpinar schrieb:
> We installed ns-2 emulation (nse) both over Linux and (by cygwin) Windows
> machines. NSE uses tunctl command for tun / tap interfaces to manage the
> network. We have successfully installed the tunctl command source code for
> Linux under sbin directory, but we could not find any tunctl command source
> code valid for cygwin. Compilation error for the same source code in cygwin.
>   
tunctl is a tool to manage the TUN/TAP driver of the linux kernel. There 
is a  TUN/TAP driver for Windows  developed by the OpenVPN folks. But I 
suspect that is configured in a different way.

If you are using the nse extension for wireless emulation you should 
give up on Cygwin, you have to run it on Linux. But it is possible to  
integrate Windows clients in such a setup.

Daniel.



Re: [ns] Shadowing model

2006-10-14 Thread Daniel Mahrenholz

juan novoa fernandez schrieb:
> Hello
> I'm trying to simulate an ad-hoc network using shadowing model.
> This model has a radom component, but when I run my scenario several times, 
> the results are always the same, there's no difference among them, what's 
> the problem?
> I tried to change de seed for each iteration, but it didn't work
>   
I used the following code and it worked:

$defaultRNG seed $seed
set ns_[new Simulator]


I think it is important to initialize the seed before you create the 
Simulator object.

Daniel.



Re: [ns] Multiple source files

2006-10-11 Thread Daniel Mahrenholz

Keita Rose schrieb:
> I am trying to run a mobile scenario using multiple source files, how do I go 
> about implementing that is NS-2 if it is at all possible.
>   
I'm not sure, I got you right. But I did the following in order to 
simulate different topologies with the same set of applications. I first 
build a "core" simulation script, e.g. one that creates the simulator 
objects, configures everything, etc. Then I include the script that 
creates the topology (given by a command line parameter) into this core 
script. The remaining part of the core script configures the 
applications and runs the simulation.

Now, in order to investigate different topologies, I wrote a control 
script, that iterates over the list of available toplogies and calls the 
simulation script with the name of the topology script as a parameter. 
You should be able to do something similar.

Daniel.



Re: [ns] CBQ with wireless network: Nobody Replied Yet

2006-10-08 Thread Daniel Mahrenholz

Muhammad Azam Akram schrieb:
> i emailed 3 or four times about how can i use cbq for wireless ad hoc 
> networks but noone replied me.
>   
Maybe nobody has an answer for you.

> i run some codes of cbq 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. 
>
> further, i am making link from each node to all nodes, please tell me should 
> i make link in this way, 
>   
Using links between nodes in a wireless scenario does not make sense at 
all - wireless communication uses broadcast transmissions over the 
wireless channel object. So, using link-based queuing will not yield any 
useful results.

Daniel.



Re: [ns] Shadowing propagation model problem with NS 2.29

2006-09-27 Thread Daniel Mahrenholz

Víctor González schrieb:
> Hi,
> I am simulating an ad-hoc environment under NS 2.29 in a Ubuntu 6.06(Dapper) 
> LTS.
> In my simulation I am using the shadowing propagation model because 
> thetwoRayGround and the free space are far away from the reality.
> When I start the simulations I get the following distCST_ 
> =179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0
> this is a very huge number, so I think there is an error. 
> The parametersof the Shadowing model are the following ones:
> # ==# First we set values of 
> shadowing model# ==
> Propagation/Shadowing set pathlossExp_ 2.0  ;# path loss exponent  
> Propagation/Shadowing set std_db_ 6.3   ;# shadowing deviation(dB)  
> Propagation/Shadowing set dist0_ 1.0;# reference distance (m)  
> Propagation/Shadowing set seed_ 0   ;# seed for RNG# 
> ==
>
> The Thresholds of the interface are:
> Phy/WirelessPhy set CSThresh_   3.162278e-13  ;# Carrier Sense 
> Power(Sensivity) -95dbm @1MbpsPhy/WirelessPhy set RXThresh_   3.162278e-10
> ;# Receive PowerThreshold
>
> I know some people had the same distCST_ but with other versions of NS(the 
> lower ones) and I also know this bug was fixed in the ns 2.28version. 
> So, why I am getting this huge value? Maybe it comes from an 
> incorrectparameter I am giving to the Shadowing propagation model?
>   
This is not a bug - it is a feature. The distCST_ is used to speed up
the calculation of the propagation. It gives the distance from the
sender where it will be impossible to receive anything. Because of the
propabilistic element in the shadowing model it is hard to say what this
distance is. So the shadowing model returns a nearly infinite value. Of
course this could be optimized.


Daniel.



Re: [ns] how to detemine channel used by 802.11 nodes

2006-08-10 Thread Daniel Mahrenholz

m w schrieb:
>
>  I was just wondering as to how we can know which channel is 
> 802.11 node is using. Is it possible to find it from somewhere regarding the 
> channel used information. 802.11b uses three channels so which channel a 
> specific node is using, how can we get to know that ? Please help me at your 
> earliest. I am pressed in time.
>   

Wireless communication in ns-2 uses one or more channel objects. All
channel objects are independent from each other. That means, if you use
different channels you will not have cross-channel noise, interference
and such things. Some times ago someone asked how to model such
cross-channel effects and I proposed to derive a new channel object that
knows about its neighbor channels and than introduces such errors. But I
don't know how this evolved. If this is of interest for you, you should
search the maiing list archiv and contact the author.

Daniel.



  1   2   >