Hey Abiyana!
>From tcl you can use this command to get some particular vlaues in the
trace file for example I want to get only cbr values, so the command is
set tracefd [open "| greo \ " cbr \" > out.tr" w]
this will record all the cbr values, so use it for what ever values you
need.

On Wed, Jan 30, 2013 at 10:00 AM, <ns-users-requ...@isi.edu> wrote:

> 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-users Digest, Vol 109, Issue 25 (An Feng)
>    2. Regarding the Number of Attempts (Sai Bhyravajosyula)
>    3. to trace rto value (abinaya rajendhiran)
>    4. when does "A" flag set (abinaya rajendhiran)
>    5. nse scheduler issue (Bipul Kumar)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 29 Jan 2013 02:08:37 -0500 (EST)
> From: An Feng <anderson.an.f...@aol.com>
> Subject: Re: [ns] Ns-users Digest, Vol 109, Issue 25
> To: ns-users@isi.edu
> Message-ID: <8cfcc06978e42d3-277c-3c...@webmail-d184.sysops.aol.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi ALL,
>
> can some one help me to figure out how to do the wireless protocol auto
> switching in the NS simulation process. And how to effectively change the
> protocol parameters in the NS installation directory
> ~/nsnam/dskim/rts-cts/tinyos/tinyviz/org/c++/mingw...
>
>
>
>
>
> An Feng
> anderson.an.f...@aol.com
>
>
>
>
>
> -----Original Message-----
> From: ns-users-request <ns-users-requ...@isi.edu>
> To: ns-users <ns-users@ISI.EDU>
> Sent: Tue, Jan 29, 2013 9:01 am
> Subject: Ns-users Digest, Vol 109, Issue 25
>
>
> 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: trace file modification (Fazlullah Khan)
>    2. Transmission range of a wireless node? (nguyen hieu)
>    3. code for TrustAODV (akki trivedi)
>    4. TIREM available ? (Siyui AliOh)
>    5. detection of retransmitted packets (abinaya rajendhiran)
>    6. GTS in 802.15.4 (Fazlullah Khan)
>    7. Bind a float (Rafael P B Mota)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 28 Jan 2013 10:28:32 +0900
> From: Fazlullah Khan <fazlullah....@gmail.com>
> Subject: Re: [ns] trace file modification
> To: ns-users@isi.edu
> Message-ID:
>         <
> camjcqcdax6aqqv0zfgt7f7xvdsujfhxgb9a0x01z0kq6pgr...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> In ns-2-xx/trace.cum-trace.cc,.h needs to be modify, and if you are using
> some routing protocol, may be that too.
>
> On Mon, Jan 28, 2013 at 10:00 AM, <ns-users-requ...@isi.edu> wrote:
>
> > 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: Calculate Signal strength in ns2 (shiny john)
> >    2.  TrustAODV in MANET (Nikunj Shah)
> >    3. trace file modification (bhupendra rajput)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Sat, 26 Jan 2013 20:42:27 -0800 (PST)
> > From: shiny john <shiny....@gmail.com>
> > Subject: Re: [ns] Calculate Signal strength in ns2
> > To: ns-users@isi.edu
> > Message-ID: <34950173.p...@talk.nabble.com>
> > Content-Type: text/plain; charset=us-ascii
> >
> >
> > set opt(prop) propagation/FreeSpace
> >
> > Leyond wrote:
> > >
> > > Hello,all
> > >       I want to calculate the signal strength received from some APS.
> But
> > > up to now, I just have written some codes like below to implement this
> > > function[of course, i am not sure it is correct or not]:-((
> > >
> > > proc record {} {
> > >   global filepr pt l lambda gt gr pi node
> > >    set ns [Simulator instance]
> > >    set time 0.1;# record 0.5 second
> > >    set m_x [$node(1) set X_]
> > >    set m_y [$node(1) set Y_]
> > >    set n_x [$node(0) set X_]
> > >    set n_y [$node(0) set Y_]
> > >    set d [expr (sqrt(pow(($m_x - $n_x),2)+ pow(($m_y-$n_y),2)))]
> > >    set m [expr (1 /(4 * $pi * $d))]
> > >    set pr [expr ($pt * $gr * $gt * $m * $m / 1)]
> > >    set now [$ns now]
> > >
> > >    puts $filepr "$d\t$pr"
> > >    $ns at [expr $now + $time] "record"
> > > }
> > > I set all the parameters but d to calculate Pr. About d, I record the
> > > dynamic coordinate(x,y), and then compared it to the coordiate of
> > > AP(x1,y1) to get d.
> > > But now, I want to implement using a function written in the file
> > > /mobile/propagation.cc
> > >
> > > double FreeSpace::Pr(PacketStamp *t, PacketStamp *r, WirelessPhy *ifp)
> > > {
> > >       double L = ifp->getL();         // system loss
> > >       double lambda = ifp->getLambda();   // wavelength
> > >
> > >       double Xt, Yt, Zt;              // location of transmitter
> > >       double Xr, Yr, Zr;              // location of receiver
> > >
> > >       t->getNode()->getLoc(&Xt, &Yt, &Zt);
> > >       r->getNode()->getLoc(&Xr, &Yr, &Zr);
> > >
> > >       // Is antenna position relative to node position?
> > >       Xr += r->getAntenna()->getX();
> > >       Yr += r->getAntenna()->getY();
> > >       Zr += r->getAntenna()->getZ();
> > >       Xt += t->getAntenna()->getX();
> > >       Yt += t->getAntenna()->getY();
> > >       Zt += t->getAntenna()->getZ();
> > >
> > >       double dX = Xr - Xt;
> > >       double dY = Yr - Yt;
> > >       double dZ = Zr - Zt;
> > >       double d = sqrt(dX * dX + dY * dY + dZ * dZ);
> > >
> > >       // get antenna gain
> > >       double Gt = t->getAntenna()->getTxGain(dX, dY, dZ, lambda);
> > >       double Gr = r->getAntenna()->getRxGain(dX, dY, dZ, lambda);
> > >
> > >       // calculate receiving power at distance
> > >       double Pr = Friis(t->getTxPr(), Gt, Gr, lambda, L, d);
> > >       // warning: use of `l' length character with `f' type character
> > >       //  - Sally Floyd, FreeBSD.
> > >       printf("%lf: d: %lf, Pr: %e\n", Scheduler::instance().clock(), d,
> > Pr);
> > >
> > >       return Pr;
> > > }
> > >
> > > The question is I don't know how to call this c++ function using tcl
> > > script ?
> > > So, thanks very much.
> > > Liceven
> > >
> > >
> >
> > --
> > View this message in context:
> >
> http://old.nabble.com/Calculate-Signal-strength-in-ns2-tp18536913p34950173.html
> > Sent from the ns-users mailing list archive at Nabble.com.
> >
> >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Sun, 27 Jan 2013 13:47:53 +0530
> > From: Nikunj Shah <ndshah...@gmail.com>
> > Subject: [ns]  TrustAODV in MANET
> > To: ns-users <ns-users@isi.edu>
> > Message-ID:
> >         <
> > camqb5wbtftemgtsysyez3+3vgb5haahkvsbnmmtd3++tf0x...@mail.gmail.com>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hi all,
> >
> > Does anyone have implementation code for TrustAODV in MANETs? I need it
> for
> > my
> > project, so any help would be extremely appreciated.
> >
> > --
> > Thanks and regards,
> > Nikunj Shah.
> >
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Mon, 28 Jan 2013 01:31:12 +0530
> > From: bhupendra rajput <bhupi1...@gmail.com>
> > Subject: [ns] trace file modification
> > To: ns-users <ns-users@isi.edu>
> > Message-ID:
> >         <
> > cakvxyrro3gbpzxzkjnydpew5l+yfponotzsmwk_k07lbu2p...@mail.gmail.com>
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > hi users
> >
> > i want to know is there any way we can modify the default trace format
> > according to our need which file (function) needed to change???
> >
> > thanks
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > Ns-users mailing list
> > Ns-users@isi.edu
> > http://mailman.isi.edu/mailman/listinfo/ns-users
> >
> >
> > End of Ns-users Digest, Vol 109, Issue 24
> > *****************************************
> >
>
>
>
> --
> Regards
> Fazlullah Khan
> Department of Electrical Electronics and Information Engineering,
> Nagaoka University of Technology, Nagaoka-shi, Niigata-ken, Japan
> Cell # +8180 3474 4286
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 27 Jan 2013 20:38:44 -0800 (PST)
> From: nguyen hieu <heave...@yahoo.com>
> Subject: [ns] Transmission range of a wireless node?
> To: "ns-users@isi.edu" <ns-users@isi.edu>
> Message-ID:
>         <1359347924.43325.yahoomail...@web121605.mail.ne1.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hi ns2 users,
>
> I am trying to get the transmission range of a node and put it in my
> customized
> trace file. But when I access the variable radius_ in mobilenode.cc, the
> value
> is always zero.?
>
> In my intuition, when I use:?Phy/WirelessPhy set RXThresh_?1.20174e-07
> the value 1.20174e-07 should be convert correspondingly to meter and store
> in
> radius_, but it seems not happen like that.
>
> So my question is how to get the range of node, by meter, to put it in my
> trace
> file (or simply print it on the screen)?
>
> Thank you,
>
> Hieu Nguyen
>
> ------------------------------
>
> Message: 3
> Date: Mon, 28 Jan 2013 11:10:58 +0530
> From: akki trivedi <anki...@gmail.com>
> Subject: [ns] code for TrustAODV
> To: ns-users@isi.edu
> Message-ID:
>         <
> caboa3bgx_ra1cywf5pfp6kq5ge8-ygwgiutxrgdd0wa1kcx...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> To NS-Users,
>               I am student of M.tech(Networking) Last sem from Gujarat
> University. Our Dissertation Topic is related to AODV, So i *urgently*
> need code
> of **TrustAODV * *for our Dissertation topic.......!!!!
> So, Any One have code for this plz forward it **Urgently.**
> *
>                                          *
> Thanks and regards,
>  Ankit Trivedi.
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 28 Jan 2013 14:00:11 +0800
> From: Siyui AliOh <sopl...@gmail.com>
> Subject: [ns] TIREM available ?
> To: ns-users@isi.edu
> Message-ID:
>         <
> caj_nmgkdp9xgcvubcmhr1anie+mkvcws+xvwm4mazktcuuf...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> radio propagation simulate model, TIREM is a good one, is there TIREM in
> NS2?
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 28 Jan 2013 13:21:11 +0530
> From: abinaya rajendhiran <rabia...@gmail.com>
> Subject: [ns] detection of retransmitted packets
> To: ns-users <ns-users@isi.edu>
> Message-ID:
>         <CABgOwY=
> kkxxsxu93nnnackxcmwhkbmd1t-ypv8zjnrzfcj6...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> hi all,how to detect the retransmitted packets from the trace file in ns2??
>
> --
> Reagards.,
> R.Abinaya,B.Tech,(M.E)
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 28 Jan 2013 19:00:27 +0900
> From: Fazlullah Khan <fazlullah....@gmail.com>
> Subject: [ns] GTS in 802.15.4
> To: ns-users <ns-users@isi.edu>
> Message-ID:
>         <CAMJcQcAnD45aLOt8jrVqhH-vEH=
> wvry94gfbxjmxcsq1s6k...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi every body!
> Do any one know the Guaranteed Time Slot (GTS) patch for IEEE 802.15.4 in
> NS2. OR have the implementation of GTS?
>
> --
> Regards
> Fazlullah Khan
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 28 Jan 2013 16:07:43 -0300
> From: Rafael P B Mota <rafaelpera...@gmail.com>
> Subject: [ns] Bind a float
> To: ns-users@isi.edu
> Message-ID:
>         <CAJjUV7vi1zsFDDmZjaX9gbD9P3N9-tbcf=
> ddebdo008brk-...@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> How can I bind a float member ?
> For example, when I bind an integer (bind("value_",&value_) it works.
> When I bind a float (bind("number_",&number_) I receive errors.
>
> What can I do to solve this problem ?
> Thanks,
>
> --
>
> ----------------------------------------------------------------------------------------------------------------
> Rafael Perazzo B Mota
> rafaelpera...@gmail.com
> Web-page: https://sites.google.com/site/rafaelperazzo/
> Doutorando em Ci?ncia da Computa??o
> Universidade de S?o Paulo (USP)
> Campus da Capital
> Instituto de Matem?tica e estat?stica (IME)
>
> ------------------------------------------------------------------------------------------------------------------
>
>
>
> ------------------------------
>
> _______________________________________________
> Ns-users mailing list
> Ns-users@isi.edu
> http://mailman.isi.edu/mailman/listinfo/ns-users
>
>
> End of Ns-users Digest, Vol 109, Issue 25
> *****************************************
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 29 Jan 2013 00:29:12 -0700
> From: Sai Bhyravajosyula <sbhyr...@asu.edu>
> Subject: [ns] Regarding the Number of Attempts
> To: ns-users@isi.edu
> Message-ID:
>         <CABztdKVAvTpw635J7HwMYGUS7-pfxA8deM8ZN6=
> iob3tqsr...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi All
>
> I have a question regarding the trace file.
>
> How to find how many times a node attempted to transmit and succeeded ??
>
> And how many times a node attempted to transmit and backed off.??
>
> Any help is appreciated.
>
> Thanks
>
> --
> Bhyravajosyula Sai Vishnu Kiran
> MS in Computer Science
> mail-id:  sbhyr...@asu.edu
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 29 Jan 2013 22:05:54 +0530
> From: abinaya rajendhiran <rabia...@gmail.com>
> Subject: [ns] to trace rto value
> To: ns-users <ns-users@isi.edu>
> Message-ID:
>         <CABgOwYmmoJ5KaXVhjze-mi9bCdv27CnCpLtQnb3TyV=
> igi+...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> hi does any one know how to trace rto value using tcl in ns2???
>
> --
> Reagards.,
> R.Abinaya,B.Tech,(M.E)
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 29 Jan 2013 22:20:12 +0530
> From: abinaya rajendhiran <rabia...@gmail.com>
> Subject: [ns] when does "A" flag set
> To: ns-users <ns-users@isi.edu>
> Message-ID:
>         <
> cabgowymeqjgz6axebsmvavddzuhvfko4sppan8zonvw6oap...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> hi all,
>     does "A" flag in trace file denote the packet is retransmitted???
>
> --
> Reagards.,
> R.Abinaya,B.Tech,(M.E)
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 30 Jan 2013 03:36:47 +0530
> From: Bipul Kumar <bi...@vpolink.com>
> Subject: [ns] nse scheduler issue
> To: ns-users@isi.edu
> Message-ID:
>         <
> camfulcmuzxhdw01yb0qyoxevj_z7dtgofaqov++f6ghqfb_...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hellow folks
>
> I am getting this error when i am trying to run nse
>
> root@bipul-Linux:/home/bipul/Desktop# nse script.tcl
> warning: no class variable Scheduler/RealTime::adjust_new_width_interval_
>
>     see tcl-object.tcl in tclcl for info about this warning.
>
> warning: no class variable Scheduler/RealTime::min_bin_width_
>
> TapAgent(_o40): linked sock 7 as READABLE
> TCPTapAgent(_o43): sent packet (sz: 40)
> TCPTapAgent(_o43): sent packet (sz: 40)
> TCPTapAgent(_o43): sent packet (sz: 40)
>
> please help me i will be very thankful to you.
>
>
> ------------------------------
>
> _______________________________________________
> Ns-users mailing list
> Ns-users@isi.edu
> http://mailman.isi.edu/mailman/listinfo/ns-users
>
>
> End of Ns-users Digest, Vol 109, Issue 26
> *****************************************
>



-- 
Regards
Fazlullah Khan
Department of Electrical Electronics and Information Engineering,
Nagaoka University of Technology, Nagaoka-shi, Niigata-ken, Japan
Cell # +8180 3474 4286

Reply via email to