[ns] metrics calculation in simulation time

2012-07-09 Thread pedro chaparro
Hello everyone, I'd like to get some directions about how to measure some metrics during simulation time, specifically I need these : - SNR - Channel gain - Energy Thanks so much -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communica

[ns] Decode and forward protocol

2012-07-30 Thread pedro chaparro
Hi, anybody knows if there is already some implementation of DF (Decode & Forward) relay protocol implemented for ns2? or any guidelines to do it? thanks -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of

[ns] Auto Rate Fallback (ARF) implementation

2012-08-06 Thread pedro chaparro
It is ARF procedure included in last version of the 802.11 code in ns2? -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

[ns] data payload access?

2012-09-24 Thread pedro chaparro
Hello everybody, anybody knows hot to get the bit information from the ns2 packets, i need to make some operations directly on the bits, if anybody have had similar experience on that , or can give some direction , i'll really appreciate it. Thankss -- Pedro Alonso Chaparro Valero R&D Engineer C

[ns] Collision measurement

2013-05-23 Thread pedro chaparro
Hi All, there is some way to measure the number of collisions in a wireless 802.11 scenario? -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia,

[ns] socket libraries in ns-2?

2009-09-01 Thread pedro chaparro
Hi, i need to know how can i integrate the sockets libraries used by linux, i'd loke to implement an agent that make a real connection network with a remote computer, i've tried to insert directly the code into ns-2 but when i compile , it said me that not recognize function commands as bind, sen

Re: [ns] How do we write environment variables?? please!

2009-09-01 Thread pedro chaparro
Why is exactly the problem? dont u have a ns executable? have u try some tcl script? 2009/9/1 Imene > > Hi, > > I have installed ns2.33 on fedora11 but it didn't work > I think that the problem from environment variables > i tryed many solutions in the net but it didn't works again > Could anyo

[ns] extern libraries with ns-2?

2009-09-02 Thread pedro chaparro
hi, i'd like to use libraries to make real connections using unix sockets, what do i need to do that? what things or changes do i have to consider? thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia

[ns] how to use extern libraries?

2009-09-08 Thread pedro chaparro
hi, i'd like to use functions from an extern linux libray (libc.so.6) how can i integrate it with ns-2? thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022

[ns] how stop the scheduler?

2009-09-17 Thread pedro chaparro
hi, i wonder how can i stop the scheduler from c++ code? and after stop it , how can i re-start? thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia

Re: [ns] how stop the scheduler?

2009-09-17 Thread pedro chaparro
> http://www-rp.lip6.fr/ns-doc/ns226-doc/html/scheduler_8h-source.htm > > Regards > Mubashir Husain Rehmani > > 2009/9/17 pedro chaparro > > >> hi, i wonder how can i stop the scheduler from c++ code? and after stop it >> , >> how can i re-start?

[ns] good tutorial on timers?

2009-09-23 Thread pedro chaparro
hi, anybody knows some good tutorial about hot to use timers on ns2?thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

[ns] POSIX sockets inside ns2?

2009-09-23 Thread pedro chaparro
hi, anybody knos how can i use POSIX sockets into ns-2? -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

[ns] Co-simulation with ns-2

2009-09-23 Thread pedro chaparro
anyone who have experience implementing co-simulations issues using ns-2? -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

[ns] where is the implementation of the Null agent?

2009-10-05 Thread pedro chaparro
hi, i need to modify the behaviour of the Null agent, but i can not find its .cc implementation!! i add to its code socket connections capacities to take the information from an extern application.thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Commu

[ns] perfect transmission channel?

2009-10-13 Thread pedro chaparro
hi, i'm working on a subject where i need to have a perfect transmission channel , i means, transmit a packet from a node A and received it on a node B wihout loss packets and not either have delays, in summary i'd like to eliminate the functions of the botton layers(link and physical layers). ca

[ns] berkeley library sockets into ns-2

2009-10-21 Thread pedro chaparro
hi, anybody have traid to integrate berkeley sockets into ns-2? How? thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

[ns] pause & resume ns-2 from c++?

2009-11-16 Thread pedro chaparro
hi, is there some way to pause ns-2 in some point of the c++ code when is running a simulation? and after a X time resume it and continue simulating? thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valen

[ns] Schedule my function!!

2009-11-23 Thread pedro chaparro
hi, i'm wondering how can i do to schedule an fuction i've created, i wanna dothis Scheduler::instace().schedule(&myfunction, ? , time), in the place where is the interrogant (?) i know i have to pass and event, but how must i create this event? i've sawn some file where inthat place it is a "&i

[ns] problems defining timers!!

2009-11-25 Thread pedro chaparro
hi everyone, i wanna define a new timer for a agent i have modify from udp agent. I've defined the timer SockTimer but i get error during compilation, the code seen good for me but i have to missing something. thanks a lot in advance class UdpAgentSk; class SockTimer : public TimerHandler { p

[ns] 802.11 MAC code

