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 [email protected] -----Original Message----- From: ns-users-request <[email protected]> To: ns-users <[email protected]> Sent: Tue, Jan 29, 2013 9:01 am Subject: Ns-users Digest, Vol 109, Issue 25 Send Ns-users mailing list submissions to [email protected] 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 [email protected] You can reach the person managing the list at [email protected] 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 <[email protected]> Subject: Re: [ns] trace file modification To: [email protected] 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, <[email protected]> wrote: > Send Ns-users mailing list submissions to > [email protected] > > 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 > [email protected] > > You can reach the person managing the list at > [email protected] > > 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 <[email protected]> > Subject: Re: [ns] Calculate Signal strength in ns2 > To: [email protected] > Message-ID: <[email protected]> > 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 <[email protected]> > Subject: [ns] TrustAODV in MANET > To: ns-users <[email protected]> > 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 <[email protected]> > Subject: [ns] trace file modification > To: ns-users <[email protected]> > 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 > [email protected] > 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 <[email protected]> Subject: [ns] Transmission range of a wireless node? To: "[email protected]" <[email protected]> Message-ID: <[email protected]> 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 <[email protected]> Subject: [ns] code for TrustAODV To: [email protected] 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 <[email protected]> Subject: [ns] TIREM available ? To: [email protected] 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 <[email protected]> Subject: [ns] detection of retransmitted packets To: ns-users <[email protected]> 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 <[email protected]> Subject: [ns] GTS in 802.15.4 To: ns-users <[email protected]> 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 <[email protected]> Subject: [ns] Bind a float To: [email protected] 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 [email protected] 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 [email protected] http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 109, Issue 25 *****************************************