2009-12-03 Thread pedro chaparro
hi, i need to understand some issues of how 802.11 is implemented on ns-2, i've read some theory and checking the code at the same time, but i dont find how is implemented the process of reporting to the higher layers when a packet is lost after retry retransmission limit is reached. if someone ma

[ns] error loading .h files =(

2009-12-15 Thread pedro chaparro
hi everybody, i'm trying to add a new object into ns-2, but when i compile i get some error related to loading the common ns-2 headers files, i can not figure out why is this happening. if some can help me thanks in advance. *mySkts/APIns.h:26:19: error: trace.h: No such file or directory mySkt

[ns] create a new ns object?

2009-12-16 Thread pedro chaparro
hi, i wanna load from tcl a function(or something) that open a socket , setting up a server that listen over a specific port, from tcl i wanna do something like : set mysocket1 [new mySocketObject] $mysocket1 set-remoteHost localhost $mysocket1 set-remotePort $mysocket1 set-timeInterval 1.0

[ns] creating new objects problems !!

2009-12-17 Thread pedro chaparro
hi, i want to create a new object, i took as template udp agent files and change/erase some lines to have just the minimum lines to start from there, but i have a error in compilation , i don't see where the cause can be =(, i'll appreciate a hand on this. thanks Error: apps/mysk.cc: In member f

[ns] halted_ variable

2010-02-01 Thread pedro chaparro
Hi, can i use this variable to manipulate the scheduler execution, i mean with halted_=1, i pause it and with halted_=0 it resume. It is a good way to stop/re-start the scheduler? thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group P

[ns] passing parameters to tcl script

2010-02-25 Thread pedro chaparro
hi every one, i have a question about how to check the number of parameters i pass to the tcl script, i'm using if { $argc != 3} { puts "Missing parameters " exit 1 } but it does not work i got this error p...@calvin:/home/pdro7/Desktop/ns-allinone-2.34/ns-2.34# *./ns foreman1.tcl

[ns] IMS support on ns-2 ?

2010-02-26 Thread pedro chaparro
Hi, somebody knows if there is some implementation for 3GPP IP Multimedia Subsystem (IMS) on ns-2? i'll appreciate some information about thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Cami

[ns] UMTS over ns2

2010-03-11 Thread pedro chaparro
hi everyone, someone could say me which is the best extension or implementation of UMTS over ns2? thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valenci

[ns] change compiler version?

2010-03-15 Thread pedro chaparro
hi, how can i indicate to the ns install executable to use a different version of gcc?? ./instal CC=gcc-3.2? -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Val

Re: [ns] evalvid wireless problem

2010-03-22 Thread pedro chaparro
have u tried already evalvid over a wire topology?? it works well there? 2010/3/22 Shyam Sundar > > Hi, > > I am trying to use evalvid for wireless network. I am getting wrong > receiving trace. > can anyone please help me, what is the problem in my tcl file? Am i need to > change myevalvid.cc

[ns] launching CBR application from c++

2010-03-30 Thread pedro chaparro
hi, i need to start a cbr application from c++ not from the tcl script, how can i do this? -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

[ns] tcl.resultf usage?

2010-03-31 Thread pedro chaparro
hi, i wanna to send the value of a variable from a C++ file inside ns-2 to the tcl script that i'm running, and depending of that value i could start a CBR source or not. Inside my Object class i define a function to send a value back. Can i use an instace o Tcl with method resultf to do this??

[ns] ns-default.tcl ???

2010-04-06 Thread pedro chaparro
Hi everyone,i'm a bit confuse about this file is used for, i wanna know what's the rol of this file into ns2, when do i need to modify?, i know that here the Agents valriables are initialized with default values, but besides of this, have other important rol? thanks -- Ing Pedro Alonso Chaparro V

[ns] problem with final .tr trace?

2010-04-09 Thread pedro chaparro
Hi everyone, have anyone had some problem related to when long simulation finish the .tr file is uncompleted? i mean some lines are missing!!! =(, my end simualtion time is 399 seg, but in .tr file i just see till 295. thks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación

[ns] binary format for traffic traces???

2010-04-14 Thread pedro chaparro
hi, i wanna know how can i generate a binary format file to use with Application/Traffic/Trace Class, i have a traffic trace in text format, how can i convert to .bin file?? thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytec

[ns] how to choose the correct file to extend ns-2?

2010-04-15 Thread pedro chaparro
hi, i have modified udp agent to add it a socket connection capacity (udpSk Agent) that allows me to send the packet information to other simulator, for example, i can define a simulation with 4 nodes, each one of them with a udpSk agent, so each one will open a socket connection, 4 nodes = 4sock

[ns] recovery code from ns executable?

2010-05-04 Thread pedro chaparro
hi everyone, i have lost an importan code file of my thesis, but i still have the last ns executable i used, is there some way to recovery, or re-create .cc files from the ns executable file??? an uncompiler?? =( thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEA

[ns] comand to know time?

2010-05-05 Thread pedro chaparro
hi, i'd liker to know if there is some command that can i use from a tcl script to know what is the value of the clock in a specific time. thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Cami

[ns] what is this error?

2010-05-05 Thread pedro chaparro
hi, i'm using a tcl proc where i received two parameters, inside the proc tcl file i wanna start a cbr traffic source, i can define it without problems, but when i included the lines to start it and stop it, i get this lines below. i think is something related with scheduler, im not really sure.

[ns] Session Description Protocol?

2010-05-12 Thread pedro chaparro
hi, anybody know if there is available some implementation of SDP over ns2? thanks in advance -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

[ns] RTP/RTCP implementations??

2010-05-18 Thread pedro chaparro
hi every one, anyone can recommend a good RTP/RTCP implementation to use over ns-2?? thanks -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, S

[ns] mobility models

2010-06-14 Thread pedro chaparro
hi, what are the mobility models that ns-2 support? thanks -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

[ns] target on tcp implementation

2010-06-29 Thread pedro chaparro
hi everyone, i wonder my self why there is not a call to the target (target_->recv(p);) on the tcp implementation of tcp (tcp.cc) as there is in udp.cc ?? thanks -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic Uni

[ns] segmentation fault with wrls-drs.tcl example

2010-07-01 Thread pedro chaparro
hi everyone , i getting this error, but i dont understant why . Coul be realted to have few space (150MBytes) on Disk? r...@hobbes:/home/pdro7/Desktop/ns-allinone-2.34/ns-2.34# ./ns wrls-dsr.tcl num_nodes is set 3 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LI

[ns] compilation problem

2010-07-06 Thread pedro chaparro
Hi everyone, i'm having a problem compiling ns2-34 on an ubuntu 9.0 system, the error i get is -I./wpan -o tcp/tcp-fack.o tcp/tcp-fack.cc /usr/include/c++/4.3/bits/stl_algobase.h: In function ‘const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = TracedInt]’: tcp/tcp-fack.cc:87: instantiated

[ns] Compilation error!!

2010-07-07 Thread pedro chaparro
anybody knows what could be the cause of this error?? g++ -c -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLI

[ns] modifying an insproc

2010-08-02 Thread pedro chaparro
hi every one, i want to modify inscproc simplex-link to add a extra parameter, in file ns-lib.tcl there is this definition Simulator instproc simplex-link { n1 n2 bw delay qtype args } { i wanna add a parameter , let's call it X, so the definition would be somethink like Simulator instproc

[ns] tcl compilation??

2010-08-03 Thread pedro chaparro
hi guys, i have a doubt, when i make some change on some tcl file, do i need to recompile?? i think i don't, but i want to be sure on it!! thanks -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valenci

[ns] counting TCP and UDP packets.?

2010-08-12 Thread pedro chaparro
hi, i need to know how can in count the number of TCP and UDP packets passing through a router node?? thanks -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G

[ns] new block in simplelink structure?

2010-08-24 Thread pedro chaparro
*hi guys, i'm implementing a new block to insert into the SimpleLink strucutre , * between queue_ and link_. blocks, i create a new class call SKlink from class connector, it is simple i just wanna use the recv function to for now just print a message each time a packet is transmitted over the lin

[ns] compilation error!!

2010-08-25 Thread pedro chaparro
hi everyone, i'm getting this error when i try to compile a new module , "undefined reference to `vtable..." someone knows what could be the reason? thanks -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University

[ns] free and drop packets??

2010-09-03 Thread pedro chaparro
hi, could anybody say me the difference between use packet::free(p) function or drop(p) function?? -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Vale

[ns] how to setup this scenario?

2010-10-13 Thread pedro chaparro
hi, im interested in setting up a scenario with 3 nodes, N1 transmit a CBR traffic to N3 as destination, N1 use 802.3 technology, N3 is a WIFI node, and N2 is either 802.3 as 802.11 node (supernode), so N2 acts as a relay node with two interfaces. It is possible or do is mandatory to setup a Base

[ns] about setdest

2010-10-15 Thread pedro chaparro
Hi, in the mobility traces generate by ns-2 there are lines like $ns_ at 71.864315489929 "$node_(28) setdest 79.891811613342 444.990515652585 11." i need to extract all the mobility path (coordinates x an y) perform by node_(28) til it get in the destination 79.891811613342 444.9905

[ns] mobility traces

2010-10-15 Thread pedro chaparro
Hi, there are some tool that allows me generate a mobility trace for ns2 different of setdest, and with a format of time x_position y_position for all the nodes? thanks -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechni

[ns] hspa implementations?

2010-11-15 Thread pedro chaparro
hi, anyone know some good implementation oh HSPA to use on ns2? thanls -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

[ns] A perfect transmission channel?

2011-01-27 Thread pedro chaparro
Hi Mr Teerawat, I need to set up a scenario with an ideal wireless channel, how can i get a perfect wireless transmission channel? Specifically i wanna setup a simple scenario with a base station and a mobile node, i want the data transmitted from the BS to the node will be lossless , how could i

[ns] multiFAce Node NIST concept?

2011-02-03 Thread pedro chaparro
hi everyone, anybody knows where can i get information about the structure of supernode created by NIST? i need to know how exactly it works!!! thanks -- Pedro Alonso Chaparro Valero R&D Engineer Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Va