From cyahaya at gmail.com Sat Aug 1 19:46:22 2009 From: cyahaya at gmail.com (COULIBALY Yaya) Date: Sun, 2 Aug 2009 10:46:22 +0800 Subject: [ns] NS2 64 bits Message-ID: Hi All, I am trying to install NS2 on machine running fedora 64 bits without success. Does NS-2 run on 64 bits computers? -- @ Patience is the key to success @ ************************ COULIBALY Yahaya PhD Candidate Optical Burst Switching Research Group Faculty of Computer Science & Information Systems Department of Communication & Computer Systems Malaysia University of Technology (UTM) 81310 Skudai, Johor Bahru, Johor Cell: 0060196886615 : 0060137677542 From aseldawy at gmail.com Sun Aug 2 06:39:31 2009 From: aseldawy at gmail.com (Ahmed El-dawy) Date: Sun, 2 Aug 2009 16:39:31 +0300 Subject: [ns] RxPr Received power strength with Wireless PhyExt to calculate RSSI In-Reply-To: References: Message-ID: Hello, I'm new to ns2. I use ns 2.34. I need to calculate distances between nodes using RSSI. I try to access the received power strength from C++ code using *pkt->txinfo_.RxPr* In the recv() function of my custom Agent. When I use Phy/WirelessPhy as a physical layer it gives me meaningful values like 1.xx e-8. However, when I switch to Phy/WirelessPhyExt it gives me garbage. Sometimes it gives me values like 9.1e-261 or -3e-10. I traced the code and I found that sendUp() function at WirelessPhyExt class calculates the Pr value but doesn't store it in any place. Also I found this comment in PacketStamp class * /* WILD HACK: The following two variables are a wild hack. They will go away in the next release... They're used by the mac-802_11 object to determine capture. This will be moved into the net-if family of objects in the future. */ double RxPr; // power with which pkt is received double CPThresh; // capture threshold for recving interface* Does this mean there's another way in code that I can check the received power strength? I tried to dig in the code but with no success. -- regards, Ahmed Saad From korgani at hotmail.com Sun Aug 2 23:57:39 2009 From: korgani at hotmail.com (Kanakaris Venetis) Date: Mon, 3 Aug 2009 09:57:39 +0300 Subject: [ns] Tora simulation problem Message-ID: Hi to everyone, I am using the ns2 version 2.34 but whenever I use the Tora protocol I am get errors. I have tried any other protocol such AODV or DSDV succesfully, the only problem is when I use the Tora Protocol. Please tell me what to do. Is there any problem with the version? Kind regards, Venetis Kanakaris _________________________________________________________________ ????? Messenger; ????? ??? Windows Live. ?????? ???????????. http://microsoft.com/windows/windowslive From najwa61_ahmad at hotmail.com Mon Aug 3 04:54:36 2009 From: najwa61_ahmad at hotmail.com (najwa al_mawajdeh) Date: Mon, 3 Aug 2009 14:54:36 +0300 Subject: [ns] finding the queue size Message-ID: hi every body, does any body know how to find the queue size in the AODV or MADOV routing protocol? i want to calculate the buffer size for each node in my scenario... thanks Najwa _________________________________________________________________ Drag n? drop?Get easy photo sharing with Windows Live? Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx From njvsny at yahoo.com Mon Aug 3 19:29:12 2009 From: njvsny at yahoo.com (Hristo Asenov) Date: Mon, 3 Aug 2009 19:29:12 -0700 (PDT) Subject: [ns] AWGN channel In-Reply-To: <4A7729D7.4060505@gmx.de> Message-ID: <205957.75749.qm@web37904.mail.mud.yahoo.com> Volker, Is there a good way to simulate it? Do you know if using an Error model with normal distribution will model it properly? Thanks, ?- Hristo --- On Mon, 8/3/09, Volker Richter wrote: From: Volker Richter Subject: Re: [ns] AWGN channel To: "Hristo Asenov" Date: Monday, August 3, 2009, 2:17 PM Hello Hristo, ns2 doesn't provide such details physical models. Best regards, Volker Hristo Asenov schrieb: > Hello all, > > For my project I am trying to compare throughput on an AWGN and TCI channel. I thought I should start out using octave, since it provides an awgn function. I was wondering if I can use it in ns2 at the physical layer, and which files I would need to look through. Any help would be greatly appreciated, > >? - Hristo > > >? ? ??? > >??? From rizkarina at gmail.com Tue Aug 4 11:31:15 2009 From: rizkarina at gmail.com (rizkarina indah) Date: Wed, 5 Aug 2009 01:31:15 +0700 Subject: [ns] 2 mobile node can't send the TCP packet at same time Message-ID: Hi , I'm Indah I'm doing wimax mobile simulation. I run more than 2 mobile nodes, and TCP was attached over It. But while simulation , there is just one mobile node who successed send the TCP packet, and the others was just moving with no TCP packet accessed. I'm sure that i've already attached TCP and FTP over all mobile nodes there. The Mobile node will successed send the packet if I use UDP, not TCP over it. Is there anyone can help me to solve this?? Thanks a lot Regard. Indah Rizkarina From prajjwal at gmail.com Tue Aug 4 18:04:36 2009 From: prajjwal at gmail.com (Prajjwal Devkota) Date: Tue, 4 Aug 2009 20:04:36 -0500 Subject: [ns] Droptail queue per-flow rate limiting using TokenBucket (or other mechanism?) In-Reply-To: <71561c940907162132q5246368co7e72bf78cf45d97a@mail.gmail.com> References: <71561c940907141802v4ccb560bs90c691f729ee047@mail.gmail.com> <71561c940907162132q5246368co7e72bf78cf45d97a@mail.gmail.com> Message-ID: <71561c940908041804l43c69bb3n9af6e45eb47e4b61@mail.gmail.com> If anyone wants, my implementation (which seems to be working fine enough for me, verified against another form of rate limiting), is available here: http://sites.google.com/site/linuxpebbles/Home/ns2/token-bucket-implementation-for-multiple-flows However, you will have to refer to the instructions in the original code to see how to use it/install it. If you need more detailed instructions, let me know, and I will update the page. Prajjwal On Thu, Jul 16, 2009 at 11:32 PM, Prajjwal Devkota wrote: > Just to let anyone who is interested know, since I didn't receive any > suggestions, I found this implementation of token bucket: > http://www.cin.ufpe.br/~cak/ns/ > > It seems quite easy to understand, and am currently modifying it for rate > limiting multiple fids (this only deals with a single fid). My > implementation is in progress, and I'm sure that anyone can use the token > bucket implementation above to use with droptail (or any other queue). I > can also make my implementation available once I am done with it if you > want. > > Note: I also noticed DelayBox (http://dirt.cs.unc.edu/delaybox/), which > seems to be interesting, but for my requirements, simply re-using the code > above seems to be good enough so far. > I > Prajjwal > > > > On Tue, Jul 14, 2009 at 8:02 PM, Prajjwal Devkota wrote: > >> Hi list, >> >> I am currently doing some ethernet level rate limiting simulations using >> ns-2. I had been doing my simulations with a simple DropTail queue (by >> physically changing the link rate), but now, I am trying to see if I can >> apply a Token Bucket implementation to support multiple flows in a simple >> manner. I have been searching the mailing list to I can find pointers on >> getting started, as well as some of the ns-2 code (using a source browser), >> but I have generally only found references to Diffserv. I did notice that >> ns-2 does have a TokenBucket class implemented though. However, as far as I >> can see, diffserv seems to be the only one referencing this class. >> >> I came across this discussion on the ns users mailing list at >> http://mailman.isi.edu/pipermail/ns-users/2005-June/050699.html and the >> conclusion seems to be that using Diffserv with the queue mode being >> specified as DropTail was what a solution. >> >> My rate limiting simply requires token bucket mechanism: once I know the >> flow-id, I will have to do token bucket rate limiting myself. As per my >> understanding, diffserv is a class based qos mechanism, not a flow based >> one. Is looking into diffserv a good choice, or is there a better solution, >> or one that might be more appropriate for my requirements? >> >> I would appreciate any pointers that you could offer on this. >> >> Thank you very much for your help! >> >> Prajjwal >> > > From prajjwal at gmail.com Tue Aug 4 21:17:05 2009 From: prajjwal at gmail.com (Prajjwal Devkota) Date: Tue, 4 Aug 2009 23:17:05 -0500 Subject: [ns] Virtual Output Queuing simulation on ns-2 Message-ID: <71561c940908042117r50ba79a4x71fd4ba912bb7e6c@mail.gmail.com> Hi Everyone, I need to simulate a switch that does Virtual Output Queuing, and I have been searching the net for this. So far, I have not been able to find anything related in either the ns-2 sites, or through a cursory look at the code. In the worst case, I guess I would have to make do with n^2 nodes representing one switch with n ports, but that would be an approximation, with scheduling not properly implemented. I'm hoping there is a VOQ simulation available, and will continue looking around for a while. Could any of you help me out with suggestions for the simulation: what can I use? Since the protocol I am testing is implemted on a DropTail queue, it would be easier if there was something that can be used with DropTail. Thanks for your help, Prajjwal From neerajgupta37 at rediffmail.com Wed Aug 5 00:16:45 2009 From: neerajgupta37 at rediffmail.com (neerajgupta) Date: 5 Aug 2009 07:16:45 -0000 Subject: [ns] IsNeighbor function Message-ID: <20090805071645.8275.qmail@f6mail-144-198.rediffmail.com> 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 From daniel at ppgi.di.ufpb.br Wed Aug 5 00:41:43 2009 From: daniel at ppgi.di.ufpb.br (Daniel Charles) Date: Wed, 05 Aug 2009 04:41:43 -0300 Subject: [ns] IsNeighbor function In-Reply-To: <20090805071645.8275.qmail@f6mail-144-198.rediffmail.com> References: <20090805071645.8275.qmail@f6mail-144-198.rediffmail.com> Message-ID: <4A7937B7.9060703@ppgi.di.ufpb.br> 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 From r.sachasiri at isae.fr Wed Aug 5 01:07:00 2009 From: r.sachasiri at isae.fr (Ravit Sachasiri) Date: Wed, 5 Aug 2009 10:07:00 +0200 Subject: [ns] Does anyone has the implementation of *guaranteed time slot* GTS for WPAN(802.15.4)? Message-ID: <72c728fe0908050107j76c7e445m88a94b429d073784@mail.gmail.com> I found the following comment in the p802__15__4sscs.cc file in the WPAN folder: /* The following primitives are availabe from MAC sublayer. You can call these primitives from SSCS or other upper layer 00686 * void MCPS_DATA_request(UINT_8 SrcAddrMode,UINT_16 SrcPANId,IE3ADDR SrcAddr, 00687 * UINT_8 DstAddrMode,UINT_16 DstPANId,IE3ADDR DstAddr, 00688 * UINT_8 msduLength,Packet *msdu,UINT_8 msduHandle,UINT_8 TxOptions); 00689 * void MCPS_DATA_indication(UINT_8 SrcAddrMode,UINT_16 SrcPANId,IE3ADDR SrcAddr, 00690 * UINT_8 DstAddrMode,UINT_16 DstPANId,IE3ADDR DstAddr, 00691 * UINT_8 msduLength,Packet *msdu,UINT_8 mpduLinkQuality, 00692 * bool SecurityUse,UINT_8 ACLEntry); 00693 * void MCPS_PURGE_request(UINT_8 msduHandle); 00694 * void MLME_ASSOCIATE_request(UINT_8 LogicalChannel,UINT_8 CoordAddrMode,UINT_16 CoordPANId,IE3ADDR CoordAddress, 00695 * UINT_8 CapabilityInformation,bool SecurityEnable); 00696 * void MLME_ASSOCIATE_response(IE3ADDR DeviceAddress,UINT_16 AssocShortAddress,MACenum status,bool SecurityEnable); 00697 * void MLME_DISASSOCIATE_request(IE3ADDR DeviceAddress,UINT_8 DisassociateReason,bool SecurityEnable); 00698 * void MLME_DISASSOCIATE_indication(IE3ADDR DeviceAddress,UINT_8 DisassociateReason,bool SecurityUse,UINT_8 ACLEntry); 00699 * void MLME_DISASSOCIATE_confirm(MACenum status); 00700 * void MLME_GET_request(MPIBAenum PIBAttribute); 00701 * void MLME_GTS_request(UINT_8 GTSCharacteristics,bool SecurityEnable); 00702 * void MLME_GTS_confirm(UINT_8 GTSCharacteristics,MACenum status); 00703 * void MLME_GTS_indication(UINT_16 DevAddress,UINT_8 GTSCharacteristics, 00704 * bool SecurityUse, UINT_8 ACLEntry); 00705 * void MLME_ORPHAN_indication(IE3ADDR OrphanAddress,bool SecurityUse,UINT_8 ACLEntry); 00706 * void MLME_ORPHAN_response(IE3ADDR OrphanAddress,UINT_16 ShortAddress,bool AssociatedMember,bool SecurityEnable); 00707 * void MLME_RESET_request(bool SetDefaultPIB); 00708 * void MLME_RX_ENABLE_request(bool DeferPermit,UINT_32 RxOnTime,UINT_32 RxOnDuration); 00709 * void MLME_RX_ENABLE_confirm(MACenum status); 00710 * void MLME_SCAN_request(UINT_8 ScanType,UINT_32 ScanChannels,UINT_8 ScanDuration); 00711 * void MLME_SET_request(MPIBAenum PIBAttribute,MAC_PIB *PIBAttributeValue); 00712 * void MLME_SET_confirm(MACenum status,MPIBAenum PIBAttribute); 00713 * void MLME_START_request(UINT_16 PANId,UINT_8 LogicalChannel,UINT_8 BeaconOrder, 00714 * UINT_8 SuperframeOrder,bool PANCoordinator,bool BatteryLifeExtension, 00715 * bool CoordRealignment,bool SecurityEnable); 00716 * void MLME_SYNC_request(UINT_8 LogicalChannel, bool TrackBeacon); 00717 * void MLME_SYNC_LOSS_indication(MACenum LossReason); 00718 * void MLME_POLL_request(UINT_8 CoordAddrMode,UINT_16 CoordPANId,IE3ADDR CoordAddress,bool SecurityEnable); 00719 * void MLME_POLL_confirm(MACenum status); 00720 * However, when i look up in the p802_15_4mac.cc, i see that the function is available but there is no definition: void Mac802_15_4::MLME_GTS_request(UINT_8 GTSCharacteristics,bool SecurityEnable) { } void Mac802_15_4::MLME_GTS_confirm(UINT_8 GTSCharacteristics,MACenum status) { } void Mac802_15_4::MLME_GTS_indication(UINT_16 DevAddress,UINT_8 GTSCharacteristics, bool SecurityUse, UINT_8 ACLEntry) { } Also, the following comment was found in the header file: /*TBD*/ void MLME_GTS_request(UINT_8 GTSCharacteristics,bool SecurityEnable); /*TBD*/ void MLME_GTS_confirm(UINT_8 GTSCharacteristics,MACenum status); /*TBD*/ void MLME_GTS_indication(UINT_16 DevAddress,UINT_8 GTSCharacteristics, bool SecurityUse, UINT_8 ACLEntry); I would like to implement GTS for 802.15.4 MAC and would like to know if anybody has an implementation available or a suggestion as how or where it is available? Thank you. Sincerely, Ravit. From sijeshbabu at hotmail.com Wed Aug 5 06:28:54 2009 From: sijeshbabu at hotmail.com (SJ_b) Date: Wed, 5 Aug 2009 06:28:54 -0700 (PDT) Subject: [ns] packet::access() segfault Message-ID: <24827018.post@talk.nabble.com> Hi I got segmentation fault from packet::access() in the middle of simulation running. It would be greatly appreciated if some one comments on it BR, Sijesh -- View this message in context: http://www.nabble.com/packet%3A%3Aaccess%28%29--segfault-tp24827018p24827018.html Sent from the ns-users mailing list archive at Nabble.com. From najwa61_ahmad at hotmail.com Wed Aug 5 08:22:55 2009 From: najwa61_ahmad at hotmail.com (najwa al_mawajdeh) Date: Wed, 5 Aug 2009 18:22:55 +0300 Subject: [ns] finding queue-size in AODV od MAODV routing protocol Message-ID: hi every body; i want to find the queue size for each node in my scenario, the queue in the tcl script is defined as follow: -ifqType Queue/DropTail/PriQueue \ i traced the three queues but i didnt know how to find the queue size for each node in the routing protocol the queue file which attached with the MAODV protocol talking about one queue fot the MADOV protocol, but there should be one queue for each node can any body explain that to me please help me thanks alot Najwa _________________________________________________________________ With Windows Live, you can organize, edit, and share your photos. http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx From korgani at hotmail.com Wed Aug 5 08:34:22 2009 From: korgani at hotmail.com (Kanakaris Venetis) Date: Wed, 5 Aug 2009 18:34:22 +0300 Subject: [ns] Tora protocol does not work with ns 2.34 Message-ID: Hi to everyone, I am trying to implement the TORA protocol but I am getting errors. I am using the attached script which I got from the following site http://www-sop.inria.fr/maestro/personnel/Eitan.Altman/ns.htm. Please somebody tell me if the version 2.34 has problems or the script. Regards, Venetis Kanakaris _________________________________________________________________ ?? ?? Windows Live, ???????? ?? ??????????, ?? ????????????? ??? ?? ?????????? ??? ??????????? ???. http://www.microsoft.com/hellas/windows/windowslive/products/photo-gallery-edit.aspx From sekar.bonton at gmail.com Wed Aug 5 10:04:39 2009 From: sekar.bonton at gmail.com (rajasekars3) Date: Wed, 5 Aug 2009 10:04:39 -0700 (PDT) Subject: [ns] DSR UPDATING CACHE Message-ID: <24804748.post@talk.nabble.com> Hi all, Any one implement DISTRIBUTED CACHE -UPDATE DSR ROUTING in NS2, If you have send me as soon as possible Ragards Rajasekar -- View this message in context: http://www.nabble.com/DSR-UPDATING-CACHE-tp24804748p24804748.html Sent from the ns-users mailing list archive at Nabble.com. From rakusust at gmail.com Wed Aug 5 22:41:00 2009 From: rakusust at gmail.com (Suranjit Paul) Date: Thu, 6 Aug 2009 01:41:00 -0400 Subject: [ns] Need help in Generating Static Scenario File In-Reply-To: <90bb9e8d0908052235u1eed2c61v83596a0056680add@mail.gmail.com> References: <90bb9e8d0908052235u1eed2c61v83596a0056680add@mail.gmail.com> Message-ID: <90bb9e8d0908052241i68e44ce3of8f35d50908d7771@mail.gmail.com> Hi all, I am a new user of NS2. I really need some help. As a starting of my Thesis Research, I have to write my own CODE to read Scenario File (generated by 'setdest') and generate an INTERNAL Wireless Network REPRESENTATION of 50~100 nodes. Then I have to find the Cardinality of Minimum Connecting Dominating Set of that Network. My Problem is I don't know WHERE to start. I am trying to generate STATIC Wireless Network. That I did using the greater PAUSE time then SIMULATION TIME but I'm trying to do that in different ways. So, anyone please SUGGEST me that How can I start to Write OWN CODE to do that? Thanks in Advance. Sincerely, Suranjit Paul From paramsran at gmail.com Thu Aug 6 00:23:37 2009 From: paramsran at gmail.com (paramveer sran) Date: Thu, 6 Aug 2009 12:53:37 +0530 Subject: [ns] installation problem Message-ID: <66ed3b8a0908060023m7906f47ewac688ba106d294bc@mail.gmail.com> i have downloaded ns-allinone-2.34.tar.gz. i m using windows.there r a no. of folders, but i don't know how can i install this, which folders i should click to install. i want to use ns 2 for simulating the MANET routing protocols help me From mrbalador at yahoo.com Thu Aug 6 01:03:56 2009 From: mrbalador at yahoo.com (ali bala) Date: Thu, 6 Aug 2009 01:03:56 -0700 (PDT) Subject: [ns] 802.11 path for ns-2.33 Message-ID: <656937.68100.qm@web45102.mail.sp1.yahoo.com> hi all i need?best 802.11?path for ns-2.33 that be installwithout problem and work well. please share your experiences with me. thanks.? ?mr.ali.balador homepage:www.balador.org From mrbalador at yahoo.com Thu Aug 6 01:39:27 2009 From: mrbalador at yahoo.com (ali bala) Date: Thu, 6 Aug 2009 01:39:27 -0700 (PDT) Subject: [ns] 802.11e path for ns-2.33 Message-ID: <78192.6210.qm@web45106.mail.sp1.yahoo.com> hi all i need?best 802.11e?path for ns-2.33 that be installwithout problem and work well. please share your experiences with me. thanks.? ?mr.ali.balador homepage:www.balador.org From r.sachasiri at isae.fr Thu Aug 6 02:01:50 2009 From: r.sachasiri at isae.fr (Ravit Sachasiri) Date: Thu, 6 Aug 2009 11:01:50 +0200 Subject: [ns] Shadowing model help! Message-ID: <72c728fe0908060201p1b012888k7f74f807a5881893@mail.gmail.com> Hi all, I had been using the TwoRayGround model for a while and tried using the Shadowing model and discovered something I need help. Well, my packet delivery success rate had greatly reduce from 100% to 30% when i switch from Freespace or Tworayground for path loss exponent =2 (same as free space) and shadowing deviation = 1. I checked that if my shadowing deviation is 0, the model give same result as free space model. I dug in further and found out a criteria where packets were being dropped. It is in the wpan/p802_15_4mac. cc. Line no 1031: if ((wph->rxTotPower-p->txinfo_.RxPr) > 0.0) if (p->txinfo_.RxPr/(wph->rxTotPower-p->txinfo_.RxPr) < p->txinfo_.CPThresh) { drop(p,"LQI"); return; } I understand here that the power receive is checked to see if it is more thatn CPthresh times the power of interfering packets and if yes, the packets are dropped. In my scenerio, there is only two nodes with node 0 transmitting to node 1 only. When I use the TwoRayGround propagation, the value of power of interfering packets are always 0 and hence no packets are ever dropped for this reason but in Shadowing model, there is always some interfering power with some packets getting dropped due to the fact that the power due to interference high enough for the frame to be considered corrupted, and for shadowing deviation =1, it is 70% of all transmitted packet. The condition for both transmission is same and I am sure there is no interfering packets. Another interesting thing that I noted was that the power received of the packet with the TwoRayGround model is always the same and in the order of 10^(-12) and the interfering power is 0 while for shadowing model, the received power of that packet is in the variation from 10^(-9) to 10^(-11) with the interfering power also in the same order of magnitude. Could someone please help explain me the shadowing model and also maybe why there is interference when there is supposed to be none? Also, any other explanation to help explain what values are the usual standards for shadowing model will alsobe appreciated. Thank you. Sincerely, Ravit Sachasiri From prince.kaweta at gmail.com Thu Aug 6 02:40:51 2009 From: prince.kaweta at gmail.com (Prince Kaweta) Date: Thu, 6 Aug 2009 11:40:51 +0200 Subject: [ns] Simulate Gigabit Ethernet In-Reply-To: References: Message-ID: Hi all, I want to simulate gigabit ethernet with ns-2. I've arrived to simulate Fast ethernet (10 Mb/s, 100 Mb/s) but I don't think that MAC 802.3 implement under ns-2.28 (my ns-2 version) supports gigabit ethernet (Frame bursting, carrier extension). So if someone had already met the some problem, please help me with a patch to enhance 802.3 MAC under my ns-2 version or tell me which modification I should make to implement Frame bursting and carrier extension in ns-2.28. Best regards, Pr2K + 33 6 43 67 85 01 From mrbalador at yahoo.com Thu Aug 6 04:27:42 2009 From: mrbalador at yahoo.com (ali bala) Date: Thu, 6 Aug 2009 04:27:42 -0700 (PDT) Subject: [ns] Fw: 802.11e path for ns-2.33 Message-ID: <302089.12647.qm@web45114.mail.sp1.yahoo.com> hi all i need?best 802.11e?path for ns-2.33 that be install without problem and work well. (for adhoc or manets or distributed networks) please share your experiences with me. thanks.? ?mr.ali.balador homepage:www.balador.org From claudio at cng1.iet.unipi.it Thu Aug 6 04:32:33 2009 From: claudio at cng1.iet.unipi.it (Claudio Cicconetti) Date: Thu, 06 Aug 2009 13:32:33 +0200 Subject: [ns] Call for PhD defense workshop proposals at European Wireless 2010 Message-ID: <4A7ABF51.9000402@cng1.iet.unipi.it> [we apologize if multiple copies are received] If you are a PhD student with a thesis in wireless networks and you already have a draft of your dissertation, you can take the opportunity to participate to the PhD Defense Workshop co-located with European Wireless 2010, which will be held in Lucca next April! You will receive a valuable feedback from the members of a committee with experienced researchers from both Academia and Industry. European Wireless attendees are also free to attend and participate to the discussion with comments and questions. Up-to-date details are available in the conference website, direct link: http://www.imtlucca.it/ew2010/technical_program/phd_defense_workshop.php If you are interested please submit your dissertation proposal to the Student Papers Co-Chairs , consisting of: 1. A summary (max 5 pages) of the dissertation research including motivation and challenges, related work, positioning with respect to the state of the art, initial results. The specific topic addressed, among those listed in the European Wireless call for paper, should also be indicated. 2. A short bio (max 1 page), also containing affiliation, PhD research activities, and expected graduation date. Only proposals received before December 31, 2009 will be considered. First come first serve policy will be enforced among equal merit proposals. Acceptance notification will be provided before January 31, 2010. The Student Papers Co-Chairs Leonardo Badia Claudio Cicconetti Jan Sykora -- Additional info and questions to: student at ew2010.org European Wireless 2010 website: http://www.ew2010.org/ From priyanka_1185 at yahoo.co.in Thu Aug 6 06:08:02 2009 From: priyanka_1185 at yahoo.co.in (priyanka ramani) Date: Thu, 6 Aug 2009 18:38:02 +0530 (IST) Subject: [ns] regarding awk coding Message-ID: <278989.46593.qm@web95307.mail.in2.yahoo.com> ?hi everyone.. am new user to ns2... i want to calculate the performance metrics of dsr and aodv protocol( end-end delay, throughput, traffic load)... and i dont have idea of? calculating these.. could anyone plz send me some awk coding for these and tell me how to link this with the respective tcl script and run it? my id ( priyanka_1185 at yahoo.co.in?)... plz anyone kindly send me the coding to this id.... thank u in advance, regards, ? Priyanka? ________________________________ Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. http://downloads.yahoo.com/in/internetexplorer/ From oriandmish at gmail.com Thu Aug 6 09:14:44 2009 From: oriandmish at gmail.com (ori and mish bgu) Date: Thu, 6 Aug 2009 19:14:44 +0300 Subject: [ns] Create a new object using TCL Message-ID: Hi everybody I wrote a new object class (.h and .cc files) and I want to create an Object of that class, and send a pointer to every mac layer in my simulation of that object (get the pointer in C++), anyone knows how can I do that ? Thanks Michael From themq15 at yahoo.com Fri Aug 7 00:24:55 2009 From: themq15 at yahoo.com (Bringo Shawn) Date: Fri, 7 Aug 2009 00:24:55 -0700 (PDT) Subject: [ns] ns-2.28 Installation Error:extra qualification 'SctpAgent::' on member 'DumpSendBuffer' Message-ID: <627163.36808.qm@web43407.mail.sp1.yahoo.com> Hello. I am installing ns-2.28 on fedora 9. I faced the error: ./sctp/sctp.h:630: error: extraqualification 'SctpAgent::' on member 'DumpSendBuffer' make: *** [trace/trace.o] Error 1 I found a solution posted at http://mailman.isi.edu/pipermail/ns-users/2006-September/057325.html. The solution was to remove the extra qualifier i.e 'SctpAgent::', but then make gave some other error in the file god.h, so I removed it's extra qualifier too that was probably vertor:: and again executed the make command and now there are the following errors: ... ./common/packet.h:256: warning: deprecated conversion from string constant to ?char*? ./common/packet.h:258: warning: deprecated conversion from string constant to ?char*? queue/cbq.cc: At global scope: queue/cbq.cc:112: error: ISO C++ forbids declaration of ?CBQueue? with no type queue/cbq.cc:112: error: expected ?;? before ?*? token queue/cbq.cc: In member function ?virtual int CBQueue::insert_class(CBQClass*)?: queue/cbq.cc:488: error: ?class CBQClass? has no member named ?cbq_? queue/cbq.cc: In constructor ?CBQClass::CBQClass()?: queue/cbq.cc:805: error: class ?CBQClass? does not have any field named ?cbq_? queue/cbq.cc: In member function ?virtual void CBQClass::recv(Packet*, Handler*)?: queue/cbq.cc:850: error: ?cbq_? was not declared in this scope queue/cbq.cc:856: error: ?cbq_? was not declared in this scope queue/cbq.cc: In member function ?void CBQClass::update(Packet*, double)?: queue/cbq.cc:873: error: ?cbq_? was not declared in this scope queue/cbq.cc: In member function ?int CBQClass::desc_with_demand()?: queue/cbq.cc:928: error: ?cbq_? was not declared in this scope queue/cbq.cc: In member function ?void CBQClass::newallot(double)?: queue/cbq.cc:975: error: ?cbq_? was not declared in this scope queue/cbq.cc: In member function ?virtual int CBQClass::command(int, const char* const*)?: queue/cbq.cc:1002: error: ?cbq_? was not declared in this scope make: *** [queue/cbq.o] Error 1 Ns make failed! See http://www.isi.edu/nsnam/ns/ns-problems.html for problems [root at localhost ns-allinone-2.28]# Please help me. Thanks in advance. From bilal26 at hotmail.co.uk Fri Aug 7 02:11:38 2009 From: bilal26 at hotmail.co.uk (BilalAKhan) Date: Fri, 7 Aug 2009 02:11:38 -0700 (PDT) Subject: [ns] installation problem In-Reply-To: <66ed3b8a0908060023m7906f47ewac688ba106d294bc@mail.gmail.com> References: <66ed3b8a0908060023m7906f47ewac688ba106d294bc@mail.gmail.com> Message-ID: <24861386.post@talk.nabble.com> Dear Paramveer Sran, I am uploading the installation manual for your help. If u need any more help, please mail me at bilal26 at hotmail.co.uk Regards, Bilal A. Khan http://www.nabble.com/file/p24861386/NS-2%2BInstallation%2BGuide.pdf NS-2+Installation+Guide.pdf paramveer sran wrote: > > > i have downloaded ns-allinone-2.34.tar.gz. i m using windows.there r a > no. of folders, but i don't know how can i install this, which folders > i should click to install. i want to use ns 2 for simulating the MANET > routing protocols > help me > > > -- View this message in context: http://www.nabble.com/installation-problem-tp24841737p24861386.html Sent from the ns-users mailing list archive at Nabble.com. From r.sachasiri at isae.fr Fri Aug 7 04:53:59 2009 From: r.sachasiri at isae.fr (Ravit Sachasiri) Date: Fri, 7 Aug 2009 13:53:59 +0200 Subject: [ns] rxTotPower in wpan802.15.4 Message-ID: <72c728fe0908070453s394533baw58460e849a400c31@mail.gmail.com> Hi, Can someone tell me how the rxTotPower is calculated for 802.15.4 mac also, why sometimes it is lesser than the receive power of the specific packet? Thanks. Ravit From magnocb at yahoo.com.br Fri Aug 7 15:30:28 2009 From: magnocb at yahoo.com.br (Carlos Magno Baptista Lopes) Date: Fri, 7 Aug 2009 15:30:28 -0700 (PDT) Subject: [ns] NS2 Optical links Message-ID: <286245.46538.qm@web51502.mail.re2.yahoo.com> NS users: I?m a new NS user and?I install the NS2 current release?(2.34) on Ubuntu 9.04?and works well. Now I start my?study to implement all-optical network in NS2 (links, nodes, etc). I verify that the last update of OWns?was 2001 and this version?has been implemented?in ns-allinone-2.1b6, and has been tested on RedHat Linux 6.x 7.x. I have some questions: 1) The OWns works in 2.34 version? 2) The last OWns verson is 0.9. Is there a new OWns version ? 3) Is there another optical module for NS2 ?? ? Thanks a lot?for any help ? cmagno ____________________________________________________________________________________ Veja quais s?o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com From smfahim at gmail.com Fri Aug 7 17:15:05 2009 From: smfahim at gmail.com (S.M. Fahim Al-Faruqui) Date: Sat, 8 Aug 2009 01:15:05 +0100 Subject: [ns] insert numbers in nodes Message-ID: Dear ns users, I want to insert some numbers to the fixed wirelss nodes. Those numbers can be generated by the random function from ns. Those numbers can be stored in an array I guess. Later I want to search those numbers by hashing function. How can I create these scenario ?? What code do I need to write for this in tcl script ?? I am using AODV for my experiment in ns 2.33. If that hashing function need to be done in AODV files, then please help me how can I do that in AODV? WHich file(s) do I need to modify/add for coding? Any suggession for these coding (for hashing implementation) ?? Please someone help me on the problem. Thanks in advance. From v_mandhare at yahoo.com Sat Aug 8 01:31:06 2009 From: v_mandhare at yahoo.com (vaishali mandhare) Date: Sat, 8 Aug 2009 14:01:06 +0530 (IST) Subject: [ns] about odmrp implementation Message-ID: <450393.98494.qm@web94802.mail.in2.yahoo.com> hi all, can anybody tell me which ns2 version contain odmrp patch? wating for your replay. Thanks! ? Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com From mrbalador at yahoo.com Sat Aug 8 09:11:49 2009 From: mrbalador at yahoo.com (ali bala) Date: Sat, 8 Aug 2009 09:11:49 -0700 (PDT) Subject: [ns] help for add new agent Message-ID: <977234.2480.qm@web45109.mail.sp1.yahoo.com> hi all i?add new protocol?but when i want to run make after ./configure i didnt find make and?make clean and make depend please help me ?mr.ali.balador homepage:www.balador.org From oceanblue00 at gmail.com Sat Aug 8 10:06:25 2009 From: oceanblue00 at gmail.com (Nancy Ibrahim) Date: Sat, 8 Aug 2009 18:06:25 +0100 Subject: [ns] Using parameters specified in the Tcl script In-Reply-To: References: Message-ID: Hello, I'm trying to simulate a routing protocol that involves dividing the nodes into groups. I want to be able to specify the number of groups in a simulation in the Tcl script (pretty much like the number of nodes is specified), but if I define the number of groups, for instance, val(groupno) in the Tcl file, I don't know how to access and use that number in the routing protocol code. Any help would be appreciated. Thank you. Nancy Ibrahim From imrankhan1984 at gmail.com Sat Aug 8 14:14:38 2009 From: imrankhan1984 at gmail.com (Imran khan) Date: Sun, 9 Aug 2009 02:14:38 +0500 Subject: [ns] Problem simulating OLSR using NS2 + SUMO with TraCI Message-ID: <749d809a0908081414s3be9b813h5bac8f7078d43d74@mail.gmail.com> Hi, I've successfully tested AODV and DYMO routing protocols using TraCI interface for coupling of NS2 and SUMO for road traffic simulations. But when I use OLSR patch (UM-OLSR), I get segmentation fault error. Previously, while only using NS2 for simulations I did get this error, but I managed to increase some of the constants defined in the patch, and got rid of this segmentation fault error. This time around I'm experimenting with only 10 nodes, which are travelling on a highway and use OLSR as communication protocol. So, memory related issue should not be a problem, as the number of nodes are small. anyhow the simualion lasts for only 8 seconds out of 40 seconds in total. Any other person faced this problem? Or is there an issue with PROACTIVE routing protocols, when used with SUMO+NS2 settings. thanks! -- "Talent does what it can; genius does what it must." -- Best Regards, Imran Khan MS Multimedia & Communications Muhammad Ali Jinnah University Islamabad, Pakistan +92300-5397149 From cyahaya at gmail.com Sat Aug 8 21:04:52 2009 From: cyahaya at gmail.com (COULIBALY Yaya) Date: Sun, 9 Aug 2009 12:04:52 +0800 Subject: [ns] Trace file problem Message-ID: Hi all, I am working with ns-OBS. The examples are runing fine. However, the part of plotting results does not work. Anybody to assist me? -- @ Patience is the key to success @ ************************ COULIBALY Yahaya PhD Candidate Optical Burst Switching Research Group Faculty of Computer Science & Information Systems Department of Communication & Computer Systems Malaysia University of Technology (UTM) 81310 Skudai, Johor Bahru, Johor Cell: 0060196886615 : 0060137677542 From ba at es.aau.dk Sun Aug 9 04:46:09 2009 From: ba at es.aau.dk (Bayu Anggorojati) Date: Sun, 09 Aug 2009 13:46:09 +0200 Subject: [ns] error using vlantest Message-ID: <4A7EB701.7020201@es.aau.dk> Dear all, I am new to NS-2, I just join this mailing list and this is my first post. I would like to perform some simulation of VLAN, so I tried some examples of vlan, i.e. vlantest-flat.tcl, vlantest-hier.tcl, vlantest-mcst.tcl under ~/tcl/ex. I found error with this output which is similar to those 3 simulation examples: sourcing tcl/lan/vlan.tcl... no files matched glob pattern "out.*" while executing "glob $opt(tr).*" invoked from within "if [file exists $opt(tr)] { catch "exec rm -f $opt(tr) $opt(tr)-bw [glob $opt(tr).*]" }" (procedure "create-trace" line 4) invoked from within "create-trace" invoked from within "set trfd [create-trace]" (file "vlantest-flat.tcl" line 74) But, interestingly enough, I can run vlantest-flat.tcl after I run simple.tcl, however the other 2 are still not working. Another interesting story is that vlantest-flat.tcl will give the same error unless simple.tcl is run. So, in short I have to do this trick again and again in order to run vlantest-flat.tcl. Has somebody come across the same error? Any clue and suggestion are appreciated. -- Kind Regards, Bayu Anggorojati - Research Assistant Wireless Security and Sensor Networks Group Networking and Security Center for TeleInFrastruktur (CTIF), Aalborg University Niels Jernes Vej 12, room A5-208 Aalborg University DK-9220 - Denmark Office +45 9940 8647 Mobile +45 5015 3183 Email: ba at es.aau.dk From mrbalador at yahoo.com Sun Aug 9 10:06:32 2009 From: mrbalador at yahoo.com (ali bala) Date: Sun, 9 Aug 2009 10:06:32 -0700 (PDT) Subject: [ns] error during make 802.11e tkn Message-ID: <655632.54275.qm@web45114.mail.sp1.yahoo.com> hi i download 802.11e from tkn and flow the instruction but after ./configure when i run make i see this error whats the reason and way?for solving? pleaes help ?mr.ali.balador homepage:www.balador.org From chandra.mahin at gmail.com Sun Aug 9 11:13:40 2009 From: chandra.mahin at gmail.com (Maggi.....) Date: Mon, 10 Aug 2009 02:13:40 +0800 Subject: [ns] Implementing VoIP simulation and measuring its QoS using tkn 802.11e In-Reply-To: <3521ad3d0908091108v3a38658fv2f4dd28b14130b71@mail.gmail.com> References: <3521ad3d0908091108v3a38658fv2f4dd28b14130b71@mail.gmail.com> Message-ID: <3521ad3d0908091113y3bbe8a7em172b8dc76cf2b8a2@mail.gmail.com> Hi all, I am new to NS2,i am currently working on a project "Implementing VoIP simulation and measuring its QoS". I have installed "tkn 802.11e" and working on some simulations. I would like to know,whether there are anyone who is working on a similar kind of simulation using tkn 802.11e.If so is it possible to share your results and ideas with me..I am very happy to share mine. Thanks in advance Regards, mahinthan -- B.C.Mahinthan School of Computer Engineering Nanyang Technological University Singapore From chandra.mahin at gmail.com Sun Aug 9 11:15:53 2009 From: chandra.mahin at gmail.com (Maggi.....) Date: Mon, 10 Aug 2009 02:15:53 +0800 Subject: [ns] Implementing VoIP simulation and measuring its QoS using tkn 802.11e Message-ID: <3521ad3d0908091115v35a0bcd8u27d5736c46bf6e2@mail.gmail.com> Hi all, I am new to NS2,i am currently working on a project "Implementing VoIP simulation and measuring its QoS". I have installed "tkn 802.11e" and working on some simulations. I would like to know,whether there are anyone who is working on a similar kind of simulation using tkn 802.11e.If so is it possible to share your results and ideas with me..I am very happy to share mine. Thanks in advance Regards, mahinthan -- B.C.Mahinthan School of Computer Engineering Nanyang Technological University Singapore From weizhang156 at yahoo.com Sun Aug 9 13:51:29 2009 From: weizhang156 at yahoo.com (Wei Zhang) Date: Sun, 9 Aug 2009 20:51:29 +0000 (GMT) Subject: [ns] perform interference or influence between two nodes in NS2, please help me Message-ID: <451431.7520.qm@web23601.mail.ird.yahoo.com> ? Dear All, ? I w?ant to?perform interference or influence(not formula) between two nodes in transmission range each other?in NS2. I do not? know? ho?w to do. Could?anybody?please?help me? I need your help. ? Thank you very much. W??????????????????ei zhang From nirgauri at yahoo.com Mon Aug 10 00:25:48 2009 From: nirgauri at yahoo.com (gauri nir) Date: Mon, 10 Aug 2009 00:25:48 -0700 (PDT) Subject: [ns] help for error model Message-ID: <894466.60780.qm@web44907.mail.sp1.yahoo.com> Hi all! ?I cannot find proper error model for wireless, The uniform error model with incomingErr $em is not working. Can someone help me plz. ? Regards, Gauri From mrbalador at yahoo.com Mon Aug 10 00:39:26 2009 From: mrbalador at yahoo.com (ali bala) Date: Mon, 10 Aug 2009 00:39:26 -0700 (PDT) Subject: [ns] Fw: i have the problem with adding 802.11e protocol to ns-2 same as you Message-ID: <168734.71858.qm@web45103.mail.sp1.yahoo.com> hi i download 802.11e from tkn and flow the instruction but after ./configure when i run make i see this error ?make : *** [libns.dll] error 1 and many undefined refrence to whats your solution? please help me mr.ali.balador homepage:www.balador.org From v_mandhare at yahoo.com Mon Aug 10 02:28:08 2009 From: v_mandhare at yahoo.com (vaishali mandhare) Date: Mon, 10 Aug 2009 02:28:08 -0700 (PDT) Subject: [ns] error while implementing odmrp Message-ID: <511379.37147.qm@web94809.mail.in2.yahoo.com> Hello all, I am implementing ODMRP in ns2.26 and add patch in ns2.26 version, but when run the script get error as "wrong routing agent?" why thsi is occure , help me regarding this . ? Thanks! ? Vaishali? Looking for local information? Find it on Yahoo! Local http://in.local.yahoo.com/ From chandra.mahin at gmail.com Mon Aug 10 05:19:10 2009 From: chandra.mahin at gmail.com (Maggi.....) Date: Mon, 10 Aug 2009 20:19:10 +0800 Subject: [ns] Handoff mechanism for 802.11e using NS2. Message-ID: <3521ad3d0908100519o6085f4d7qc9a14537b1cd14e6@mail.gmail.com> Hi all, I am working with handoff mechanism for 802.11e using NS2. I want to knw whether there are anyone who is working on a similar thing.I want to discuss and share some ideas thank you. regards, mahinthan -- B.C.Mahinthan School of Computer Engineering Nanyang Technological University Singapore From vini_rathi at hotmail.com Tue Aug 11 00:50:33 2009 From: vini_rathi at hotmail.com (V K rathi) Date: Tue, 11 Aug 2009 07:50:33 +0000 Subject: [ns] Patch ns2mesh80216-2.33-081113 Message-ID: hello everyone, I am having problem in using this patch, When I try to install, it gives error in line 11280, I opened it in text editor , at that position classWimshBwManager is placed but text editor shows only garbage in that class instead of any commands or function definitions.... I tried to redownload but still issue remain unresolved. can anyone help me? thanks in anticipation Regards, V K Mahwshwari. Regards, Vinod Kumar Maheshwari. st106968 at ait.ac.th. _________________________________________________________________ Express your personality in color! Preview and select themes for Hotmail?. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009 From ma-haiyuan at 163.com Wed Aug 12 00:02:25 2009 From: ma-haiyuan at 163.com (ma-haiyuan) Date: Wed, 12 Aug 2009 15:02:25 +0800 (CST) Subject: [ns] error when install ns-allinone-2.1b7a on fedora 8 Message-ID: <19551726.582411250060545911.JavaMail.coremail@bj163app18.163.com> Hi! when I install ns-alinone-2.1b7a on Fedora, there is an error which made the installing failed: tclcl-mappings.h: In static member function ‘static int TclObjectHelper::dispatch_(void*, Tcl_Interp*, int, char**)’: tclcl-mappings.h:51: error: incomplete type ‘Tcl’ used in nested name specifier tclcl-mappings.h:52: error: invalid use of undefined type ‘struct Tcl’ tclcl-mappings.h:41: error: forward declaration of ‘struct Tcl’ tclcl-mappings.h:57: error: invalid use of undefined type ‘struct Tcl’ tclcl-mappings.h:41: error: forward declaration of ‘struct Tcl’ make: *** [Tcl.o] Error 1 tclcl-1.0b10 make failed! Exiting ... please help me! Thank you and best wishes! From mrbalador at yahoo.com Wed Aug 12 01:31:03 2009 From: mrbalador at yahoo.com (ali bala) Date: Wed, 12 Aug 2009 01:31:03 -0700 (PDT) Subject: [ns] please help me fo installing 802.11etkn Message-ID: <808111.67129.qm@web45103.mail.sp1.yahoo.com> ?mr.ali.balador homepage:www.balador.org ----- Forwarded Message ---- From: ali bala To: Maggi..... Sent: Wednesday, August 12, 2009 12:47:22 PM Subject: Re: please help me fo installing 802.11etkn hi i have a same problem i installed ns-2.33 and when i modify my makefile and follow the instruction in? the readme file of 802.11e tkn i see the error when i run make and?after that i cleen the new modification but i still the error i confused. please help me? ?mr.ali.balador homepage:www.balador.org ________________________________ From: Maggi..... To: ali bala Sent: Monday, August 10, 2009 4:44:22 PM Subject: Re: please help me fo installing 802.11etkn ya..i also encountered same problem. dont change the existing Makefile.in(if u have already installed nsallinone) if you do so then u'l encounter problem when running "make" command. so what i did is, i replaced the current Makefile.in with a?new Makefile.in and modified the?new Makefile. then run the??"make" comand. i think it'l work fine.else let me knw. mahinthan 2009/8/10 ali bala hi >i download 802.11e from tkn and flow the instruction but after ./configure when i run make i see this error >whats the reason and way?for solving? >pleaes help for installing 802.11e tkn >?mr.ali.balador >homepage:www.balador.org > -- B.C.Mahinthan School of Computer Engineering Nanyang Technological University Singapore From weizhang156 at yahoo.com Wed Aug 12 04:40:35 2009 From: weizhang156 at yahoo.com (Wei Zhang) Date: Wed, 12 Aug 2009 11:40:35 +0000 (GMT) Subject: [ns] interference or influence between two nodes in NS2, please help me Message-ID: <135066.55217.qm@web23603.mail.ird.yahoo.com> Hi All, ? I have a problem?for performing the interference in NS2: ? Two?nodes A and B?are in transmission(or interference) range each other and susgest that interference?level between us is x??How do?I must declare some parameters and where to the network can understand?that there is interference between A and B to be x in NS2? ? Thank you very much for your help. Wei Zhang From larissalucena at gmail.com Wed Aug 12 06:06:34 2009 From: larissalucena at gmail.com (Larissa Lucena) Date: Wed, 12 Aug 2009 10:06:34 -0300 Subject: [ns] Fwd: Problem recompiling NS-2 In-Reply-To: <440165240908120555la5c5985hc8de3de075d69966@mail.gmail.com> References: <440165240908120555la5c5985hc8de3de075d69966@mail.gmail.com> Message-ID: <440165240908120606y7024afe6rc19fde975080e779@mail.gmail.com> ---------- Forwarded message ---------- From: Larissa Lucena Date: Wed, Aug 12, 2009 at 09:55 Subject: Problem recompiling NS-2 To: ns-users at isi.edu Hello, everyone! I? having a problem when I try to recompile the NS-2 code after a little change in aodv code (I just tried to get the mobile node position and print it). I hope you could help me. I tried to delete the config. status and Makefile and did ./configure make clean and make again, but didn't work... The error I get is In file included from aodv/aodv_logs.cc:32: ./aodv/aodv_packet.h:61: error: ?u_int8_t? does not name a type ./aodv/aodv_packet.h:69: error: expected ?,? or ?...? before ?*? token ./aodv/aodv_packet.h:69: error: ISO C++ forbids declaration of ?Packet? with no type ./aodv/aodv_packet.h: In static member function ?static hdr_aodv* hdr_aodv::access(int)?: ./aodv/aodv_packet.h:70: error: ?p? was not declared in this scope ./aodv/aodv_packet.h: At global scope: ./aodv/aodv_packet.h:75: error: ?u_int8_t? does not name a type ./aodv/aodv_packet.h:76: error: ?u_int8_t? does not name a type ./aodv/aodv_packet.h:77: error: ?u_int8_t? does not name a type ./aodv/aodv_packet.h:78: error: ?u_int32_t? does not name a type ./aodv/aodv_packet.h:80: error: ?nsaddr_t? does not name a type ./aodv/aodv_packet.h:81: error: ?u_int32_t? does not name a type ./aodv/aodv_packet.h:82: error: ?nsaddr_t? does not name a type ./aodv/aodv_packet.h:83: error: ?u_int32_t? does not name a type ./aodv/aodv_packet.h: In member function ?int hdr_aodv_request::size()?: ./aodv/aodv_packet.h:105: error: ?u_int32_t? was not declared in this scope ./aodv/aodv_packet.h:106: error: ?assert? was not declared in this scope ./aodv/aodv_packet.h: At global scope: ./aodv/aodv_packet.h:112: error: ?u_int8_t? does not name a type ./aodv/aodv_packet.h:113: error: ?u_int8_t? does not name a type ./aodv/aodv_packet.h:114: error: ?u_int8_t? does not name a type ./aodv/aodv_packet.h:115: error: ?nsaddr_t? does not name a type ./aodv/aodv_packet.h:116: error: ?u_int32_t? does not name a type ./aodv/aodv_packet.h:117: error: ?nsaddr_t? does not name a type ./aodv/aodv_packet.h: In member function ?int hdr_aodv_reply::size()?: ./aodv/aodv_packet.h:135: error: ?u_int32_t? was not declared in this scope ./aodv/aodv_packet.h:136: error: ?assert? was not declared in this scope ./aodv/aodv_packet.h: At global scope: ./aodv/aodv_packet.h:143: error: ?u_int8_t? does not name a type ./aodv/aodv_packet.h:144: error: ?u_int8_t? does not name a type ./aodv/aodv_packet.h:145: error: ?u_int8_t? does not name a type ./aodv/aodv_packet.h:147: error: ?nsaddr_t? does not name a type ./aodv/aodv_packet.h:148: error: ?u_int32_t? does not name a type ./aodv/aodv_packet.h: In member function ?int hdr_aodv_error::size()?: ./aodv/aodv_packet.h:158: error: ?DestCount? was not declared in this scope ./aodv/aodv_packet.h:158: error: ?u_int32_t? was not declared in this scope ./aodv/aodv_packet.h:159: error: ?assert? was not declared in this scope ./aodv/aodv_packet.h: At global scope: ./aodv/aodv_packet.h:166: error: ?u_int8_t? does not name a type ./aodv/aodv_packet.h:167: error: ?u_int8_t? does not name a type aodv/aodv_logs.cc: In member function ?void AODV::log_link_del(nsaddr_t)?: aodv/aodv_logs.cc:47: error: ?logtarget? was not declared in this scope aodv/aodv_logs.cc:53: error: ?logtarget? was not declared in this scope aodv/aodv_logs.cc:59: error: ?God? has not been declared aodv/aodv_logs.cc: At global scope: aodv/aodv_logs.cc:65: error: prototype for ?void AODV::log_link_broke(Packet*)? does not match any in class ?AODV? aodv.h:321: error: candidate is: void AODV::log_link_broke(int*) aodv/aodv_logs.cc: In member function ?void AODV::log_link_kept(nsaddr_t)?: aodv/aodv_logs.cc:89: error: ?logtarget? was not declared in this scope aodv/aodv_logs.cc:97: error: ?logtarget? was not declared in this scope aodv/aodv_logs.cc:103: error: ?God? has not been declared make: ** [aodv/aodv_logs.o] Erro 1 Thanks in advance! Larissa -- "O maior prazer do inteligente ? bancar o idiota diante de um idiota que banca o inteligente". -- "O maior prazer do inteligente ? bancar o idiota diante de um idiota que banca o inteligente". From cyahaya at gmail.com Wed Aug 12 08:02:18 2009 From: cyahaya at gmail.com (COULIBALY Yaya) Date: Wed, 12 Aug 2009 23:02:18 +0800 Subject: [ns] installation problem Message-ID: Dear all, I am trying NS2 on federa 64 bit without sucess. Any assistance? Best regards -- @ Patience is the key to success @ ************************ COULIBALY Yahaya PhD Candidate Optical Burst Switching Research Group Faculty of Computer Science & Information Systems Department of Communication & Computer Systems Malaysia University of Technology (UTM) 81310 Skudai, Johor Bahru, Johor Cell: 0060196886615 : 0060137677542 From e_cherkaoui at yahoo.fr Wed Aug 12 09:14:31 2009 From: e_cherkaoui at yahoo.fr (El hadi Cherkaoui) Date: Wed, 12 Aug 2009 16:14:31 +0000 (GMT) Subject: [ns] NS wireless topology in TCL Message-ID: <831502.26790.qm@web28603.mail.ukl.yahoo.com> hi all, i need to creat a complexe topology in tcl with: ?N AP for umts ?M BS for wifi & wimax ?k? terminal best regards ? From afeeltlicksm at gmail.com Wed Aug 12 15:53:31 2009 From: afeeltlicksm at gmail.com (Felix Chou) Date: Wed, 12 Aug 2009 15:53:31 -0700 Subject: [ns] Leopard Install Problem Message-ID: Hello all, I've been trying to install ns-2 on my Macbook Pro laptop (10.5.8) and I have been searching the internet for a while hoping to find a quick solution to my build error. I see that this error has been posted on the wiki but don't see a solution to it. I'm stuck on the error with building nam: Undefined symbols: "_TkCreateXEventSource", referenced from: _TkpInit in tkUnixInit.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [nam] Error 1 Has anyone come up with a workaround or straight up fix for this yet? Sincerely, Felix Chou From kundavikp at gmail.com Wed Aug 12 22:33:25 2009 From: kundavikp at gmail.com (kundavi) Date: Thu, 13 Aug 2009 11:03:25 +0530 Subject: [ns] how to add a cpp file to ns2 Message-ID: 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 From v_mandhare at yahoo.com Thu Aug 13 01:09:19 2009 From: v_mandhare at yahoo.com (vaishali mandhare) Date: Thu, 13 Aug 2009 01:09:19 -0700 (PDT) Subject: [ns] creation of object file in odmrp Message-ID: <572275.16547.qm@web94806.mail.in2.yahoo.com> hello all, I am implementing odmrp in ns2.26 taking patch from ns2.1b8 version, but?I am unable to create object file by using .cc and .h file ? thanks!? See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/ From forenmail at yahoo.de Thu Aug 13 01:45:50 2009 From: forenmail at yahoo.de (Tom G) Date: Thu, 13 Aug 2009 08:45:50 +0000 (GMT) Subject: [ns] How RealAudio works Message-ID: <705707.73601.qm@web24715.mail.ird.yahoo.com> Has someone already experience with the application "RealAudio"? I need a bit help with its funktionality. I attach the Agent "RTP" with the Application "RealAudio" Why couldn't I change the parameter packageSize ($traffic set packetSize_ $size) of RealAudio? Its fix at 210bps according to the File out.nam It works with the Agent "UDP" and the Application "CBR" kind regards Tom From forenmail at yahoo.de Thu Aug 13 02:33:39 2009 From: forenmail at yahoo.de (Tom G) Date: Thu, 13 Aug 2009 09:33:39 +0000 (GMT) Subject: [ns] how to calculate delay/jitter Message-ID: <198664.9516.qm@web24701.mail.ird.yahoo.com> Hi, I've got the next question. following topology... n0 n4 \ / n2----n3 / \ n1 n5 how can I get the delay between Node0 and Node4? Every manual I found regarding this is limited to the delay between a Node and its Neighbour e.g. delay between n2 and n3. Is there a possibility for getting the delay, or have I to calculate it? Also I have to calculate / get the jitter between node0 and node4. Therefor I have no idea how to realize that I hope someone could send me useful suggestion. best regards Tom From ns2-user at andreas-lemke.net Thu Aug 13 06:02:21 2009 From: ns2-user at andreas-lemke.net (ns2-user@andreas-lemke.net) Date: Thu, 13 Aug 2009 15:02:21 +0200 (CEST) Subject: [ns] Use a DelayBox with hierarchical addressing Message-ID: <20090813130221.2CF12E1E042@dd21130.kasserver.com> I wonder whether it is possoble to use one or more DelayBoxes together with the hierarchical address format. I have a ns-2 setup with two DelayBoxes inside. I create them with the command: set delayBox1 [$ns DelayBox 0.2.1] and set delayBox2 [ $ns DelayBox 0.2.2] After starting the simulation I always get the following error: str2addr:Address 7239534 outside range of address field length 256. When I replace the DelayBoxes with normal nodes: set delayBox1 [$ns node 0.2.1] set delayBox2 [ $ns node 0.2.2] there is no error anymore and the simulation runs a intend, except the DelayBoxes. Does anybody know whether there is a general problem when using DelayBoxes with hier-adddres? My system: Ubuntu Linux 9.04, ns-2 2.34 allinone Thanks a lot Andreas From afeeltlicksm at gmail.com Thu Aug 13 10:49:09 2009 From: afeeltlicksm at gmail.com (Felix Chou) Date: Thu, 13 Aug 2009 10:49:09 -0700 Subject: [ns] NS Precompiled Installer for MacOSX Message-ID: Hey all, Does anyone still have the installer(ns-allinone-2.29.3-UniversalBinary-Precompiled.dmg) around that can send me a copy? Thanks! Regards, Felix From ooluwadiya at yahoo.com Thu Aug 13 14:43:26 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Thu, 13 Aug 2009 14:43:26 -0700 (PDT) Subject: [ns] help with setting base directory in mipv6 script Message-ID: <641971.2114.qm@web35507.mail.mud.yahoo.com> hello, i am setting up a mobile ipv6 scenario and i need to set up the basedir to my own path but i m getting the error : wrong # args:should be "source filename" below is the command # set BASEDIR to your own correct path ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-tools.tcl ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-topo.tcl ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/ns-topoman.tcl ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-global.tcl ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-config.tcl ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/mobility/timer.tcl the following tcl files above are in my c:/cygwin/home/administrator/ns-allinone-2.33/ns-2.33/tcl/lib folder. what am i doing wrong? regards From njvsny at yahoo.com Thu Aug 13 16:46:56 2009 From: njvsny at yahoo.com (Hristo Asenov) Date: Thu, 13 Aug 2009 16:46:56 -0700 (PDT) Subject: [ns] unable to get wireless Error Model working Message-ID: <741296.75870.qm@web37907.mail.mud.yahoo.com> Hello, I have used the main documentation in order to simulate wireless errors with a normal distribution. For control case I have a script which has no error model enabled: http://hpaste.org/fastcgi/hpaste.fcgi/view?id=8174. I then modified the script to look like so: http://hpaste.org/fastcgi/hpaste.fcgi/view?id=8175. However when I diff the two trace files, they are exactly the same and there are no changes. I tried removing the ranvar and there was still no difference. If anyone could tell me which parameters I am setting incorrectly, it would be very useful. Thanks, - Hristo From forenmail at yahoo.de Fri Aug 14 01:14:32 2009 From: forenmail at yahoo.de (Tom G) Date: Fri, 14 Aug 2009 08:14:32 +0000 (GMT) Subject: [ns] how to calculate delay/jitter In-Reply-To: <198664.9516.qm@web24701.mail.ird.yahoo.com> References: <198664.9516.qm@web24701.mail.ird.yahoo.com> Message-ID: <549825.29609.qm@web24712.mail.ird.yahoo.com> I solved my problem. This script is very useful I think. http://hpds.ee.ncku.edu.tw/~smallko/ns2/tool_en.htm Perhaps it could help so. with similar problems best regards Tom ________________________________ Von: Tom G An: ns users Gesendet: Donnerstag, den 13. August 2009, 11:33:39 Uhr Betreff: [ns] how to calculate delay/jitter Hi, I've got the next question. following topology... n0 n4 \ / n2----n3 / \ n1 n5 how can I get the delay between Node0 and Node4? Every manual I found regarding this is limited to the delay between a Node and its Neighbour e.g. delay between n2 and n3. Is there a possibility for getting the delay, or have I to calculate it? Also I have to calculate / get the jitter between node0 and node4. Therefor I have no idea how to realize that I hope someone could send me useful suggestion. best regards Tom From oriandmish at gmail.com Fri Aug 14 04:03:29 2009 From: oriandmish at gmail.com (ori and mish bgu) Date: Fri, 14 Aug 2009 14:03:29 +0300 Subject: [ns] Random Waypoint Message-ID: Dear ns-users I want to add random waypoint to my ad-hoc network. I can use setdest command to move the nodes .. but first I wanted to see some examples of different implementations for random waypoint models. I googled this but haven't found any scripts.. actually I found this page http://lrcwww.epfl.ch/RandomTrip/ but the link to the ns2 code seems to be dead. Anyone can please share any examples ? Thanks Michael From erlender at gmail.com Fri Aug 14 04:33:24 2009 From: erlender at gmail.com (Erlend Larsen) Date: Fri, 14 Aug 2009 13:33:24 +0200 Subject: [ns] Random Waypoint In-Reply-To: <5eed4b7a0908140427s36bdd13lab1206980a054a0c@mail.gmail.com> References: <5eed4b7a0908140427s36bdd13lab1206980a054a0c@mail.gmail.com> Message-ID: <5eed4b7a0908140433k4d378eddrd97e21575ce8f066@mail.gmail.com> Try this link: http://monarch.cs.rice.edu/~santa/research/mobility/ Regards, Erlend On Fri, Aug 14, 2009 at 13:03, ori and mish bgu wrote: > > Dear ns-users > > I want to add random waypoint to my ad-hoc network. > I can use setdest command to move the nodes .. > but first I wanted to see some examples of different implementations for > random waypoint models. > I googled this but haven't found any scripts.. ?actually I found this page > http://lrcwww.epfl.ch/RandomTrip/ but the link to the ns2 code seems to be > dead. > Anyone can please share any examples ? > > Thanks > Michael > From ooluwadiya at yahoo.com Fri Aug 14 04:50:05 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Fri, 14 Aug 2009 04:50:05 -0700 (PDT) Subject: [ns] mobile ipv6 simulation Message-ID: <524660.52139.qm@web35503.mail.mud.yahoo.com> i tried running the mobile ipv6 scenario i ran for the mobile ipv4 using the scripts below but i got an error "segmentation fault (core dumped)"when i tried running the simulation.what do u think is the problem thanks # Basic Mobile IPv6 example without using ns-topoman # Needs proc defined in file proc-mipv6-config.tcl Agent/MIPv6/MN set bs_forwarding_ ? ? 0 ################################################################ proc log-mn-movement_no_topo { } { ??global logtimer ns ??Class LogTimer -superclass Timer ??LogTimer instproc timeout {} { ?? ? ? ? global mobile_ ?? ? ? ?$mobile_ log-movement ?? ? ? ?$self sched 1 ??} ??set logtimer [new LogTimer] ??$logtimer sched 1 } ################################################################ # Create Topology ################################################################ proc create-my-topo {} { ??global ns opt topo mobile_ cn_ mnn_nodes_ ??# Create and define topography ??set topo ? ? ? ?[new Topography] ??# ? set prop ? ? ? ?[new $opt(prop)] ??# ? $prop topography $topo ??$topo load_flatgrid 1500 1500 ??# god is a necessary object when wireless is used ??# set to a value equal to the number of mobile nodes ??create-god 5 ??# Call node-config ??$ns node-config \ ?? ? ? ?-addressType hierarchical \ ?? ? ? ? -agentTrace ON \ ?? ? ? ? -routerTrace ON ??# Set NS Addressing ??AddrParams set domain_num_ 5 ??AddrParams set cluster_num_ {4 1 1 1 1} ??AddrParams set nodes_num_ {1 1 1 1 2 1 1 1 } ??# Create Nodes ??set cn_ [create-router 0.0.0] ??set router1_ [create-router 1.0.0] ??set router2_ [create-router 2.0.0] ??set router3_ [create-router 3.0.0] ??set bs1_ [create-base-station 1.1.0 1.0.0 200 200 0] ??set bs2_ [create-base-station 1.2.0 1.0.0 200 600 0] ??set bs3_ [create-base-station 1.3.0 1.0.0 600 200 0] ??set bs4_ [create-base-station 1.4.0 1.0.0 600 600 0] ??set mobile_ [create-mobile 1.1.1 1.1.0 190 190 0 1 0.01] ??$bs1_ random-motion 0 ??$bs2_ random-motion 0 ??$bs3_ random-motion 0 ??$bs4_ random-motion 0 ??# Position (fixed) for base-station nodes (HA & FA). ??$bs1_ set X_ 250.000000000000 ??$bs1_ set Y_ 1050.000000000000 ??$bs1_ set Z_ 0.000000000000 ??$bs2_ set X_ 950.000000000000 ??$bs2_ set Y_ 1050.000000000000 ??$bs2_ set Z_ 0.000000000000 ??$bs3_ set X_ 950.000000000000 ??$bs3_ set Y_ 300.000000000000 ??$bs3_ set Z_ 0.000000000000 ??$bs4_ set X_ 250.000000000000 ??$bs4_ set Y_ 300.000000000000 ??$bs4_ set Z_ 0.000000000000 ??# Create Links ??$ns duplex-link $cn_ $router1_ 100Mb 2ms DropTail ??$ns duplex-link $router1_ $router2_ 100Mb 2ms DropTail ??$ns duplex-link $router1_ $router3_ 100Mb 2ms DropTail ??$ns duplex-link $router2_ $bs1_ 100Mb 2ms DropTail ??$ns duplex-link $router2_ $bs2_ 100Mb 2ms DropTail ??$ns duplex-link $router3_ $bs3_ 100Mb 2ms DropTail ??$ns duplex-link $router3_ $bs4_ 100Mb 2ms DropTail ??$ns duplex-link-op $cn_ $router1_ orient down ??$ns duplex-link-op $router1_ $router2_ orient left-down ??$ns duplex-link-op $router1_ $router3_ orient right-down ??$ns duplex-link-op $router2_ $bs1_ orient left-down ??$ns duplex-link-op $router2_ $bs2_ orient right-down ??$ns duplex-link-op $router3_ $bs3_ orient down ??$ns duplex-link-op $router3_ $bs4_ orient right-down ??# movement of the MH ??$mobile_ set Z_ 0.000000000000 ??$mobile_ set Y_ 1000.000000000000 ??$mobile_ set X_ 250.000000000000 ??# MH starts to move towards FA1 ??$ns at 10.000000000000 "$mobile_ setdest 950.000000000000 1000.000000000000 20.000000000000" ??# MH move from FA1 towards FA2 ??$ns at 50.000000000000 "$mobile_ setdest 950.000000000000 350.000000000000 20.000000000000" ??# MH move from FA2 towards FA3 ??$ns at 85.000000000000 "$mobile_ setdest 250.000000000000 350.000000000000 20.000000000000" ??display_ns_addr_domain } ################################################################ # End of Simulation ################################################################ proc finish { } { ??global tracef ns namf opt mobile_ cn_ ??puts "Simulation finished" ??# Dump the Binding Update List of MN and Binding Cache of HA ??[[$mobile_ set ha_] set regagent_] dump ??[$cn_ set regagent_] dump ??[$mobile_ set regagent_] dump ??$ns flush-trace ??flush $tracef ??close $tracef ??close $namf ??#puts "running nam with $opt(namfile) ... " ??#exec nam $opt(namfile) & ??exit 0 } ################################################################ # Main ################################################################ proc main { } { ?? global opt ns TOPOM namf n tracef mobile_ cn_ ?? # Source Files ?? # source set-def-options.tcl ?? # set BASEDIR to your own correct path ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl ?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-tools.tcl ?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-topo.tcl ?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/ns-topoman.tcl ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-global.tcl ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-config.tcl ?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/mobility/timer.tcl ?? set NAMF out.nam ?? set TRACEF out.tr ?? set INFOF out.info ?? set opt(mactrace) ON ?? set opt(NAM) 1 ?? set opt(namfile) $NAMF ?? set opt(stop) 130 ?? set opt(tracefile) $TRACEF ?? #>--------------- Extract options from command line ---------------< ?? #Getopt ? ? ? ?; # Get option from the command line ?? #DisplayCommandLine ?? #>---------------------- Simulator Settings ----------------------< ?? set ns [new Simulator] ?? #>------------------------ Open trace files ----------------------< ?? exec rm -f $opt(tracefile) ?? set tracef [open $opt(tracefile) w] ?? #... dump the file ?? $ns trace-all $tracef ?? set namf [open $opt(namfile) w] ?? $ns namtrace-all $namf ?? #>------------- Protocol and Topology Settings -------------------< ?? create-my-topo ?? log-mn-movement_no_topo ?? set-cbr ?? # set-ping-int 0.1 $cn_ $mobile_ 10 $opt(stop) ?? #>----------------------- Run Simulation -------------------------< ?? $ns at $opt(stop) "finish" ?? $ns run ?? $ns dump-topology $namf ?? close $namf ?? #puts "running nam with $opt(namfile) ... " ?? #exec nam $opt(namfile) & } proc set-cbr { } { ?? global ns cn_ mobile_ ?? set tcp1 [new Agent/TCP] ?? $ns attach-agent $cn_ $tcp1 ?? set dst [new Agent/TCPSink] ?? $ns attach-agent $mobile_ $dst ?? $ns connect $tcp1 $dst ?? set ftp1 [new Application/FTP] ?? $ftp1 set packetSize_ 1040 ?? $ftp1 set rate_ 100k ?? $ftp1 set interval_ 0.05 ?? $ftp1 attach-agent $tcp1 ?? ?$ns at 10.0 "$ftp1 start" } main From engreyo at yahoo.com Fri Aug 14 07:23:18 2009 From: engreyo at yahoo.com (Rania Kamal) Date: Fri, 14 Aug 2009 07:23:18 -0700 (PDT) Subject: [ns] Fw: DSR Message-ID: <742170.48902.qm@web43511.mail.sp1.yahoo.com> hi all did anyone know how can i get DSR code for Broch et. al., or how can i modify the tcl script attached according to the following simulation parameters to get high packet delievery ratio, around 0.8 to 0.98 ? the simulation parameters: * simulations are for networks of 50, 112, and 200 nodes with 802.11 WaveLAN radios, with a nominal 250-meter range.We simulate 30 CBR traffic flows, originated by 22 sending nodes. Each CBR flow sends atEach simulation lasts for 900 seconds of simulated time. * The nodes are initially placed uniformly at random in a rectangular region. All nodes move according to the random waypoint model, with a maximum velocity of 20 m/s. * We simulate pause times of 0, 30, 60, and 120 seconds, the highest mobility cases, * * 2 Kbps, and uses 64-byte packets.? * * We simulate at each pause time with six different randomly generated motion patterns, and present the mean of each metric over these six runs. thanks alot -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dsr-p-120.tcl Url: http://mailman.isi.edu/pipermail/ns-users/attachments/20090814/8e05f3cc/dsr-p-120.ksh From lukman_hanif at yahoo.com Fri Aug 14 18:52:49 2009 From: lukman_hanif at yahoo.com (lukman_hanif@yahoo.com) Date: Fri, 14 Aug 2009 18:52:49 -0700 (PDT) Subject: [ns] PIM-SM MPLS Message-ID: <692093.17932.qm@web50909.mail.re2.yahoo.com> Hi all, Is there anybody works on multicasting in MPLS using PIM-SM ?? I would like to ask about the extension funtions that need to be implemented in the current MPLS module. Lukman __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From daniel.vigueras at alu.um.es Fri Aug 14 23:53:42 2009 From: daniel.vigueras at alu.um.es (Daniel Vigueras) Date: Sat, 15 Aug 2009 08:53:42 +0200 Subject: [ns] [Fwd: Re: how to add a cpp file to ns2] Message-ID: <4A865B76.6020208@alu.um.es> 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 > > From neerajgupta37 at rediffmail.com Sat Aug 15 04:02:48 2009 From: neerajgupta37 at rediffmail.com (neeraj gupta) Date: 15 Aug 2009 11:02:48 -0000 Subject: [ns] mobile nodes Message-ID: <20090815110248.45089.qmail@f6mail-145-187.rediffmail.com> hi all i just made certain changes in mac802_11.cc file to find out the neighbors of nodes. right now whenever i run the script it is showing me all the current nodes and their neighboring nodes a simulation time passes on. i like to find it out for particular node how can i do it. also b default the netif_ -> nodes()-> energymodel() is returning 0. and the netif_->node()-> adaptivefidelity() is giving segemntation fault. what can be possible reasons. i need your help ugently. Neeraj Gupta Assistant Professor HOD, CSE & IT Department Hindu College of Engineering Sonepat From manoula_18 at hotmail.fr Sat Aug 15 07:23:02 2009 From: manoula_18 at hotmail.fr (manel manel) Date: Sat, 15 Aug 2009 14:23:02 +0000 Subject: [ns] WSN residual energy Message-ID: Hi ns users , I want to elect cluster heads with the residual energy of the nodes within clusters. So i want to get the residual energy of the nodes within clusters in Decideclusterhead () LEACH procedure. (under mannasim , ns-2 module extension) please give me some advice how should i do if i want to get this parameter. looking for your reply soon. _________________________________________________________________ Avec Windows Live, vous organisez, retouchez et partagez vos photos. http://www.microsoft.com/northafrica/windows/windowslive/products/photo-gallery-edit.aspx From ooluwadiya at yahoo.com Sat Aug 15 11:24:40 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Sat, 15 Aug 2009 11:24:40 -0700 (PDT) Subject: [ns] awk script for calculating end to end delay in a wired-wireless scenario Message-ID: <253803.43781.qm@web35508.mail.mud.yahoo.com> hello, does anyone have the awk script to calculate delay,throughput,packet loss in a mixed scenario i.e. wired-wireless scenario? i will really appreciate it. regards. From dkamel at gmail.com Sat Aug 15 14:16:43 2009 From: dkamel at gmail.com (danny kamel) Date: Sat, 15 Aug 2009 22:16:43 +0100 Subject: [ns] error running test_tcp on eurane Message-ID: <614b944b0908151416n17ee7f76jad9e79dad394e3f4@mail.gmail.com> I installed ns-2.30 on ubuntu 8.0.4 and the eurane patch as required but when i try to run the test_tcp.tcl file i get the following error. Any suggestions?? dk at dk-laptop:~$ ns test1.tcl (_o3 cmd line 1) invoked from within "_o3 cmd create-Umtsnode" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o3" line 2) (SplitObject unknown line 2) invoked from within "$ns create-Umtsnode" invoked from within "set rnc [$ns create-Umtsnode]" (file "test1.tcl" line 28) dk at dk-laptop:~$ From mohit.nitte at yahoo.com Sat Aug 15 20:22:00 2009 From: mohit.nitte at yahoo.com (Mohit Tahiliani) Date: Sat, 15 Aug 2009 20:22:00 -0700 (PDT) Subject: [ns] how to calculate delay/jitter In-Reply-To: Message-ID: <47541.12178.qm@web45410.mail.sp1.yahoo.com> Hello Tom, Here are some of the AWK scripts required for post processing. An AWK script to calculate average jitter is also available here.? http://mohit.ueuo.com/AWK_Scripts.html??or on this link http://www.mohittahiliani.741.com/AWK_Scripts.html Hope it helps. Regards,Mohit P. Tahiliani --- On Sat, 8/15/09, ns-users-request at ISI.EDU wrote: From: ns-users-request at ISI.EDU Subject: Ns-users Digest, Vol 68, Issue 14 To: ns-users at ISI.EDU Date: Saturday, August 15, 2009, 5:30 AM Send Ns-users mailing list submissions to ??? ns-users at 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-request at isi.edu You can reach the person managing the list at ??? ns-users-owner at 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: how to calculate delay/jitter (Tom G) ???2. Random Waypoint (ori and mish bgu) ???3. Re: Random Waypoint (Erlend Larsen) ???4. mobile ipv6 simulation (Oladapo Oluwadiya) ???5. Fw: DSR (Rania Kamal) ---------------------------------------------------------------------- Message: 1 Date: Fri, 14 Aug 2009 08:14:32 +0000 (GMT) From: Tom G Subject: Re: [ns] how to calculate delay/jitter To: Tom G , ns users Message-ID: <549825.29609.qm at web24712.mail.ird.yahoo.com> Content-Type: text/plain; charset=utf-8 I solved my problem. This script is very useful I think. http://hpds.ee.ncku.edu.tw/~smallko/ns2/tool_en.htm Perhaps it could help so. with similar problems best regards Tom ________________________________ Von: Tom G An: ns users Gesendet: Donnerstag, den 13. August 2009, 11:33:39 Uhr Betreff: [ns] how to calculate delay/jitter Hi, I've got the next question. following topology... n0? ? ? ???n4 \? ? ? ? / ? n2----n3 /? ? ? ? \ n1? ? ? ???n5 how can I get the delay between Node0 and Node4? Every manual I found regarding this is limited to the delay between a Node and its Neighbour e.g. delay between n2 and n3. Is there a possibility for getting the delay, or have I to calculate it? Also I have to calculate / get the jitter between node0 and node4. Therefor I have no idea how to realize that I hope someone could send me useful suggestion. best regards Tom ? ? ? ------------------------------ Message: 2 Date: Fri, 14 Aug 2009 14:03:29 +0300 From: ori and mish bgu Subject: [ns] Random Waypoint To: ns-users at ISI.EDU Message-ID: ??? Content-Type: text/plain; charset=ISO-8859-1 Dear ns-users I want to add random waypoint to my ad-hoc network. I can use setdest command to move the nodes .. but first I wanted to see some examples of different implementations for random waypoint models. I googled this but haven't found any scripts..? actually I found this page http://lrcwww.epfl.ch/RandomTrip/ but the link to the ns2 code seems to be dead. Anyone can please share any examples ? Thanks Michael ------------------------------ Message: 3 Date: Fri, 14 Aug 2009 13:33:24 +0200 From: Erlend Larsen Subject: Re: [ns] Random Waypoint To: ns-users at ISI.EDU Message-ID: ??? <5eed4b7a0908140433k4d378eddrd97e21575ce8f066 at mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Try this link: http://monarch.cs.rice.edu/~santa/research/mobility/ Regards, Erlend On Fri, Aug 14, 2009 at 13:03, ori and mish bgu wrote: > > Dear ns-users > > I want to add random waypoint to my ad-hoc network. > I can use setdest command to move the nodes .. > but first I wanted to see some examples of different implementations for > random waypoint models. > I googled this but haven't found any scripts.. ?actually I found this page > http://lrcwww.epfl.ch/RandomTrip/ but the link to the ns2 code seems to be > dead. > Anyone can please share any examples ? > > Thanks > Michael > ------------------------------ Message: 4 Date: Fri, 14 Aug 2009 04:50:05 -0700 (PDT) From: Oladapo Oluwadiya Subject: [ns] mobile ipv6 simulation To: ns-users at ISI.EDU Message-ID: <524660.52139.qm at web35503.mail.mud.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 i tried running the mobile ipv6 scenario i ran for the mobile ipv4 using the scripts below but i got an error "segmentation fault (core dumped)"when i tried running the simulation.what do u think is the problem thanks # Basic Mobile IPv6 example without using ns-topoman # Needs proc defined in file proc-mipv6-config.tcl Agent/MIPv6/MN set bs_forwarding_ ? ? 0 ################################################################ proc log-mn-movement_no_topo { } { ??global logtimer ns ??Class LogTimer -superclass Timer ??LogTimer instproc timeout {} { ?? ? ? ? global mobile_ ?? ? ? ?$mobile_ log-movement ?? ? ? ?$self sched 1 ??} ??set logtimer [new LogTimer] ??$logtimer sched 1 } ################################################################ # Create Topology ################################################################ proc create-my-topo {} { ??global ns opt topo mobile_ cn_ mnn_nodes_ ??# Create and define topography ??set topo ? ? ? ?[new Topography] ??# ? set prop ? ? ? ?[new $opt(prop)] ??# ? $prop topography $topo ??$topo load_flatgrid 1500 1500 ??# god is a necessary object when wireless is used ??# set to a value equal to the number of mobile nodes ??create-god 5 ??# Call node-config ??$ns node-config \ ?? ? ? ?-addressType hierarchical \ ?? ? ? ? -agentTrace ON \ ?? ? ? ? -routerTrace ON ??# Set NS Addressing ??AddrParams set domain_num_ 5 ??AddrParams set cluster_num_ {4 1 1 1 1} ??AddrParams set nodes_num_ {1 1 1 1 2 1 1 1 } ??# Create Nodes ??set cn_ [create-router 0.0.0] ??set router1_ [create-router 1.0.0] ??set router2_ [create-router 2.0.0] ??set router3_ [create-router 3.0.0] ??set bs1_ [create-base-station 1.1.0 1.0.0 200 200 0] ??set bs2_ [create-base-station 1.2.0 1.0.0 200 600 0] ??set bs3_ [create-base-station 1.3.0 1.0.0 600 200 0] ??set bs4_ [create-base-station 1.4.0 1.0.0 600 600 0] ??set mobile_ [create-mobile 1.1.1 1.1.0 190 190 0 1 0.01] ??$bs1_ random-motion 0 ??$bs2_ random-motion 0 ??$bs3_ random-motion 0 ??$bs4_ random-motion 0 ??# Position (fixed) for base-station nodes (HA & FA). ??$bs1_ set X_ 250.000000000000 ??$bs1_ set Y_ 1050.000000000000 ??$bs1_ set Z_ 0.000000000000 ??$bs2_ set X_ 950.000000000000 ??$bs2_ set Y_ 1050.000000000000 ??$bs2_ set Z_ 0.000000000000 ??$bs3_ set X_ 950.000000000000 ??$bs3_ set Y_ 300.000000000000 ??$bs3_ set Z_ 0.000000000000 ??$bs4_ set X_ 250.000000000000 ??$bs4_ set Y_ 300.000000000000 ??$bs4_ set Z_ 0.000000000000 ??# Create Links ??$ns duplex-link $cn_ $router1_ 100Mb 2ms DropTail ??$ns duplex-link $router1_ $router2_ 100Mb 2ms DropTail ??$ns duplex-link $router1_ $router3_ 100Mb 2ms DropTail ??$ns duplex-link $router2_ $bs1_ 100Mb 2ms DropTail ??$ns duplex-link $router2_ $bs2_ 100Mb 2ms DropTail ??$ns duplex-link $router3_ $bs3_ 100Mb 2ms DropTail ??$ns duplex-link $router3_ $bs4_ 100Mb 2ms DropTail ??$ns duplex-link-op $cn_ $router1_ orient down ??$ns duplex-link-op $router1_ $router2_ orient left-down ??$ns duplex-link-op $router1_ $router3_ orient right-down ??$ns duplex-link-op $router2_ $bs1_ orient left-down ??$ns duplex-link-op $router2_ $bs2_ orient right-down ??$ns duplex-link-op $router3_ $bs3_ orient down ??$ns duplex-link-op $router3_ $bs4_ orient right-down ??# movement of the MH ??$mobile_ set Z_ 0.000000000000 ??$mobile_ set Y_ 1000.000000000000 ??$mobile_ set X_ 250.000000000000 ??# MH starts to move towards FA1 ??$ns at 10.000000000000 "$mobile_ setdest 950.000000000000 1000.000000000000 20.000000000000" ??# MH move from FA1 towards FA2 ??$ns at 50.000000000000 "$mobile_ setdest 950.000000000000 350.000000000000 20.000000000000" ??# MH move from FA2 towards FA3 ??$ns at 85.000000000000 "$mobile_ setdest 250.000000000000 350.000000000000 20.000000000000" ??display_ns_addr_domain } ################################################################ # End of Simulation ################################################################ proc finish { } { ??global tracef ns namf opt mobile_ cn_ ??puts "Simulation finished" ??# Dump the Binding Update List of MN and Binding Cache of HA ??[[$mobile_ set ha_] set regagent_] dump ??[$cn_ set regagent_] dump ??[$mobile_ set regagent_] dump ??$ns flush-trace ??flush $tracef ??close $tracef ??close $namf ??#puts "running nam with $opt(namfile) ... " ??#exec nam $opt(namfile) & ??exit 0 } ################################################################ # Main ################################################################ proc main { } { ?? global opt ns TOPOM namf n tracef mobile_ cn_ ?? # Source Files ?? # source set-def-options.tcl ?? # set BASEDIR to your own correct path ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl ?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-tools.tcl ?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-topo.tcl ?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/ns-topoman.tcl ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-global.tcl ?? source /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-config.tcl ?? source ?/home/Administrator/ns-allinone-2.33/ns-2.33/tcl/mobility/timer.tcl ?? set NAMF out.nam ?? set TRACEF out.tr ?? set INFOF out.info ?? set opt(mactrace) ON ?? set opt(NAM) 1 ?? set opt(namfile) $NAMF ?? set opt(stop) 130 ?? set opt(tracefile) $TRACEF ?? #>--------------- Extract options from command line ---------------< ?? #Getopt ? ? ? ?; # Get option from the command line ?? #DisplayCommandLine ?? #>---------------------- Simulator Settings ----------------------< ?? set ns [new Simulator] ?? #>------------------------ Open trace files ----------------------< ?? exec rm -f $opt(tracefile) ?? set tracef [open $opt(tracefile) w] ?? #... dump the file ?? $ns trace-all $tracef ?? set namf [open $opt(namfile) w] ?? $ns namtrace-all $namf ?? #>------------- Protocol and Topology Settings -------------------< ?? create-my-topo ?? log-mn-movement_no_topo ?? set-cbr ?? # set-ping-int 0.1 $cn_ $mobile_ 10 $opt(stop) ?? #>----------------------- Run Simulation -------------------------< ?? $ns at $opt(stop) "finish" ?? $ns run ?? $ns dump-topology $namf ?? close $namf ?? #puts "running nam with $opt(namfile) ... " ?? #exec nam $opt(namfile) & } proc set-cbr { } { ?? global ns cn_ mobile_ ?? set tcp1 [new Agent/TCP] ?? $ns attach-agent $cn_ $tcp1 ?? set dst [new Agent/TCPSink] ?? $ns attach-agent $mobile_ $dst ?? $ns connect $tcp1 $dst ?? set ftp1 [new Application/FTP] ?? $ftp1 set packetSize_ 1040 ?? $ftp1 set rate_ 100k ?? $ftp1 set interval_ 0.05 ?? $ftp1 attach-agent $tcp1 ?? ?$ns at 10.0 "$ftp1 start" } main ? ? ? ------------------------------ Message: 5 Date: Fri, 14 Aug 2009 07:23:18 -0700 (PDT) From: Rania Kamal Subject: [ns] Fw: DSR To: ns mail Message-ID: <742170.48902.qm at web43511.mail.sp1.yahoo.com> Content-Type: text/plain; charset="iso-8859-1" hi all did anyone know how can i get DSR code for Broch et. al., or how can i modify the tcl script attached according to the following simulation parameters to get high packet delievery ratio, around 0.8 to 0.98 ? the simulation parameters: ??? * simulations are for networks of 50, 112, and 200 nodes with 802.11 WaveLAN radios, with a nominal 250-meter range.We simulate 30 CBR traffic flows, originated by 22 sending nodes. Each CBR flow sends atEach simulation lasts for 900 seconds of simulated time. ??? * The nodes are initially placed uniformly at random in a rectangular region. All nodes move according to the random waypoint model, with a maximum velocity of 20 m/s. ??? * We simulate pause times of 0, 30, 60, and 120 seconds, the highest mobility cases, ??? * ??? * 2 Kbps, and uses 64-byte packets.? ??? * ??? * We simulate at each pause time with six different randomly generated motion patterns, and present the mean of each metric over these six runs. thanks alot ? ? ? -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: dsr-p-120.tcl Url: http://mailman.isi.edu/pipermail/ns-users/attachments/20090814/8e05f3cc/dsr-p-120-0001.ksh ------------------------------ _______________________________________________ Ns-users mailing list Ns-users at isi.edu http://mailman.isi.edu/mailman/listinfo/ns-users End of Ns-users Digest, Vol 68, Issue 14 **************************************** From everysmile123 at 163.com Sun Aug 16 07:40:04 2009 From: everysmile123 at 163.com (zhujian) Date: Sun, 16 Aug 2009 22:40:04 +0800 Subject: [ns] Nist (#ifdef USE_802_21) Message-ID: <001201ca1e7f$772454b0$656cfe10$@com> Hi: All! When I learnt the code of nist mobility package, one doubtful point puzzled me. When I ran the debug mode, I found that the Conditional Compilation (#ifdef USE_802_21 //Switch to activate when using 802.21 modules (external package)) is true In the file mac802_16.cc(Line448). I have searched all the code of the project, and didn’t find the segment including “#define USE_802_21_”. If you are have learnt the package and know why, please tell me! Any apply is appreciated. 祝 建建 | Zhu Jian Jian ------------- Master School of Information Science and Technology Southwest Jiaotong University Chengdu, Sichuan 610031 P.R. China Phone:13540654875 From ys1983 at gmail.com Sat Aug 15 21:22:39 2009 From: ys1983 at gmail.com (himrgod) Date: Sat, 15 Aug 2009 21:22:39 -0700 (PDT) Subject: [ns] MIH for heterogeneous network Message-ID: <24954337.post@talk.nabble.com> I am doing some research on vertical handoff. And I am trying to use the module provided by NIST to run simulations. Since we all from China, I think we can discuss the problem via QQ. :-) my number is 3848344, and my email is ys1983 at gmail.com Looking forward to your reply. Yangshan PHD candidate from Beijing Jiaotong University zhujian wrote: > > > > Hi: > > ALL? > > Is there anybody studying the model of MIH for heterogeneous > network provided by NIST. I have studied the model for about one month, > but > there are still some problem I can?t find the answer. I need some friends > to discuss. > > If you are, pls reply to me. Thank you! > > > > ? ?? | Zhu Jian Jian > > ????????????? > > Master > > School of Information Science and Technology > > Southwest Jiaotong University > > Chengdu, Sichuan 610031 P.R. China > > Phone:13540654875 > > > > > -- View this message in context: http://www.nabble.com/MIH-for-heterogeneous-network-tp24702608p24954337.html Sent from the ns-users mailing list archive at Nabble.com. From emiedzo at gmail.com Sun Aug 16 16:13:35 2009 From: emiedzo at gmail.com (Eric Miedzowicz) Date: Sun, 16 Aug 2009 20:13:35 -0300 Subject: [ns] Routing to a base station through intermediate nodes. In-Reply-To: References: Message-ID: Hi! I am new to ns-2 and I need to simulate a wired-wireless network. I am using the wireless3.tcl script as a model and I need to be able to use both base stations to route traffic to different wireless nodes, depending on their location. In my example, I use 3 wireless nodes (MH) and 2 base stations (HA and FA, as shown below). W(0) | W(1) /\ HA FA MH(0) MH(2) MH(1) In my script I was able to send traffic from MH(2) to W(0) (through FA), from MH(0) to W(0) (through HA) and even from MH(0) to MH(2), using MH(1) as an intermediate node. When MH(1) is within range from FA, it sends packets normally. However, when move it out of range from the base station, in order to use an intermediate node, it is not able to find its way. Below you will find the code I am using. You will notice that I am not using the base station definitions shown in wireless3.tcl and wired-cum-wireless-sim.tcl. I did try them at first, but the results were the same. Could somebody please help me? Has anyone tried this experiment before in order to send me a sample script? I am using ns-2.34. set opt(chan) Channel/WirelessChannel ;# channel type set opt(prop) Propagation/TwoRayGround ;# radio-propagation model set opt(netif) Phy/WirelessPhy ;# network interface type set opt(mac) Mac/802_11 ;# MAC type set opt(ifq) Queue/DropTail/PriQueue ;# interface queue type set opt(ll) LL ;# link layer type set opt(ant) Antenna/OmniAntenna ;# antenna model set opt(ifqlen) 50 ;# max packet in ifq set opt(nn) 3 ;# number of mobilenodes set opt(adhocRouting) DSDV ;# routing protocol set opt(cp) "" ;# cp file not used set opt(sc) "" ;# node movement file. set opt(x) 670 ;# x coordinate of topology set opt(y) 670 ;# y coordinate of topology set opt(seed) 0.0 ;# random seed set opt(stop) 250 ;# time to stop simulation set opt(ftp1-start) 100.0 set num_wired_nodes 2 #set num_bs_nodes 2 ; this is not really used here. # ====================================================================== # check for boundary parameters and random seed if { $opt(x) == 0 || $opt(y) == 0 } { puts "No X-Y boundary values given for wireless topology\n" } if {$opt(seed) > 0} { puts "Seeding Random number generator with $opt(seed)\n" ns-random $opt(seed) } # create simulator instance set ns_ [new Simulator] # set up for hierarchical routing $ns_ node-config -addressType hierarchical AddrParams set domain_num_ 3 ;# number of domains lappend cluster_num 2 1 1 ;# number of clusters in each domain AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 1 4 1 AddrParams set nodes_num_ $eilastlevel ;# of each domain set tracefd [open wireless7-out.tr w] set namtrace [open wireless7-out.nam w] $ns_ trace-all $tracefd $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y) # Create topography object set topo [new Topography] # define topology $topo load_flatgrid $opt(x) $opt(y) # create God # 2 for HA and FA create-god [expr $opt(nn) + 2] #create wired nodes set temp {0.0.0 0.1.0} ;# hierarchical addresses for {set i 0} {$i < $num_wired_nodes} {incr i} { set W($i) [$ns_ node [lindex $temp $i]] } # Configure for ForeignAgent and HomeAgent nodes $ns_ node-config -mobileIP ON \ -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channelType $opt(chan) \ -topoInstance $topo \ -wiredRouting ON \ -agentTrace ON \ -routerTrace ON \ -macTrace ON # Create HA and FA set HA [$ns_ node 1.0.0] set FA [$ns_ node 1.0.1] $HA random-motion 0 $FA random-motion 0 # Position (fixed) for base-station nodes (HA & FA). $HA set X_ 100.000000000000 $HA set Y_ 200.000000000000 $HA set Z_ 0.000000000000 $FA set X_ 500.000000000000 $FA set Y_ 200.000000000000 $FA set Z_ 0.000000000000 # create a mobilenode that would be moving between HA and FA. # note address of MH indicates its in the same domain as HA. $ns_ node-config -wiredRouting OFF #de aca set temp {1.0.2 1.0.3 1.0.4} set init_x 100.0 for {set j 0} {$j < $opt(nn)} {incr j} { set MH($j) [ $ns_ node [lindex $temp $j]] $MH($j) random-motion 0 $MH($j) set X_ [expr $init_x + $j * 200.0] $MH($j) set Y_ 100.0 $MH($j) set Z_ 0.0 } $MH(1) set Y_ 40.000000000000 # create links between wired and BaseStation nodes $ns_ duplex-link $W(0) $W(1) 5Mb 2ms DropTail $ns_ duplex-link $W(1) $HA 5Mb 2ms DropTail $ns_ duplex-link $W(1) $FA 5Mb 2ms DropTail $ns_ duplex-link-op $W(0) $W(1) orient down $ns_ duplex-link-op $W(1) $HA orient left-down $ns_ duplex-link-op $W(1) $FA orient right-down # setup TCP connections between a wired node and the MobileHost Agent/TCP set packetSize_ 512 set tcp1 [new Agent/TCP] $tcp1 set class_ 2 set sink1 [new Agent/TCPSink] $ns_ attach-agent $MH(2) $tcp1 $ns_ attach-agent $W(0) $sink1 $ns_ connect $tcp1 $sink1 set ftp1 [new Application/FTP] $ftp1 attach-agent $tcp1 $ns_ at $opt(ftp1-start) "$ftp1 start" set tcp2 [new Agent/TCP] $tcp2 set class_ 2 set sink2 [new Agent/TCPSink] $ns_ attach-agent $MH(1) $tcp2 $ns_ attach-agent $W(0) $sink2 $ns_ connect $tcp2 $sink2 set ftp2 [new Application/FTP] $ftp2 attach-agent $tcp2 $ns_ at $opt(ftp1-start) "$ftp2 start" set tcp3 [new Agent/TCP] $tcp3 set class_ 2 set sink3 [new Agent/TCPSink] $ns_ attach-agent $MH(0) $tcp3 $ns_ attach-agent $MH(2) $sink3 $ns_ connect $tcp3 $sink3 set ftp3 [new Application/FTP] $ftp3 attach-agent $tcp3 $ns_ at $opt(ftp1-start) "$ftp3 start" # source connection-pattern and node-movement scripts if { $opt(cp) == "" } { puts "*** NOTE: no connection pattern specified." set opt(cp) "none" } else { puts "Loading connection pattern..." source $opt(cp) } if { $opt(sc) == "" } { puts "*** NOTE: no scenario file specified." set opt(sc) "none" } else { puts "Loading scenario file..." source $opt(sc) puts "Load complete..." } # Define initial node position in nam for {set i 0} {$i < $opt(nn)} {incr i} { # 10 defines the node size in nam, must adjust it according to your # scenario # The function must be called after mobility model is defined $ns_ initial_node_pos $MH($i) 10 } # Tell all nodes when the siulation ends for {set i 0} {$i < $opt(nn) } {incr i} { $ns_ at $opt(stop).0 "$MH($i) reset"; } $ns_ at $opt(stop).0 "$HA reset"; $ns_ at $opt(stop).0 "$FA reset"; $ns_ at $opt(stop).0002 "puts \"NS EXITING...\" ; $ns_ halt" $ns_ at $opt(stop).0001 "stop" proc stop {} { global ns_ tracefd namtrace close $tracefd close $namtrace } # some useful headers for tracefile puts $tracefd "M 0.0 nn $opt(nn) x $opt(x) y $opt(y) rp \ $opt(adhocRouting)" puts $tracefd "M 0.0 sc $opt(sc) cp $opt(cp) seed $opt(seed)" puts $tracefd "M 0.0 prop $opt(prop) ant $opt(ant)" puts "Starting Simulation..." $ns_ run Thank you very much. Best regards, Eric From hakim.anouar at gmail.com Sun Aug 16 20:56:05 2009 From: hakim.anouar at gmail.com (hakim anouar) Date: Mon, 17 Aug 2009 04:56:05 +0100 Subject: [ns] help about how using security protocols on NS2 Message-ID: Hi ns-users, i want to know : - how to use security on NS2? - how we can implement a new protocol on NS2 supporting security? - if there is a version of NS2 supporting security? my best thanks to all of you From mats.folke at ericsson.com Mon Aug 17 00:10:48 2009 From: mats.folke at ericsson.com (Mats Folke) Date: Mon, 17 Aug 2009 09:10:48 +0200 Subject: [ns] UMTS on NS-2 In-Reply-To: <7532807.874681250369296519.JavaMail.nabble@isper.nabble.com> References: <7532807.874681250369296519.JavaMail.nabble@isper.nabble.com> Message-ID: <81DD8EA2638A554EA2DA738B270F63FA012143C4@esealmw114.eemea.ericsson.se> Hi! Did you remember to recompile ns-2, as the instructions imply? Best wishes, -- Mats Folke, M.Sc., Lic.Eng. Research Engineer Ericsson AB Office: +46 10 7171385 Ericsson Research Fax: +46 920 99621 P.O. Box 920 Mobile: +46 76 1271385 SE-971 28 Lule? Sweden -----Original Message----- From: dkamel at gmail.com [mailto:dkamel at gmail.com] Sent: den 15 augusti 2009 22:48 To: Mats Folke Subject: Re: UMTS on NS-2 I recently installed ns-2.30 and added the required eurane patch to run UMTS on it, however when i try to run the test_tcp.tcl file or any other file i get the following error: any suggestions as to why this is happening? dk at dk-laptop:~$ ns test1.tcl (_o3 cmd line 1) invoked from within "_o3 cmd create-Umtsnode" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o3" line 2) (SplitObject unknown line 2) invoked from within "$ns create-Umtsnode" invoked from within "set rnc [$ns create-Umtsnode]" (file "test1.tcl" line 28) dk at dk-laptop:~$ Mats Folke-2 wrote: > > > Hi! > > First of all, please post your questions to the mailing list. It adds > value to the list. > > Yes, you can have multiple versions of ns running in parallel, but you > need to be very careful how you set up your paths. Please search the web > for setting up paths in the shell. That will search your other problems > you wrote about. > > Best regards, > Mats > > Syed Faraz Hasan wrote: >> Dear Mats, >> >> Please advise me, can I have both NS-2.33 and NS-2.30 at the same >> time? Will they both ok if they coexist or do I need to get rid of >> one for th other? >> >> Thanks a lot in anticipation >> >> Faraz >> >> ________________________________________ >> From: ns-users-bounces at ISI.EDU [ns-users-bounces at ISI.EDU] On Behalf >> Of Mats Folke [mats.folke at ericsson.com] >> Sent: Tuesday, March 24, 2009 12:47 AM >> To: ns-users at isi.edu >> Subject: Re: [ns] UMTS on NS-2 >> >> Hi! >> >> Syed Faraz Hasan wrote: >>> Hello! >>> >>> Reference to my previous email about UMTS implementation on NS-2. Can >>> some one tell me if I need a separate patch for UMTS while working on >>> NS-2.33? If so, where can I download it from? I have seen >>> http://eurane.ti-wmc.nl/eurane/, patch available there is in diff.gz >>> format. I am a newbie to open suse linux, I think I should be after >>> something .tar.gz? >> >> There is currently no patch for ns-2.33 and since Eurane is not >> supported anymore, there probably never will be. You have two >> options. 1) Download ns-2.30 and patch with existing eurane patch. If >> you need something introduced in later versions of ns-2, you cannot >> use it. 2) Patch an existing ns-2.33 with the eurane patch for >> ns-2.30. This could result in difficulties which you must manually >> resolve. >> >> The patching procedure is documented in the manual, section 2.3. >> >> A patch is distributed in something called a diff-file, hence the >> file extension .diff. Gzip then adds the extension .gz. Before >> pathing the .diff.gz file needs to be uncompressed using gunzip. The >> result will be the diff-file. >> >>> Anyway, when I download and open eurane1.12.diff.gz, it gives an >>> error "associated help application does not exist"! This patch is >>> available for NS-2.30, I am using 2.33. >> >> What gives an error? A patch file should not be "opened", see the >> eurane manual for correct usage, or the patch man page, or google for >> "unix command patch" or similar. >> >>> Also, what is CLEAN NS-2.3 >> >> A clean version is a version not messed up by changes, builds etc. A >> fresh downloaded version is a clean version. >> >>> I downloaded test_tcp.tcl (UMTS implementation on NS-2 test run), >>> without installing any patch on my existing NS-2.33. When I execute >>> it, it says >>> >>> (_o3 cmd line 1) >>> invoked from within >>> "_o3 cmd create-Umtsnode" >>> . >>> . >>> . >>> "$ns create-Umtsnode" >>> invoked from within >>> "set rnc [$ns create-Umtsnode]" >>> file "umtstcp.tcl line 42 >> >> This is because ns-2 (without the patch) does not understand the >> instructions in those tcl files. You need the patch to be able to run >> the tcl files. >> >> Regards, > > > > -- > Mats Folke, M.Sc., Lic.Eng. > Research Engineer > > Ericsson AB Office: +46 10 7171385 > Ericsson Research Fax: +46 920 99621 > P.O. Box 920 Mobile: +46 76 1271385 > SE-971 28 Lule? > Sweden > > > Quoted from: http://www.nabble.com/UMTS-on-NS-2-tp22659223p22703758.html From David.McMullin at dcu.ie Mon Aug 17 01:56:29 2009 From: David.McMullin at dcu.ie (David McMullin) Date: Mon, 17 Aug 2009 09:56:29 +0100 Subject: [ns] awk script for calculating end to end delay in a wired-wireless scenario In-Reply-To: <200908161306.n7GD6Di9018849@gamma.isi.edu> References: <253803.43781.qm@web35508.mail.mud.yahoo.com> <200908161306.n7GD6Di9018849@gamma.isi.edu> Message-ID: hi, Because of inconsistencies in the trace format, sometimes the node id is given in a hierarchical way (eg, 0.0.1) and other times in a decimal way (hierarchical addresses normally allocate bits as 10.11.11, so 1.0.1 becomes 4194305). It's generally simplest to have a look through your trace file and figure out which id is being given to which node under which circumstances. (eg., sending from a wired node to a wired node seems to result in hierarchical addresses, but receiving at a wireless node seems to result in the confusing decimal format). Here's what I use for calculating loss, it should get you started and make calculating throughput and delay easier. ######################################################################### #Hierarchical routing is used with bits allocated as 10.11.11, # #addresses must be converted # #0.0.0 = 0 (our server node) # #1.0.0 = 4194304 (our Access point node) # #1.0.1 = 4194305 (our destination node) # ######################################################################### BEGIN{totaltime=input;} /^+/ && /0.0.0.0/ && /1.0.1.0/ && /Multimedia/{ wtimefield=2 wpacketidfield=12 loss[int($wtimefield)]++; packet[$wpacketidfield]=1; } /^r/ && / -Is 0.0/ && / -Id 4194305.0/ && /AGT/ && /Multimedia/ { if(timefield==0 ||packetidfield==0) { for(i=1; i<=NF; i++) { if($i=="-t") timefield=i+1; if($i=="-Ii") packetidfield=i+1; } } loss[int($timefield)]--; packet[$packetidfield] = 0; } END{ for(i=0;i: > > hello, > > does anyone have the awk script to calculate delay,throughput,packet loss in a mixed scenario i.e. wired-wireless scenario? > i will really appreciate it. > regards. > > > > > From kundavikp at gmail.com Mon Aug 17 03:23:33 2009 From: kundavikp at gmail.com (kundavi) Date: Mon, 17 Aug 2009 15:53:33 +0530 Subject: [ns] linking tcl with c++ Message-ID: hi friends.. i have a cpp file of RTRAgent of odmrp protocol. when i implement it ,an error occurs as "invalid command name", how should i link c++ with tcl wit regards sangeetha.k From hakim.anouar at gmail.com Mon Aug 17 20:10:34 2009 From: hakim.anouar at gmail.com (Hakim192009) Date: Mon, 17 Aug 2009 20:10:34 -0700 (PDT) Subject: [ns] Segmentation fault with wireless simulation In-Reply-To: <273738.1348.qm@web8509.mail.in.yahoo.com> References: <273738.1348.qm@web8509.mail.in.yahoo.com> Message-ID: <25017741.post@talk.nabble.com> in your script you have to change ifq value Queue/DropTail/PriQueue by CMUPriQueue #Define wirleess scenario parameters set val(chan) Channel/WirelessChannel; set val(prop) Propagation/TwoRayGround1; set val(netif) Phy/WirelessPhy; set val(mac) Mac/802_11; set val(ifq) CMUPriQueue ; set val(ll) LL; set val(ant) Antenna/OmniAntenna; set val(ifqlen) 50; set val(nn) 5; set val(rp) DSR; set val(x) 500; set val(y) 400; set val(stop) 150; set ns [new Simulator] set tracefd [open problem1Trace.tr w] set windowVsTime2 [open problem1Win.tr w] set namfd [open problem1Namtrace.nam w] $ns trace-all $tracefd $ns namtrace-all-wireless $namfd $val(x) $val(y) set topo [new Topography] $topo load_flatgrid $val(x) $val(y) create-god $val(nn) $ns node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON\ -macTrace OFF \ -movementTrace ON for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns node] } $node_(0) set X_ 5.0 $node_(0) set Y_ 5.0 $node_(0) set Z_ 0.0 $node_(1) set X_ 490.0 $node_(1) set Y_ 285.0 $node_(1) set Z_ 0.0 $node_(2) set X_ 150.0 $node_(2) set Y_ 240.0 $node_(2) set Z_ 0.0 $node_(3) set X_ 495.0 $node_(3) set Y_ 100 $node_(3) set Z_ 0.0 $node_(4) set X_ 495 $node_(4) set Y_ 395 $node_(4) set Z_ 0.0 $ns at 10.0 "$node_(0) setdest 250.0 250.0 3.0" $ns at 15.0 "$node_(1) setdest 45.0 285.0 5.0" $ns at 20.0 "$node_(2) setdest 480.0 300.0 5.0" $ns at 25.0 "$node_(3) setdest 50.0 150.0 5.0" $ns at 15.0 "$node_(4) setdest 50.0 50.0 3.0" #set TCP Connection between node_(0) and node_(1) set tcp0 [new Agent/TCP/Newreno] $tcp0 set class_ 2 set sink0 [new Agent/TCPSink] $ns attach-agent $node_(0) $tcp0 $ns attach-agent $node_(1) $sink0 $ns connect $tcp0 $sink0 set ftp [new Application/FTP] $ftp attach-agent $tcp0 $ns at 10.0 "$ftp start" #set TCP Connection between node_(0) and node_(4) set tcp1 [new Agent/TCP/Newreno] $tcp1 set class_ 2 set sink1 [new Agent/TCPSink] $ns attach-agent $node_(0) $tcp1 $ns attach-agent $node_(4) $sink1 $ns connect $tcp1 $sink1 set ftp1 [new Application/FTP] $ftp1 attach-agent $tcp1 $ns at 12.0 "$ftp1 start" #set TCP Connection between node_(3) and node_(2) set tcp2 [new Agent/TCP/Newreno] $tcp2 set class_ 2 set sink2 [new Agent/TCPSink] $ns attach-agent $node_(3) $tcp2 $ns attach-agent $node_(2) $sink2 $ns connect $tcp2 $sink2 set ftp2 [new Application/FTP] $ftp2 attach-agent $tcp2 $ns at 15.0 "$ftp2 start" proc plotWindow {tcpSource file} { global ns set time 0.01 set now [$ns now] set cwnd [$tcpSource set cwnd_] puts $file "$now $cwnd" $ns at [expr $now+$time] "plotWindow $tcpSource $file" } $ns at 10.1 "plotWindow $tcp0 $windowVsTime2" #define node position in NAM for {set i 0} {$i < $val(nn)} {incr i} { $ns initial_node_pos $node_($i) 30 } for {set i 0} {$i < $val(nn) } {incr i} { $ns at $val(stop) "$node_($i) reset"; } $ns at $val(stop) "$ns nam-end-wireless $val(stop)" $ns at $val(stop) "stop" $ns at 150.01 "puts \"end simulation\" ; $ns halt" proc stop {} { global ns tracefd namfd $ns flush-trace close $tracefd close $namfd } $ns run #Good Luck -- View this message in context: http://www.nabble.com/Segmentation-fault-with-wireless-simulation-tp14679409p25017741.html Sent from the ns-users mailing list archive at Nabble.com. From emiedzo at gmail.com Mon Aug 17 23:31:30 2009 From: emiedzo at gmail.com (Eric Miedzowicz) Date: Tue, 18 Aug 2009 03:31:30 -0300 Subject: [ns] Routing to a base station through intermediate nodes. In-Reply-To: <002201ca1efa$3f06fbc0$bd14f340$@com> References: <001d01ca1edf$a4712820$ed537860$@com> <002201ca1efa$3f06fbc0$bd14f340$@com> Message-ID: Hi, Thanks again for the advice. Your suggestion certainly took care of the error message, but unfortunately nothing is being written to the output file. Do you have an example of dump-routes that I could use? I was able to route traffic from base stations to wireless nodes within range. I also performed successful routing between wireless nodes using intermediate nodes. However, the problem resides in sending packets from a base station to a wireless node that requires an additional hop (in my diagram below, it would be W(0)-->MH(1) ). Maybe the wireless nodes are not forwarding the information regarding MH(1) to the base stations, or else the base stations are not propagating that information to the rest of the wired nodes. Does anyone know if there is a bug in the simulator implementation or a way to check for this either by looking at the trace file or by any other function in tcl? Has anyone been able to try this experiment before? Thank you. Best regards, Eric 2009/8/17 zhujian > I think that the line $dr dump-routes $fh should modified to $node > dump-routes $fh > > > > *发件人:* Eric Miedzowicz [mailto:emiedzo at gmail.com] > *发送时间:* 2009年8月17日 11:53 > *收件人:* zhujian > *主题:* Re: 答复: [ns] Routing to a base station through intermediate nodes. > > > > Zhujian, > Thank you for your prompt response. I am trying to verify the > routing table. I used an example posted in the mailing list as follows: > > set fh [open dyn.trc w] > > proc rtdump {node fh} { > global ns_ > set now [$ns_ now] > puts "Routing table of node $node at time $now" > set dr [$node rtObject?] > $dr dump-routes $fh > } > > $ns_ at 99.5 "rtdump $MH(1) $fh" > > However, when I run the script I get the following error: > > INITIALIZE THE LIST xListHead > *** NOTE: no connection pattern specified. > *** NOTE: no scenario file specified. > Starting Simulation... > channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ > highestAntennaZ_ = 1.5, distCST_ = 550.0 > SORTING LISTS ...DONE! > Routing table of node _o133 at time 99.5 > ns: rtdump _o133 file5: invalid command name "" > while executing > "$dr dump-routes $fh" > (procedure "rtdump" line 8) > invoked from within > "rtdump _o133 file5" > > Do you know a way to show the routing table for a wireless node? Is it > possible to deduce it from the output traces? Thank you. > > Best regards, > Eric > > 2009/8/16 zhujian > > Maybe you can checking the routing. > > -----邮件原件----- > 发件人: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] 代表 Eric > Miedzowicz > 发送时间: 2009年8月17日 7:14 > 收件人: ns-users at ISI.EDU > 主题: [ns] Routing to a base station through intermediate nodes. > > > > Hi! > > I am new to ns-2 and I need to simulate a wired-wireless network. I am > using the wireless3.tcl script as a model and I need to be able to use both > base stations to route traffic to different wireless nodes, depending on > their location. In my example, I use 3 wireless nodes (MH) and 2 base > stations (HA and FA, as shown below). > > W(0) > | > W(1) > /\ > HA FA > > MH(0) MH(2) > MH(1) > > In my script I was able to send traffic from MH(2) to W(0) (through FA), > from MH(0) to W(0) (through HA) and even from MH(0) to MH(2), using MH(1) > as > an intermediate node. When MH(1) is within range from FA, it sends packets > normally. However, when move it out of range from the base station, in > order > to use an intermediate node, it is not able to find its way. Below you will > find the code I am using. > > You will notice that I am not using the base station definitions shown in > wireless3.tcl and wired-cum-wireless-sim.tcl. I did try them at first, but > the results were the same. Could somebody please help me? Has anyone tried > this experiment before in order to send me a sample script? I am using > ns-2.34. > > set opt(chan) Channel/WirelessChannel ;# channel type > set opt(prop) Propagation/TwoRayGround ;# radio-propagation model > set opt(netif) Phy/WirelessPhy ;# network interface type > set opt(mac) Mac/802_11 ;# MAC type > set opt(ifq) Queue/DropTail/PriQueue ;# interface queue type > set opt(ll) LL ;# link layer type > set opt(ant) Antenna/OmniAntenna ;# antenna model > set opt(ifqlen) 50 ;# max packet in ifq > set opt(nn) 3 ;# number of mobilenodes > set opt(adhocRouting) DSDV ;# routing protocol > > set opt(cp) "" ;# cp file not used > set opt(sc) "" ;# node movement file. > > set opt(x) 670 ;# x coordinate of topology > set opt(y) 670 ;# y coordinate of topology > set opt(seed) 0.0 ;# random seed > set opt(stop) 250 ;# time to stop simulation > > set opt(ftp1-start) 100.0 > > set num_wired_nodes 2 > #set num_bs_nodes 2 ; this is not really used here. > > # ====================================================================== > > # check for boundary parameters and random seed > if { $opt(x) == 0 || $opt(y) == 0 } { > puts "No X-Y boundary values given for wireless topology\n" > } > if {$opt(seed) > 0} { > puts "Seeding Random number generator with $opt(seed)\n" > ns-random $opt(seed) > } > > # create simulator instance > set ns_ [new Simulator] > > # set up for hierarchical routing > $ns_ node-config -addressType hierarchical > > AddrParams set domain_num_ 3 ;# number of domains > lappend cluster_num 2 1 1 ;# number of clusters in each domain > AddrParams set cluster_num_ $cluster_num > lappend eilastlevel 1 1 4 1 > AddrParams set nodes_num_ $eilastlevel ;# of each domain > > set tracefd [open wireless7-out.tr w] > set namtrace [open wireless7-out.nam w] > $ns_ trace-all $tracefd > $ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y) > > # Create topography object > set topo [new Topography] > > # define topology > $topo load_flatgrid $opt(x) $opt(y) > > # create God > # 2 for HA and FA > create-god [expr $opt(nn) + 2] > > #create wired nodes > set temp {0.0.0 0.1.0} ;# hierarchical addresses > for {set i 0} {$i < $num_wired_nodes} {incr i} { > set W($i) [$ns_ node [lindex $temp $i]] > } > > # Configure for ForeignAgent and HomeAgent nodes > $ns_ node-config -mobileIP ON \ > -adhocRouting $opt(adhocRouting) \ > -llType $opt(ll) \ > -macType $opt(mac) \ > -ifqType $opt(ifq) \ > -ifqLen $opt(ifqlen) \ > -antType $opt(ant) \ > -propType $opt(prop) \ > -phyType $opt(netif) \ > -channelType $opt(chan) \ > -topoInstance $topo \ > -wiredRouting ON \ > -agentTrace ON \ > -routerTrace ON \ > -macTrace ON > > # Create HA and FA > set HA [$ns_ node 1.0.0] > set FA [$ns_ node 1.0.1] > $HA random-motion 0 > $FA random-motion 0 > > # Position (fixed) for base-station nodes (HA & FA). > $HA set X_ 100.000000000000 > $HA set Y_ 200.000000000000 > $HA set Z_ 0.000000000000 > > $FA set X_ 500.000000000000 > $FA set Y_ 200.000000000000 > $FA set Z_ 0.000000000000 > > # create a mobilenode that would be moving between HA and FA. > # note address of MH indicates its in the same domain as HA. > $ns_ node-config -wiredRouting OFF > #de aca > set temp {1.0.2 1.0.3 1.0.4} > set init_x 100.0 > > for {set j 0} {$j < $opt(nn)} {incr j} { > set MH($j) [ $ns_ node [lindex $temp $j]] > > $MH($j) random-motion 0 > $MH($j) set X_ [expr $init_x + $j * 200.0] > $MH($j) set Y_ 100.0 > $MH($j) set Z_ 0.0 > } > > $MH(1) set Y_ 40.000000000000 > > # create links between wired and BaseStation nodes > $ns_ duplex-link $W(0) $W(1) 5Mb 2ms DropTail > $ns_ duplex-link $W(1) $HA 5Mb 2ms DropTail > $ns_ duplex-link $W(1) $FA 5Mb 2ms DropTail > > $ns_ duplex-link-op $W(0) $W(1) orient down > $ns_ duplex-link-op $W(1) $HA orient left-down > $ns_ duplex-link-op $W(1) $FA orient right-down > > # setup TCP connections between a wired node and the MobileHost > Agent/TCP set packetSize_ 512 > set tcp1 [new Agent/TCP] > $tcp1 set class_ 2 > > set sink1 [new Agent/TCPSink] > $ns_ attach-agent $MH(2) $tcp1 > $ns_ attach-agent $W(0) $sink1 > $ns_ connect $tcp1 $sink1 > set ftp1 [new Application/FTP] > $ftp1 attach-agent $tcp1 > $ns_ at $opt(ftp1-start) "$ftp1 start" > > set tcp2 [new Agent/TCP] > $tcp2 set class_ 2 > set sink2 [new Agent/TCPSink] > $ns_ attach-agent $MH(1) $tcp2 > $ns_ attach-agent $W(0) $sink2 > $ns_ connect $tcp2 $sink2 > set ftp2 [new Application/FTP] > $ftp2 attach-agent $tcp2 > $ns_ at $opt(ftp1-start) "$ftp2 start" > > set tcp3 [new Agent/TCP] > $tcp3 set class_ 2 > set sink3 [new Agent/TCPSink] > $ns_ attach-agent $MH(0) $tcp3 > $ns_ attach-agent $MH(2) $sink3 > $ns_ connect $tcp3 $sink3 > set ftp3 [new Application/FTP] > $ftp3 attach-agent $tcp3 > $ns_ at $opt(ftp1-start) "$ftp3 start" > > # source connection-pattern and node-movement scripts > if { $opt(cp) == "" } { > puts "*** NOTE: no connection pattern specified." > set opt(cp) "none" > } else { > puts "Loading connection pattern..." > source $opt(cp) > } > if { $opt(sc) == "" } { > puts "*** NOTE: no scenario file specified." > set opt(sc) "none" > } else { > puts "Loading scenario file..." > source $opt(sc) > puts "Load complete..." > } > > # Define initial node position in nam > > for {set i 0} {$i < $opt(nn)} {incr i} { > > # 10 defines the node size in nam, must adjust it according to your > # scenario > # The function must be called after mobility model is defined > > $ns_ initial_node_pos $MH($i) 10 > } > > # Tell all nodes when the siulation ends > for {set i 0} {$i < $opt(nn) } {incr i} { > $ns_ at $opt(stop).0 "$MH($i) reset"; > } > $ns_ at $opt(stop).0 "$HA reset"; > $ns_ at $opt(stop).0 "$FA reset"; > > $ns_ at $opt(stop).0002 "puts \"NS EXITING...\" ; $ns_ halt" > $ns_ at $opt(stop).0001 "stop" > proc stop {} { > global ns_ tracefd namtrace > close $tracefd > close $namtrace > } > > # some useful headers for tracefile > puts $tracefd "M 0.0 nn $opt(nn) x $opt(x) y $opt(y) rp \ > $opt(adhocRouting)" > puts $tracefd "M 0.0 sc $opt(sc) cp $opt(cp) seed $opt(seed)" > puts $tracefd "M 0.0 prop $opt(prop) ant $opt(ant)" > > puts "Starting Simulation..." > $ns_ run > > Thank you very much. > > Best regards, > Eric > > > From cleverbobywjb at 163.com Tue Aug 18 01:44:07 2009 From: cleverbobywjb at 163.com (cleverbobywjb) Date: Tue, 18 Aug 2009 16:44:07 +0800 (CST) Subject: [ns] Fw:ns-allinone-2.33 problem Message-ID: <17033700.665701250585047468.JavaMail.coremail@app178.163.com> ---------- 转发邮件信息 ---------- 发件人:"cleverbobywjb " 发送日期:2009-08-18 16:10:48 收件人:"ns-users at isi.edu" 主题: ns-allinone-2.33 problem I had the same problem when compiling ns-allinone-2.33 such as > 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*' .... and it continued to./common/packet.h:380:.... But it had some differences that while compiling it first circulated all the messages for much a long time(I am comfused ),and then at last maybe about after half an hour ns2 can inite successful.I tried several times,while the problem all the same. At the beginning ,I had tried ns-allinone-2.34 and it also faced circulating problem with different message。 So in order to slove the problem could you give me the way to get out this problem. Thanks! 没有广告的终身免费邮箱,www.yeah.net 没有广告的终身免费邮箱,www.yeah.net From ooluwadiya at yahoo.com Tue Aug 18 04:36:21 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Tue, 18 Aug 2009 04:36:21 -0700 (PDT) Subject: [ns] ns2.33 download Message-ID: <742167.10276.qm@web35507.mail.mud.yahoo.com> hi, does anyone know which url i can download ns2.33 from? regards From billon.matthieu at gmail.com Tue Aug 18 05:24:06 2009 From: billon.matthieu at gmail.com (Matthieu Billon) Date: Tue, 18 Aug 2009 14:24:06 +0200 Subject: [ns] Event gestion. How to launch an event with a physical condition. Message-ID: <8b9bdcfe0908180524j7adb7dt82d48c5107f7197a@mail.gmail.com> Hello, I'm working with the ns-2.34 onto Ubuntu 9.04. I did find the answer of my question on the manual. So I am asking you the following question : is that possible to launch an event whit a physical condition and not a time condition? I am thinking some kind of : $ns at "physical condition" event Best regards, Matthieu From daniel.vigueras at alu.um.es Tue Aug 18 05:58:04 2009 From: daniel.vigueras at alu.um.es (Daniel Vigueras) Date: Tue, 18 Aug 2009 14:58:04 +0200 Subject: [ns] ns2.33 download In-Reply-To: <742167.10276.qm@web35507.mail.mud.yahoo.com> References: <742167.10276.qm@web35507.mail.mud.yahoo.com> Message-ID: <4A8AA55C.3020104@alu.um.es> 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 > > > From sr.nsuser at gmail.com Tue Aug 18 07:17:31 2009 From: sr.nsuser at gmail.com (soheila rahmani) Date: Tue, 18 Aug 2009 18:47:31 +0430 Subject: [ns] can use queue for caching data in the nodes? Message-ID: <24a228b00908180717x69c5e102h25e0e728c99fb205@mail.gmail.com> hi all I want to cache some packet and send them sometimes, can I use 2 queues . ? one of them will be queue of the nodes and another will be location of the some packets and when I want to send frome queue2 I can do this. thanks a lot From mrbalador at yahoo.com Wed Aug 19 00:10:43 2009 From: mrbalador at yahoo.com (ali bala) Date: Wed, 19 Aug 2009 00:10:43 -0700 (PDT) Subject: [ns] problem with patch 802.11tkn Message-ID: <60435.10666.qm@web45112.mail.sp1.yahoo.com> hi i install ns2.28 and after that when i?patch 802.11tkn i see this error (error occur in line 292) : can't find file to patch at input line 292 perhaps you used the wrong?-p or --strip option? what?was the reason? thanks mr.ali.balador homepage:www.balador.org From tk_ratheesh_ns at yahoo.com Wed Aug 19 05:39:43 2009 From: tk_ratheesh_ns at yahoo.com (Ratheesh T K) Date: Wed, 19 Aug 2009 05:39:43 -0700 (PDT) Subject: [ns] resending the mail.. Message-ID: <989473.34280.qm@web111906.mail.gq1.yahoo.com> Hello, I have installed NS2.27 on Redhat 5 Enteprise Edition, and in order to add leach support, i've used the ns2leach.pdf as a reference. It says like, 10. Edit the Makefile as follows: ? ? Add DMIT_uAMPS to the DEFINE list ? ? Add I./mit/rca I./mit/uAMPS to the INCLUDE list ? ? Add the following just prior to the line gaf/gaf.o \ ? ? ? mit/rca/energy.o mit/rca/rcagent.o \ ? ? ? mit/rca/rca-ll.o mit/rca/resource.o \ ? ? ? mac/mac-sensor-timers.o mac/mac-sensor.o mit/uAMPS/bsagent.o \ 11. Clean up previous build ? ? make clean 12. Rebuild ns2 this can take a while so I recommend redirecting output, ? ? running in background and going to lunch. ??? nohup make 2>error.log >make.log & " 13. Test default wireless demo and LEACH ???./test 14. Validate the full installation this takes a while too so take a break ? ? nohup ./validate-full 2>validate.error >validate.log & I have executed these steps, but the command? "nohup make 2>error.log>make.log" (step 12) is giving me an error. Please help me, why is this command not working?? Rgds.... Ratheesh... From mrbalador at yahoo.com Wed Aug 19 05:54:25 2009 From: mrbalador at yahoo.com (ali bala) Date: Wed, 19 Aug 2009 05:54:25 -0700 (PDT) Subject: [ns] make[1]: *** no rule to make target 'emulate/inet.c' needs by 'depend' Message-ID: <548927.63448.qm@web45115.mail.sp1.yahoo.com> hi i install ns-2.28 and after that when i patch 802.11(your patch) i see the erorr : can't find file to patch at input line 292 perhaps you used the wrong?-p or --strip option? after that when i flow the instruction?for installing 802.11e i see?erorrs when i run make depend make[1]: *** no rule to make target 'emulate/inet.c' needs by 'depend' please help me mr.ali.balador homepage:www.balador.org From neerajgupta37 at rediffmail.com Thu Aug 20 02:55:25 2009 From: neerajgupta37 at rediffmail.com (neeraj gupta) Date: 20 Aug 2009 09:55:25 -0000 Subject: [ns] how to add neighbors Message-ID: <20090820095525.28672.qmail@f6mail-144-151.rediffmail.com> Hi all i am simulating in which i want to add neighbors for a particular mobile node. since i am not using the energy model the function of adaptive fidelity in mac 802_11.cc will not work. how can i use the add neighbor function defined in node.cc here. also kind let me know how can i include th energy model in the script. i gone through ns-2 documentation. but i not sure which energy model i need to include since it's default value is none. kind treat this mail as urgent as my future work depends on the above problem. Neeraj Gupta Assistant Professor HOD, CSE & IT Department Hindu College of Engineering Sonepat From uuguu_mn at yonsei.ac.kr Thu Aug 20 19:48:56 2009 From: uuguu_mn at yonsei.ac.kr (uuguu_mn@yonsei.ac.kr) Date: Thu, 20 Aug 2009 19:48:56 -0700 Subject: [ns] [ns2] Accessing Queue length in 802.15.4 MAC Message-ID: <000001ca2209$edad5450$c907fcf0$@ac.kr> Hi ns users, I'm trying to access the queue length information from mac-802_15.4.cc at the MAC level. But I got a segmentation fault error. Does anyone knows what's wrong with it or any alternative ways to do this? Regards, Uguudei From mrbalador at yahoo.com Thu Aug 20 06:21:45 2009 From: mrbalador at yahoo.com (ali bala) Date: Thu, 20 Aug 2009 06:21:45 -0700 (PDT) Subject: [ns] problem with 802.11e of tkn at ns-2.31 Message-ID: <507667.33109.qm@web45112.mail.sp1.yahoo.com> hi i install ns-2.31 correctly and after that i run ./validate . after that i patch 802.11 of tkn correctly but after?do instruction for?adding 802.11e when i run make clean after?./configure i see error : makefile 311 error missing separator stop. please guide me for adding 802.11e to ns correctly ?mr.ali.balador homepage:www.balador.org From sr.nsuser at gmail.com Thu Aug 20 07:09:13 2009 From: sr.nsuser at gmail.com (soheila rahmani) Date: Thu, 20 Aug 2009 18:39:13 +0430 Subject: [ns] I want to have 2 queue in nodes Message-ID: <24a228b00908200709j41c6348ds7cb01cf3e625c5ae@mail.gmail.com> hi all I want for using 2 queue in each node, every packet store in queue1 and some of them that is frametype_==1 stores in to queue2 but when i run the simulation i have a problem: segmentation fault I think I can not store the same packet in to queue thanks for your attention void DtRrQueue::enque(Packet* p) { hdr_ip* ih = hdr_ip::access(p); hdr_cmn* ch = hdr_cmn::access(p); Packet *p1=p; q1_->enque(p); if (q1_->length() > (qlim_-10)) { q1_->remove(p); drop(p); } if (ch->frametype_==1) { q2_->enque(p1); if ((q1_->length() + q2_->length()) > qlim_) { q2_->remove(p1); drop(p1);} } } Packet* DtRrQueue::deque() { Packet *p; if (deq_turn_ == 1) { p = q1_->deque(); if (p == 0) { p = q2_->deque(); deq_turn_ = 1; } else { deq_turn_ = 2; } } else { p = q2_->deque(); if (p == 0) { p = q1_->deque(); deq_turn_ = 2; } else { deq_turn_ = 1; } } return (p); } From tk_ratheesh_ns at yahoo.com Thu Aug 20 07:22:14 2009 From: tk_ratheesh_ns at yahoo.com (Ratheesh T K) Date: Thu, 20 Aug 2009 07:22:14 -0700 (PDT) Subject: [ns] Cannot reconfigure NS2.27 for LEACH Message-ID: <678136.10494.qm@web111907.mail.gq1.yahoo.com> Hello, I have installed NS2.27 on Redhat 5 Enteprise Edition, and in order to add leach support, i've used the ns2leach.pdf as a reference. It says like, 10. Edit the Makefile as follows: ? ? Add DMIT_uAMPS to the DEFINE list ? ? Add I./mit/rca I./mit/uAMPS to the INCLUDE list ? ? Add the following just prior to the line gaf/gaf.o \ ? ? ? mit/rca/energy.o mit/rca/rcagent.o \ ? ? ? mit/rca/rca-ll.o mit/rca/resource.o \ ? ? ? mac/mac-sensor-timers.o mac/mac-sensor.o mit/uAMPS/bsagent.o \ 11. Clean up previous build ? ? make clean 12. Rebuild ns2 this can take a while so I recommend redirecting output, ? ? running in background and going to lunch. ??? nohup make 2>error.log >make.log & " 13. Test default wireless demo and LEACH ???./test 14. Validate the full installation this takes a while too so take a break ? ? nohup ./validate-full 2>validate.error >validate.log & I have executed these steps, but the command? "nohup make 2>error.log>make.log" (step 12) is giving me an error. Please help me, why is this command not working?? Rgds.... Manu Ratheesh... From johnadams986 at gmail.com Thu Aug 20 08:49:59 2009 From: johnadams986 at gmail.com (John Adams) Date: Thu, 20 Aug 2009 10:49:59 -0500 Subject: [ns] Question about adding Wired and Wireless interface to a node In-Reply-To: <2eb93b80908191349m3e0f155mbf669653612ecfa4@mail.gmail.com> References: <2eb93b80908191349m3e0f155mbf669653612ecfa4@mail.gmail.com> Message-ID: <2eb93b80908200849m66279681r5a5211e42fb29837@mail.gmail.com> Hi, I am trying to simulate a scenario where a node would have both a wired and a wireless interface. Is this possible in ns2 or do I have to apply some patches to make it work? I have essentially seen pure wired and wired mixed with wireless using a base station situation but I think that is not what I am looking for. Any inputs on this are highly appreciated. Thanks, John From sr.nsuser at gmail.com Thu Aug 20 14:24:40 2009 From: sr.nsuser at gmail.com (soheila rahmani) Date: Fri, 21 Aug 2009 01:54:40 +0430 Subject: [ns] I want caching data Message-ID: <24a228b00908201424h5ef047dbl17393efd7e3f78b7@mail.gmail.com> hi all i want to save some packet and afterward send it. do every body help me ? what do I do ? From johnadams986 at gmail.com Thu Aug 20 15:24:30 2009 From: johnadams986 at gmail.com (John Adams) Date: Thu, 20 Aug 2009 17:24:30 -0500 Subject: [ns] Any way I can get notified upon event completion? Message-ID: <2eb93b80908201524j7163e479g7734677092edc728@mail.gmail.com> Hi, I was wondering if there was a way to call a C++ function upon an event completion. For instance, if I schedule a TCP flow from node 0 to node 1 at say 5.0 seconds, I would like TCL to call a C++ function to notify when this event is completed i.e. after some x bytes have been transferred... Does anyone know how to achieve this? Thanks, John From amir_adeli at yahoo.com Thu Aug 20 20:19:16 2009 From: amir_adeli at yahoo.com (amir adelipour) Date: Thu, 20 Aug 2009 20:19:16 -0700 (PDT) Subject: [ns] Trace file format! Message-ID: <895551.33751.qm@web45211.mail.sp1.yahoo.com> Hi everybody,does anybody know in the trace file lines what the last two numbers mean?for example:r 160.093884945 _6_ RTR --- 5 tcp 1492 [a2 4 6 800] ------- [65536:0 16777984:0 31 16777984] [1 0] 2 0what is the meaning of the last two numbers?Thank you in advance. From emiedzo at gmail.com Thu Aug 20 21:45:40 2009 From: emiedzo at gmail.com (Eric Miedzowicz) Date: Fri, 21 Aug 2009 01:45:40 -0300 Subject: [ns] Routing between wired and wireless domains Message-ID: Hi! I am tying to set up an experiment in which I need to route packets between 2 wired networks with a wireless ad hoc network in the middle. I used as a baseline the wired-cum-wireless example. My results so far are as follows: 1- I have no problem routing between two nodes within the wireless domain, even to/from base stations (HA and FA). 2- When I try to route traffic between the base stations (HA and FA), packets prefer the wireless netwok rather than the wired domain that they share. 3- I am unable to route packets from the wired network beyond the first hop of the wireless network. 4- The example works well with AODV, DSDV and AOMDV, but it complains when I try to use DSR or TORA My questions are: a- I basically need to know what is going on inside the base stations. How can I ensure/test that routing information is being propagated (redistributed) between the wired and wireless domains? Can I have the protocol propagate static routes both ways, if needed? How would I configure that in the tcl script? b- Once I make sure that all information is being routed correctly, what would be the best configuration with regards to hierarchical addressing for the two wired domains, so that the routing can flow correctly between them while traversing the wireless network? c- Do I need any extra parameter/configuration to set up the same scenario with DSR or TORA? Your help will be appreciated. Thank you. Best regards, Eric Miedzowicz From mrbalador at yahoo.com Thu Aug 20 23:57:45 2009 From: mrbalador at yahoo.com (ali bala) Date: Thu, 20 Aug 2009 23:57:45 -0700 (PDT) Subject: [ns] 802.11etkn error during execute the sample Message-ID: <619180.45813.qm@web45103.mail.sp1.yahoo.com> hi i think add 802.11e tkn without any error but when i run a example i recive this error : ns: [code omitted because of length] :invalid command name "..." ??? while executing "..." ??? invoked from within "if [tclobject is-class?mac/802_11e]{ ... copy settings of mac/802.11 (which are contained in this file) into this section and at an "e" at the end o..." what's the problem ? thanks for your attention. ?mr.ali.balador homepage:www.balador.org From everysmile123 at 163.com Fri Aug 21 01:16:17 2009 From: everysmile123 at 163.com (zhujian) Date: Fri, 21 Aug 2009 16:16:17 +0800 Subject: [ns] nist mobility package Message-ID: <000c01ca2237$a8b7e490$fa27adb0$@com> Hi: ALL! I am trying my best to learn the code of nist mobility package, but without document of the code, I feel too difficult for me to know the code clearly. Is there someone who are learning the code too? if you are, please reply me. I hope that you can give me some help or we can discuss some segment together. Thanks for your reply! 祝 建建 | Zhu Jian Jian ------------- Master School of Information Science and Technology Southwest Jiaotong University Chengdu, Sichuan 610031 P.R. China Phone:13540654875 From manoula_18 at hotmail.fr Fri Aug 21 09:00:38 2009 From: manoula_18 at hotmail.fr (K.manel) Date: Fri, 21 Aug 2009 09:00:38 -0700 (PDT) Subject: [ns] leachApp under mannasim extension Message-ID: <25082599.post@talk.nabble.com> Hi ns-users , Please, Can someone explain to me this part of LeachApp.cc code . And , plz where shall found the declaration and initialization of sensor_node (pointer on chadv structure leachApp.h ) Void LeachApp::start() { if (agent_ == NULL) { char agentName[32]; printf("Warning! LeachApp::start() => agent_ of %d is null! Creating a RCAgent!\n", sensor_node_->nodeid()); // exactly this line sprintf(agentName, "__rcagent%d", sensor_node_->nodeid()); agent_ = new RCAgent(); agent_->name(agentName); Tcl::instance().enter(agent_); printf("%s attach %s", name(), agent_->name()); Tcl::instance().evalf("%s attach %s", name(), agent_->name()); } sensedData_->node_id() == sensor_node_->nodeid(); mac_ = (MacSensor *) ((RCAgent *) agent_)->getMAC(); mac_->node_num() = sensor_node_->nodeid(); decideClusterHead(); CommonNodeApp::start(); } Many thanks -- View this message in context: http://www.nabble.com/leachApp-under-mannasim-extension-tp25082599p25082599.html Sent from the ns-users mailing list archive at Nabble.com. From alimmj81 at yahoo.com Fri Aug 21 13:19:57 2009 From: alimmj81 at yahoo.com (ali majeed) Date: Fri, 21 Aug 2009 13:19:57 -0700 (PDT) Subject: [ns] help me please in ns-2.27 Message-ID: <737999.1326.qm@web55807.mail.re3.yahoo.com> --- On Fri, 8/21/09, ali majeed wrote: From: ali majeed Subject: To: ns-users at isi.edu Date: Friday, August 21, 2009, 11:14 PM From ooluwadiya at yahoo.com Fri Aug 21 13:52:28 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Fri, 21 Aug 2009 13:52:28 -0700 (PDT) Subject: [ns] wrong node routing agent error Message-ID: <877850.56174.qm@web35506.mail.mud.yahoo.com> hello, i m having problems running my ns simulation after i patched ns2.33 with mobiwan to allow mobile ipv6 support. when i try running ns2.33 after the patching, i get this error: number of node is 5 ... wrong node routing agent! please does anyone know what the problem could be? regards From vidhyaprakash85 at gmail.com Fri Aug 21 20:56:48 2009 From: vidhyaprakash85 at gmail.com (=?UTF-8?B?zr3OueKIgtC90YPOsSDPgdGPzrHQus6x0ZXQvSBS?=) Date: Sat, 22 Aug 2009 09:26:48 +0530 Subject: [ns] Help with Code Message-ID: i have installed the ns2 successfully when i try to run my frnds code i get this error message plase help me... SARP.tcl #=============================================================================== # Define options #=============================================================================== set opt(chan) Channel/WirelessChannel ;# channel type set opt(prop) Propagation/TwoRayGround ;# radio-propagation model set opt(netif) Phy/WirelessPhy ;# network interface type set opt(mac) Mac/802_11 set opt(ifq) Queue/DropTail/PriQueue ;# interface queue type set opt(ll) LL ;# Link layer type set opt(rlc) RLC ;# Radio Link Control set opt(ant) Antenna/OmniAntenna ;# antenna model set opt(ifqlen) 500 ;# max packet in ifq set opt(adhocRouting) SARP ;# routing protocol set opt(x) 1000 ;# x coordinate of topology set opt(y) 1000 ;# y coordinate of topology set opt(nn) 100 ;# number of mobilenodes set opt(start) 1 ;# simulation start time set opt(stop) 15 ;# simulation stop time set opt(att) 5 ;# number of attackers set st_atk 56 ;# starting attacker node set opt(pause) 10 #============================================================================== set ns_ [new Simulator] # $ns_ use-newtrace set nf [open out.nam w] set tf [open out.tr w] $ns_ namtrace-all-wireless $nf $opt(x) $opt(y) $ns_ trace-all $tf set topo [new Topography] $topo load_flatgrid $opt(x) $opt(y) set god_ [create-god $opt(nn)] set channel [new $opt(chan)] $ns_ node-config -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) \ -rlcType $opt(rlc) \ -macType $opt(mac) \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -topoInstance $topo \ -wiredRouting OFF \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF \ -channel $channel #node creation for {set i 0} {$i < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion } #$ns_ color 0 red puts "Loading scenario files .." source "../scen/SCENP$opt(pause)" for {set i $st_atk} {$i < [expr $st_atk+$opt(att)] } {incr i} { $ns_ at 0.0 "$node_($i) add-mark m1 red circle" } set rate [expr $opt(att)*50]kb set udp1 [new Agent/UDP] $ns_ attach-agent $node_(0) $udp1 set null1 [new Agent/Null] $ns_ attach-agent $node_(50) $null1 set cbr1 [new Application/Traffic/CBR] $cbr1 set packetSize_ 1000 $cbr1 set rate_ $rate $cbr1 attach-agent $udp1 $ns_ connect $udp1 $null1 $ns_ at 1.0 "$node_(0) label Src"; $ns_ at 1.0 "$node_(50) label Dest"; $ns_ at 1.0 "$cbr1 start" for {set i 0} {$i < $opt(nn) } {incr i} { $ns_ at $opt(stop) "$node_($i) reset"; } for {set i 0} {$i < $opt(nn)} {incr i} { $ns_ initial_node_pos $node_($i) 20 } $ns_ at $opt(stop).01 "puts \"NS EXITING...\" ; $ns_ halt" proc finish {} { global nf tf ns_ $ns_ flush-trace close $nf close $tf exec ./find2.bin #exec nam out.nam & exit 0 } $ns_ at $opt(stop) "finish" $ns_ run when i try run i get this error please help me frnds.. [root at localhost tcl]# ns SARP.tcl num_nodes is set 100 (_o14 cmd line 1) invoked from within "_o14 cmd addr" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o14" line 2) (SplitObject unknown line 2) invoked from within "_o14 addr" ("eval" body line 1) invoked from within "eval $node addr $args" ("default" arm line 2) invoked from within "switch -exact $routingAgent_ { DSDV { set ragent [$self create-dsdv-agent $node] } DSR { $self at 0.0 "$node start-dsr" } AODV { set ragent [$self cre..." (procedure "_o3" line 14) (Simulator create-wireless-node line 14) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 23) (Simulator node line 23) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $opt(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion }" (file "SARP.tcl" line 57) [root at localhost tcl]# -- I ??k? ?y ?w? ??l?? I ??? ?y ?w? g??l? I f?ll?w ??? ???? l??? f?ll?w?d I ?? w??? I ?? R.VIDHYA PRAKASH www.techmelody.com 9944524864 From mrbalador at yahoo.com Sat Aug 22 02:38:01 2009 From: mrbalador at yahoo.com (ali bala) Date: Sat, 22 Aug 2009 02:38:01 -0700 (PDT) Subject: [ns] can't read "basicrate_" :no such variable Message-ID: <774358.70682.qm@web45111.mail.sp1.yahoo.com> hi dear i add 802.11e tkn and ns start to run the sample but middle of runnig the multi_udpflows.tcl(the example that exist in the 802_11e folder for testing) i see the new error : ns:mac/802_11e set basicrate_:can't read "basicrate_" :no such?variable (object set line1) invoked from within "mac/802_11e set basicrate_" ?mr.ali.balador homepage:www.balador.org From ooluwadiya at yahoo.com Sat Aug 22 11:56:55 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Sat, 22 Aug 2009 11:56:55 -0700 (PDT) Subject: [ns] error on simulating mobile ipv6 Message-ID: <965449.80649.qm@web35502.mail.mud.yahoo.com> hello all, i tried running my mobile ipv6 simulation with the tcl script attached and i got the error below. i have tried every way to solve the problem but no way out. Administrator at angel ~ $ ns wireless5.tcl num_nodes is set 5 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE THE LIST xListHead INITIALIZE THE LIST xListHead ??? (_o350 cmd line 1) ??? invoked from within "_o350 cmd set-ha 1.1.0" ??? invoked from within "catch "$self cmd $args" ret" ??? invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." ??? (procedure "_o350" line 2) ??? (SplitObject unknown line 2) ??? invoked from within "$local_node set-ha $ha_addr" ??? (procedure "create-mobile" line 9) ??? invoked from within "create-mobile 1.1.1 1.1.0 190 190 0 1 0.01" ??? (procedure "create-my-topo" line 35) ??? invoked from within "create-my-topo" ??? (procedure "main" line 43) ??? invoked from within "main" ??? (file "wireless5.tcl" line 260) Administrator at angel ~ $ below is my tcl script: # Basic Mobile IPv6 example without using ns-topoman # Needs proc defined in file proc-mipv6-config.tcl Agent/MIPv6/MN set bs_forwarding_???? 0?????? ################################################################ proc log-mn-movement_no_topo { } { ? global logtimer ns ? Class LogTimer -superclass Timer ? LogTimer instproc timeout {} { ???? global mobile_ ??????? $mobile_ log-movement ??????? $self sched 1 ? } ? set logtimer [new LogTimer] ? $logtimer sched 1? } ################################################################ # Create Topology ################################################################ set opt(chan)?? Channel/WirelessChannel??????? ;# channel type set opt(prop)?? Propagation/TwoRayGround?????? ;# radio-propagation model set opt(netif)? Phy/WirelessPhy??????????????? ;# network interface type set opt(mac)??? Mac/802_11???????????????????? ;# MAC type set opt(ifq)??? Queue/DropTail/PriQueue???????? ;# interface queue type set opt(ll)???? LL???????????????????????????? ;# link layer type set opt(ant)??? Antenna/OmniAntenna??????????? ;# antenna model set opt(ifqlen)???????? 50???????????????????? ;# max packet in ifq set opt(nn)???????????? 1????????????????????? ;# number of mobilenodes set opt(adhocRouting)?? DSDV?????????????????? ;# routing protocol set opt(cp)???? ""???????????????????????????? ;# cp file not used set opt(sc)???? ""???????????????????????????? ;# node movement file. set opt(x)????? 1500??????????????????????????? ;# x coordinate of topology set opt(y)????? 1500??????????????????????????? ;# y coordinate of topology set opt(seed)?? 0.0??????????????????????????? ;# random seed set opt(stop)?? 130????????????????????????? ;# time to stop simulation set opt(ftp1-start)????? 10.0 set num_wired_nodes????? 4 #set num_bs_nodes?????? 4? ; this is not really used here. proc create-my-topo {} { ? global ns opt topo mobile_ cn_ mnn_nodes_ ? # Create and define topography ? set topo??????? [new Topography] ? #?? set prop??????? [new $opt(prop)] ? #?? $prop topography $topo $topo load_flatgrid $opt(x) $opt(y) ? ? # god is a necessary object when wireless is used ? # set to a value equal to the number of mobile nodes ? create-god 5 ? # Call node-config ? $ns node-config \ ???? -mipv6 ON \ ??? -mipagent BS \ ??? -mobileIP ON \ ??? -wiredRouting ON \ ??? -adhocRouting DSDV \ ??? -llType LL \ ??? -macType Mac/802_11 \ ??? -ifqType Queue/DropTail/PriQueue \ ??? -ifqLen 50 \ ??? -antType Antenna/OmniAntenna \ ??? -propType Propagation/TwoRayGround \ ??? -phyType Phy/WirelessPhy \ ??? -channelType Channel/WirelessChannel \ ??? -topoInstance $topo \ ??? -agentTrace ON \ ??? -routerTrace ON ? # Set NS Addressing ? $ns node-config -addressType hierarchical ? AddrParams set domain_num_ 5 ? AddrParams set cluster_num_ {4 1 1 1 1} ? AddrParams set nodes_num_ {1 1 1 1 2 1 1 1 } ? # Create Nodes ? set cn_ [create-router 0.0.0] ? set router1_ [create-router 1.0.0] ? set router2_ [create-router 2.0.0] ? set router3_ [create-router 3.0.0] ? set bs1_ [create-base-station 1.1.0 1.0.0 200 200 0] ? set bs2_ [create-base-station 1.2.0 1.0.0 200 600 0] ? set bs3_ [create-base-station 1.3.0 1.0.0 600 200 0] ? set bs4_ [create-base-station 1.4.0 1.0.0 600 600 0] ? set mobile_ [create-mobile 1.1.1 1.1.0 190 190 0 1 0.01] ? $bs1_ random-motion 0 ? $bs2_ random-motion 0 ? $bs3_ random-motion 0 ? $bs4_ random-motion 0 ? # Position (fixed) for base-station nodes (HA & FA). ? $bs1_ set X_ 250.000000000000 ? $bs1_ set Y_ 1050.000000000000 ? $bs1_ set Z_ 0.000000000000 ? $bs2_ set X_ 950.000000000000 ? $bs2_ set Y_ 1050.000000000000 ? $bs2_ set Z_ 0.000000000000 ? $bs3_ set X_ 950.000000000000 ? $bs3_ set Y_ 300.000000000000 ? $bs3_ set Z_ 0.000000000000 ? $bs4_ set X_ 250.000000000000 ? $bs4_ set Y_ 300.000000000000 ? $bs4_ set Z_ 0.000000000000 ? # Create Links ? $ns duplex-link $cn_ $router1_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router2_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router3_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs1_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs2_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs3_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs4_ 100Mb 2ms DropTail ? $ns duplex-link-op $cn_ $router1_ orient down ? $ns duplex-link-op $router1_ $router2_ orient left-down ? $ns duplex-link-op $router1_ $router3_ orient right-down ? $ns duplex-link-op $router2_ $bs1_ orient left-down ? $ns duplex-link-op $router2_ $bs2_ orient right-down ? $ns duplex-link-op $router3_ $bs3_ orient down ? $ns duplex-link-op $router3_ $bs4_ orient right-down ? # movement of the MH ? $mobile_ set Z_ 0.000000000000 ? $mobile_ set Y_ 1000.000000000000 ? $mobile_ set X_ 250.000000000000 ? # MH starts to move towards FA1 ? $ns at 10.000000000000 "$mobile_ setdest 950.000000000000 1000.000000000000 20.000000000000" ? # MH move from FA1 towards FA2 ? $ns at 50.000000000000 "$mobile_ setdest 950.000000000000 350.000000000000 20.000000000000" ? # MH move from FA2 towards FA3 ? $ns at 85.000000000000 "$mobile_ setdest 250.000000000000 350.000000000000 20.000000000000" ? ? display_ns_addr_domain } ################################################################ # End of Simulation ################################################################ proc finish { } { ? global tracef ns namf opt mobile_ cn_ ? ? puts "Simulation finished" ? # Dump the Binding Update List of MN and Binding Cache of HA ? [[$mobile_ set ha_] set regagent_] dump ? [$cn_ set regagent_] dump ? [$mobile_ set regagent_] dump ? $ns flush-trace ? flush $tracef ? close $tracef ? close $namf ? #puts "running nam with $opt(namfile) ... " ? #exec nam $opt(namfile) & ? exit 0 } ################################################################ # Main ################################################################ proc main { } { ?? global opt ns TOPOM namf n tracef mobile_ cn_ ?? # Source Files ?? # source set-def-options.tcl ?? # set BASEDIR to your own correct path ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-tools.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-topo.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/ns-topoman.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-global.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-config.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/mobility/timer.tcl ?? set NAMF out.nam ?? set TRACEF out.tr ?? set INFOF out.info ?? set opt(mactrace) ON ?? set opt(NAM) 1 ?? set opt(namfile) $NAMF ?? set opt(stop) 130 ?? set opt(tracefile) $TRACEF ?? ?? #>--------------- Extract options from command line ---------------< ?? #Getopt??? ; # Get option from the command line??? ?? #DisplayCommandLine ?? ?? #>---------------------- Simulator Settings ----------------------< ?? set ns [new Simulator] ??????? ?? #>------------------------ Open trace files ----------------------< ?? exec rm -f $opt(tracefile) ?? set tracef [open $opt(tracefile) w] ?? #... dump the file ?? $ns trace-all $tracef ??? ?? set namf [open $opt(namfile) w] ?? $ns namtrace-all $namf ?? #>------------- Protocol and Topology Settings -------------------< ?? create-my-topo ?? log-mn-movement_no_topo ?? ?? set-cbr ?? # set-ping-int 0.1 $cn_ $mobile_ 10 $opt(stop) ?? ?? ?? #>----------------------- Run Simulation -------------------------< ?? $ns at $opt(stop) "finish" ?? $ns run ?? $ns dump-topology $namf ?? close $namf ?? #puts "running nam with $opt(namfile) ... " ?? #exec nam $opt(namfile) & } proc set-cbr { } { ?? global ns cn_ mobile_ ?? set tcp1 [new Agent/TCP] ?? $ns attach-agent $cn_ $tcp1 ?? ?? set dst [new Agent/TCPSink] ?? $ns attach-agent $mobile_ $dst ?? $ns connect $tcp1 $dst ?? set ftp1 [new Application/FTP] ?? $ftp1 set packetSize_ 1040 ?? $ftp1 set rate_ 100k ?? $ftp1 set interval_ 0.05 ?? $ftp1 attach-agent $tcp1 ??? $ns at 10.0 "$ftp1 start" } main From adil.drissi at yahoo.com Sat Aug 22 21:22:22 2009 From: adil.drissi at yahoo.com (Adil Adil) Date: Sat, 22 Aug 2009 21:22:22 -0700 (PDT) Subject: [ns] Java TCP socket applications over ns-2 Message-ID: <789166.19427.qm@web46001.mail.sp1.yahoo.com> Hi, I want to know if there is any documentation explaining how to run a java socket (TCP) application on ns-2. Thank you __________________________________________________________________ Get a sneak peak at messages with a handy reading pane with All new Yahoo! Mail: http://ca.promos.yahoo.com/newmail/overview2/ From jayavignesh86 at yahoo.co.in Sun Aug 23 05:32:23 2009 From: jayavignesh86 at yahoo.co.in (jaya vignesh) Date: Sun, 23 Aug 2009 18:02:23 +0530 (IST) Subject: [ns] Error when invoking new routing protocol through tcl script Message-ID: <499119.72880.qm@web8907.mail.in.yahoo.com> Hi All, i have implemented a new routing protocol abiding the instructions given in the "Implementing a new Manet unicast routing protocol in ns2" doc. I have included the packet type,agent details etc in the ns-lib.tcl,ns-packet.tcl,ns-default.tcl and also in common/packet.h. added the protocol object entries in the OBJ_CC in Makefile.in I tried running the ./configure make clean make The object files were created and additionally these info were displayed.. 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/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest' make[1]: Entering directory `/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec' make[1]: Entering directory `/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa' make[1]: Entering directory `/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr' make[1]: Entering directory `/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb' Then tried to invoke my protocol through tcl script, but an error arised stating jayavignesh86 at vignesh-laptop:~$ ns test_3n.tcl num_nodes is set 121 ??? (_o14 cmd line 1) ??? invoked from within "_o14 cmd addr" ??? invoked from within "catch "$self cmd $args" ret" ??? invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." ??? (procedure "_o14" line 2) ??? (SplitObject unknown line 2) ??? invoked from within "_o14 addr" ??? ("eval" body line 1) ??? invoked from within "eval $node addr $args" ??? ("default" arm line 2) ??? invoked from within "switch -exact $routingAgent_ { DSDV { set ragent [$self create-dsdv-agent $node] } DSR { $self at 0.0 "$node start-dsr" } AODV { set ragent [$self cre..." ??? (procedure "_o3" line 11) ??? (Simulator create-wireless-node line 11) ??? invoked from within "_o3 create-wireless-node" ??? ("eval" body line 1) ??? invoked from within "eval $self create-wireless-node $args" ??? (procedure "_o3" line 23) ??? (Simulator node line 23) ??? invoked from within "$ns_ node" ??? ("for" body line 2) ??? invoked from within "for {set i 0} {$i < $opt(nn)} {incr i} { ??? set node_($i) [$ns_ node] }" ??? (file "test_3n.tcl" line 117) Could you please figure me out the problem? Have i missed any intermediate steps?? Thanks in Advance, Jayavignesh Looking for local information? Find it on Yahoo! Local See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/ From gem.damon at gmail.com Sun Aug 23 08:05:01 2009 From: gem.damon at gmail.com (GeD) Date: Sun, 23 Aug 2009 23:05:01 +0800 Subject: [ns] How to simulate intermittently connected MANET using NS2, with DTN enhancement? In-Reply-To: <73afcc010908190243o5c438575k1bdaadeb53ab563d@mail.gmail.com> References: <73afcc010908190243o5c438575k1bdaadeb53ab563d@mail.gmail.com> Message-ID: <73afcc010908230805l32db22f5gd60629da7f5785dd@mail.gmail.com> Dear all, I am going to simulate a security mechnism for intermittently connected (opportunistic) MANET based on NS2. I have checked with the mail list archive, but find few clues. How should I get start, is there any instruction or suggestions? Thanks a lot! Meng From alimmj81 at yahoo.com Sun Aug 23 14:40:28 2009 From: alimmj81 at yahoo.com (ali majeed) Date: Sun, 23 Aug 2009 14:40:28 -0700 (PDT) Subject: [ns] help me to make modification to ns-2.27 files (.cc & .h) Message-ID: <887468.41473.qm@web55804.mail.re3.yahoo.com> hi to all I tried to run the instruaction "make depend; make" from your?web site?to make recompile to pi.cc &pi.h(because i modified these files) and i attached the message with this email?that i get after running but my problem till now not solved . ? please help me to solve my problem (make modified) ? note : please if i need to add new files .cc?&? .h? with new name to ns2 please can you provide me the steps or instructions to do that. ? thank you ali m From v_mandhare at yahoo.com Mon Aug 24 00:40:11 2009 From: v_mandhare at yahoo.com (vaishali mandhare) Date: Mon, 24 Aug 2009 13:10:11 +0530 (IST) Subject: [ns] Fw: ns-allinone-2.1b8 package Message-ID: <350117.13862.qm@web94810.mail.in2.yahoo.com> --- On Mon, 24/8/09, vaishali mandhare wrote: From: vaishali mandhare Subject: ns-allinone-2.1b8 package To: "ns user" Date: Monday, 24 August, 2009, 8:50 AM Hello all, I want ns-allinone-2.1b8 package which I try to download from ns site but not download. If anybody already have this package?pleaseend me. ? Thanks!? Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8.. Looking for local information? Find it on Yahoo! Local http://in.local.yahoo.com/ From sasitharan.a at invictustech.net Mon Aug 24 02:22:09 2009 From: sasitharan.a at invictustech.net (Sasitharan .A) Date: Mon, 24 Aug 2009 14:52:09 +0530 Subject: [ns] how to tables maintain in tcl scripts Message-ID: Hello all.... how to maintain tables in ns2 by using tcl scripts ...... any send the tcl code Plzs ...... With regards A.Sasitharan Invictus technology solutions (P) Ltd www.ellamey.com From e_cherkaoui at yahoo.fr Mon Aug 24 03:02:22 2009 From: e_cherkaoui at yahoo.fr (El hadi Cherkaoui) Date: Mon, 24 Aug 2009 10:02:22 +0000 (GMT) Subject: [ns] Fw : NS2.29 + MIH IEEE802.21 Message-ID: <599194.45549.qm@web28610.mail.ukl.yahoo.com> --- En date de?: Lun 24.8.09, El hadi Cherkaoui a ?crit?: De: El hadi Cherkaoui Objet: NS2.29 + MIH IEEE802.21 ?: "NS user" Date: Lundi 24 Ao?t 2009, 11h56 Hi all, My question is why Media Independant Handover is well implemented over NS2.29 instead other version ?? thanx From ooluwadiya at yahoo.com Mon Aug 24 04:23:41 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Mon, 24 Aug 2009 04:23:41 -0700 (PDT) Subject: [ns] simulation error: invalid command name Agent/MIPv6/MN Message-ID: <11815.84405.qm@web35504.mail.mud.yahoo.com> hello, when i tried running my mobile ipv6 tcl script, i got this error: invalid command name "Agent/Mipv6/MN" while executing Agent/Mipv6/MN set bs_forwarding_?? 0 does anyone know what the problem could be.below is my tcl script # Basic Mobile IPv6 example without using ns-topoman # Needs proc defined in file proc-mipv6-config.tcl Agent/MIPv6/MN set bs_forwarding_???? 0?????? ################################################################ proc log-mn-movement_no_topo { } { ? global logtimer ns ? Class LogTimer -superclass Timer ? LogTimer instproc timeout {} { ???? global mobile_ ??????? $mobile_ log-movement ??????? $self sched 1 ? } ? set logtimer [new LogTimer] ? $logtimer sched 1? } ################################################################ # Create Topology ################################################################ set opt(chan)?? Channel/WirelessChannel??????? ;# channel type set opt(prop)?? Propagation/TwoRayGround?????? ;# radio-propagation model set opt(netif)? Phy/WirelessPhy??????????????? ;# network interface type set opt(mac)??? Mac/802_11???????????????????? ;# MAC type set opt(ifq)??? Queue/DropTail/PriQueue???????? ;# interface queue type set opt(ll)???? LL???????????????????????????? ;# link layer type set opt(ant)??? Antenna/OmniAntenna??????????? ;# antenna model set opt(ifqlen)???????? 50???????????????????? ;# max packet in ifq set opt(nn)???????????? 1????????????????????? ;# number of mobilenodes set opt(adhocRouting)?? DSDV?????????????????? ;# routing protocol set opt(cp)???? ""???????????????????????????? ;# cp file not used set opt(sc)???? ""???????????????????????????? ;# node movement file. set opt(x)????? 1500??????????????????????????? ;# x coordinate of topology set opt(y)????? 1500??????????????????????????? ;# y coordinate of topology set opt(seed)?? 0.0??????????????????????????? ;# random seed set opt(stop)?? 130????????????????????????? ;# time to stop simulation set opt(ftp1-start)????? 10.0 set num_wired_nodes????? 4 #set num_bs_nodes?????? 4? ; this is not really used here. proc create-my-topo {} { ? global ns opt topo mobile_ cn_ mnn_nodes_ ? # Create and define topography ? set topo??????? [new Topography] ? #?? set prop??????? [new $opt(prop)] ? #?? $prop topography $topo $topo load_flatgrid $opt(x) $opt(y) ? ? # god is a necessary object when wireless is used ? # set to a value equal to the number of mobile nodes ? create-god 5 ? # Call node-config ? $ns node-config \ ???? -mipv6 ON \ ??? -mipagent BS \ ??? -mobileIP ON \ ??? -wiredRouting ON \ ??? -adhocRouting DSDV \ ??? -llType LL \ ??? -macType Mac/802_11 \ ??? -ifqType Queue/DropTail/PriQueue \ ??? -ifqLen 50 \ ??? -antType Antenna/OmniAntenna \ ??? -propType Propagation/TwoRayGround \ ??? -phyType Phy/WirelessPhy \ ??? -channelType Channel/WirelessChannel \ ??? -topoInstance $topo \ ??? -agentTrace ON \ ??? -routerTrace ON ? # Set NS Addressing ? $ns node-config -addressType hierarchical ? AddrParams set domain_num_ 5 ? AddrParams set cluster_num_ {4 1 1 1 1} ? AddrParams set nodes_num_ {1 1 1 1 2 1 1 1 } ? # Create Nodes ? set cn_ [create-router 0.0.0] ? set router1_ [create-router 1.0.0] ? set router2_ [create-router 2.0.0] ? set router3_ [create-router 3.0.0] ? set bs1_ [create-base-station 1.1.0 1.0.0 200 200 0] ? set bs2_ [create-base-station 1.2.0 1.0.0 200 600 0] ? set bs3_ [create-base-station 1.3.0 1.0.0 600 200 0] ? set bs4_ [create-base-station 1.4.0 1.0.0 600 600 0] ? set mobile_ [create-mobile 1.1.1 1.1.0 190 190 0 1 0.01] ? $bs1_ random-motion 0 ? $bs2_ random-motion 0 ? $bs3_ random-motion 0 ? $bs4_ random-motion 0 ? # Position (fixed) for base-station nodes (HA & FA). ? $bs1_ set X_ 250.000000000000 ? $bs1_ set Y_ 1050.000000000000 ? $bs1_ set Z_ 0.000000000000 ? $bs2_ set X_ 950.000000000000 ? $bs2_ set Y_ 1050.000000000000 ? $bs2_ set Z_ 0.000000000000 ? $bs3_ set X_ 950.000000000000 ? $bs3_ set Y_ 300.000000000000 ? $bs3_ set Z_ 0.000000000000 ? $bs4_ set X_ 250.000000000000 ? $bs4_ set Y_ 300.000000000000 ? $bs4_ set Z_ 0.000000000000 ? # Create Links ? $ns duplex-link $cn_ $router1_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router2_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router3_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs1_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs2_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs3_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs4_ 100Mb 2ms DropTail ? $ns duplex-link-op $cn_ $router1_ orient down ? $ns duplex-link-op $router1_ $router2_ orient left-down ? $ns duplex-link-op $router1_ $router3_ orient right-down ? $ns duplex-link-op $router2_ $bs1_ orient left-down ? $ns duplex-link-op $router2_ $bs2_ orient right-down ? $ns duplex-link-op $router3_ $bs3_ orient down ? $ns duplex-link-op $router3_ $bs4_ orient right-down ? # movement of the MH ? $mobile_ set Z_ 0.000000000000 ? $mobile_ set Y_ 1000.000000000000 ? $mobile_ set X_ 250.000000000000 ? # MH starts to move towards FA1 ? $ns at 10.000000000000 "$mobile_ setdest 950.000000000000 1000.000000000000 20.000000000000" ? # MH move from FA1 towards FA2 ? $ns at 50.000000000000 "$mobile_ setdest 950.000000000000 350.000000000000 20.000000000000" ? # MH move from FA2 towards FA3 ? $ns at 85.000000000000 "$mobile_ setdest 250.000000000000 350.000000000000 20.000000000000" ? ? display_ns_addr_domain } ################################################################ # End of Simulation ################################################################ proc finish { } { ? global tracef ns namf opt mobile_ cn_ ? ? puts "Simulation finished" ? # Dump the Binding Update List of MN and Binding Cache of HA ? [[$mobile_ set ha_] set regagent_] dump ? [$cn_ set regagent_] dump ? [$mobile_ set regagent_] dump ? $ns flush-trace ? flush $tracef ? close $tracef ? close $namf ? #puts "running nam with $opt(namfile) ... " ? #exec nam $opt(namfile) & ? exit 0 } ################################################################ # Main ################################################################ proc main { } { ?? global opt ns TOPOM namf n tracef mobile_ cn_ ?? # Source Files ?? # source set-def-options.tcl ?? # set BASEDIR to your own correct path ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-tools.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-topo.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/ns-topoman.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-global.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-config.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/mobility/timer.tcl ?? set NAMF out.nam ?? set TRACEF out.tr ?? set INFOF out.info ?? set opt(mactrace) ON ?? set opt(NAM) 1 ?? set opt(namfile) $NAMF ?? set opt(stop) 130 ?? set opt(tracefile) $TRACEF ?? ?? #>--------------- Extract options from command line ---------------< ?? #Getopt??? ; # Get option from the command line??? ?? #DisplayCommandLine ?? ?? #>---------------------- Simulator Settings ----------------------< ?? set ns [new Simulator] ??????? ?? #>------------------------ Open trace files ----------------------< ?? exec rm -f $opt(tracefile) ?? set tracef [open $opt(tracefile) w] ?? #... dump the file ?? $ns trace-all $tracef ??? ?? set namf [open $opt(namfile) w] ?? $ns namtrace-all $namf ?? #>------------- Protocol and Topology Settings -------------------< ?? create-my-topo ?? log-mn-movement_no_topo ?? ?? set-cbr ?? # set-ping-int 0.1 $cn_ $mobile_ 10 $opt(stop) ?? ?? ?? #>----------------------- Run Simulation -------------------------< ?? $ns at $opt(stop) "finish" ?? $ns run ?? $ns dump-topology $namf ?? close $namf ?? #puts "running nam with $opt(namfile) ... " ?? #exec nam $opt(namfile) & } proc set-cbr { } { ?? global ns cn_ mobile_ ?? set tcp1 [new Agent/TCP] ?? $ns attach-agent $cn_ $tcp1 ?? ?? set dst [new Agent/TCPSink] ?? $ns attach-agent $mobile_ $dst ?? $ns connect $tcp1 $dst ?? set ftp1 [new Application/FTP] ?? $ftp1 set packetSize_ 1040 ?? $ftp1 set rate_ 100k ?? $ftp1 set interval_ 0.05 ?? $ftp1 attach-agent $tcp1 ??? $ns at 10.0 "$ftp1 start" } From e_cherkaoui at yahoo.fr Mon Aug 24 08:28:53 2009 From: e_cherkaoui at yahoo.fr (El hadi Cherkaoui) Date: Mon, 24 Aug 2009 15:28:53 +0000 (GMT) Subject: [ns] Re : NS2.29 + MIH IEEE802.21 In-Reply-To: <617678.56947.qm@web36302.mail.mud.yahoo.com> Message-ID: <752949.70095.qm@web28605.mail.ukl.yahoo.com> Hi, No idea about NS2.31 but i think it's better to chose NS2.29 you will find more documentation. I don't know yet why it's better in NS2.29 , it was my question. --- En date de?: Lun 24.8.09, sabelo dlamini a ?crit?: De: sabelo dlamini Objet: NS2.29 + MIH IEEE802.21 ?: e_cherkaoui at yahoo.fr Date: Lundi 24 Ao?t 2009, 15h53 Hello, I want to use the MIH with ns-2.31 have you tried using it? Do you have some idea on how one can modify this package for ns-2.31? From senkah at hotmail.com Mon Aug 24 13:45:57 2009 From: senkah at hotmail.com (senka hadzic) Date: Mon, 24 Aug 2009 20:45:57 +0000 Subject: [ns] Problem installing Ricean fading model Message-ID: Hi, I downloaded the Ricean propagation model, copied the two files (prop_ricean.cc and prop_ricean.h) into the ns-2.33/mobile directory and added prop_ricean.o to Makefile.in. After running "make", i got the following error: make: *** No rule to make target 'diffusion3/lib/nr/nr.o', needed by 'ns'. Stop Can anyone give me some hints on how to solve this? I am using ns-2.33 on Ubuntu 9.04. Thanks, Senka _________________________________________________________________ Windows Live: Make it easier for your friends to see what you?re up to on Facebook. http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_facebook:082009 From andhika_p_f at yahoo.com Mon Aug 24 20:31:26 2009 From: andhika_p_f at yahoo.com (Andhika Perdana Faisal) Date: Mon, 24 Aug 2009 20:31:26 -0700 (PDT) Subject: [ns] please help me Message-ID: <229356.53893.qm@web63902.mail.re1.yahoo.com> I have some problem with my NS Can you tell me about zrp.path in NS,,, I very need your help Thanks From ooluwadiya at yahoo.com Tue Aug 25 01:45:35 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Tue, 25 Aug 2009 01:45:35 -0700 (PDT) Subject: [ns] finally, my mobile ipv6 patch works but....... Message-ID: <764800.94333.qm@web35504.mail.mud.yahoo.com> hello, finally, my mobile ipv6 patch worked. i was able to run the simple-mipv6.tcl script that came with the patch. however, my own tcl script doesnt run at all. it comes up with 0 byte output tracefile and 0 byte nam output file.what could be wrong? below is my tcl script and attached is the scenario i m trying to achieve. # Basic Mobile IPv6 example without using ns-topoman # Needs proc defined in file proc-mipv6-config.tcl Agent/MIPv6/MN set bs_forwarding_???? 0?????? ################################################################ proc log-mn-movement_no_topo { } { ? global logtimer ns ? Class LogTimer -superclass Timer ? LogTimer instproc timeout {} { ???? global mobile_ ??????? $mobile_ log-movement ??????? $self sched 1 ? } ? set logtimer [new LogTimer] ? $logtimer sched 1? } ################################################################ # Create Topology ################################################################ set opt(chan)?? Channel/WirelessChannel??????? ;# channel type set opt(prop)?? Propagation/TwoRayGround?????? ;# radio-propagation model set opt(netif)? Phy/WirelessPhy??????????????? ;# network interface type set opt(mac)??? Mac/802_11???????????????????? ;# MAC type set opt(ifq)??? Queue/DropTail/PriQueue???????? ;# interface queue type set opt(ll)???? LL???????????????????????????? ;# link layer type set opt(ant)??? Antenna/OmniAntenna??????????? ;# antenna model set opt(ifqlen)???????? 50???????????????????? ;# max packet in ifq set opt(nn)???????????? 1????????????????????? ;# number of mobilenodes set opt(adhocRouting)?? DSDV?????????????????? ;# routing protocol set opt(cp)???? ""???????????????????????????? ;# cp file not used set opt(sc)???? ""???????????????????????????? ;# node movement file. set opt(x)????? 1500??????????????????????????? ;# x coordinate of topology set opt(y)????? 1500??????????????????????????? ;# y coordinate of topology set opt(seed)?? 0.0??????????????????????????? ;# random seed set opt(stop)?? 130????????????????????????? ;# time to stop simulation set opt(ftp1-start)????? 10.0 set num_wired_nodes????? 4 #set num_bs_nodes?????? 4? ; this is not really used here. proc create-my-topo {} { ? global ns opt topo mobile_ cn_ mnn_nodes_ ? # Create and define topography ? set topo??????? [new Topography] ? #?? set prop??????? [new $opt(prop)] ? #?? $prop topography $topo $topo load_flatgrid $opt(x) $opt(y) ? ? # god is a necessary object when wireless is used ? # set to a value equal to the number of mobile nodes ? create-god 5 ? # Call node-config ? $ns node-config \ ???? -mipv6 ON \ ??? -mipagent BS \ ??? -mobileIP ON \ ??? -wiredRouting ON \ ??? -adhocRouting DSDV \ ??? -llType LL \ ??? -macType Mac/802_11 \ ??? -ifqType Queue/DropTail/PriQueue \ ??? -ifqLen 50 \ ??? -antType Antenna/OmniAntenna \ ??? -propType Propagation/TwoRayGround \ ??? -phyType Phy/WirelessPhy \ ??? -channelType Channel/WirelessChannel \ ??? -topoInstance $topo \ ??? -agentTrace ON \ ??? -routerTrace ON ? # Set NS Addressing ? $ns node-config -addressType hierarchical ? AddrParams set domain_num_ 5 ? AddrParams set cluster_num_ {4 1 1 1 1} ? AddrParams set nodes_num_ {1 1 1 1 2 1 1 1 } ? # Create Nodes ? set cn_ [create-router 0.0.0] ? set router1_ [create-router 1.0.0] ? set router2_ [create-router 2.0.0] ? set router3_ [create-router 3.0.0] ? set bs1_ [create-base-station 1.1.0 1.0.0 200 200 0] ? set bs2_ [create-base-station 1.2.0 1.0.0 200 600 0] ? set bs3_ [create-base-station 1.3.0 1.0.0 600 200 0] ? set bs4_ [create-base-station 1.4.0 1.0.0 600 600 0] ? set mobile_ [create-mobile 1.1.1 1.1.0 190 190 0 1 0.01] ? $bs1_ random-motion 0 ? $bs2_ random-motion 0 ? $bs3_ random-motion 0 ? $bs4_ random-motion 0 ? # Position (fixed) for base-station nodes (HA & FA). ? $bs1_ set X_ 250.000000000000 ? $bs1_ set Y_ 1050.000000000000 ? $bs1_ set Z_ 0.000000000000 ? $bs2_ set X_ 950.000000000000 ? $bs2_ set Y_ 1050.000000000000 ? $bs2_ set Z_ 0.000000000000 ? $bs3_ set X_ 950.000000000000 ? $bs3_ set Y_ 300.000000000000 ? $bs3_ set Z_ 0.000000000000 ? $bs4_ set X_ 250.000000000000 ? $bs4_ set Y_ 300.000000000000 ? $bs4_ set Z_ 0.000000000000 ? # Create Links ? $ns duplex-link $cn_ $router1_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router2_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router3_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs1_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs2_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs3_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs4_ 100Mb 2ms DropTail ? $ns duplex-link-op $cn_ $router1_ orient down ? $ns duplex-link-op $router1_ $router2_ orient left-down ? $ns duplex-link-op $router1_ $router3_ orient right-down ? $ns duplex-link-op $router2_ $bs1_ orient left-down ? $ns duplex-link-op $router2_ $bs2_ orient right-down ? $ns duplex-link-op $router3_ $bs3_ orient down ? $ns duplex-link-op $router3_ $bs4_ orient right-down ? # movement of the MH ? $mobile_ set Z_ 0.000000000000 ? $mobile_ set Y_ 1000.000000000000 ? $mobile_ set X_ 250.000000000000 ? # MH starts to move towards FA1 ? $ns at 10.000000000000 "$mobile_ setdest 950.000000000000 1000.000000000000 20.000000000000" ? # MH move from FA1 towards FA2 ? $ns at 50.000000000000 "$mobile_ setdest 950.000000000000 350.000000000000 20.000000000000" ? # MH move from FA2 towards FA3 ? $ns at 85.000000000000 "$mobile_ setdest 250.000000000000 350.000000000000 20.000000000000" ? ? display_ns_addr_domain } ################################################################ # End of Simulation ################################################################ proc finish { } { ? global tracef ns namf opt mobile_ cn_ ? ? puts "Simulation finished" ? # Dump the Binding Update List of MN and Binding Cache of HA ? [[$mobile_ set ha_] set regagent_] dump ? [$cn_ set regagent_] dump ? [$mobile_ set regagent_] dump ? $ns flush-trace ? flush $tracef ? close $tracef ? close $namf ? #puts "running nam with $opt(namfile) ... " ? #exec nam $opt(namfile) & ? exit 0 } ################################################################ # Main ################################################################ proc main { } { ?? global opt ns TOPOM namf n tracef mobile_ cn_ ?? # Source Files ?? # source set-def-options.tcl ?? # set BASEDIR to your own correct path ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-tools.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-topo.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/ns-topoman.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-global.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/lib/proc-mobi-config.tcl ?? source? /home/Administrator/ns-allinone-2.33/ns-2.33/tcl/mobility/timer.tcl ?? set NAMF out.nam ?? set TRACEF out.tr ?? set INFOF out.info ?? set opt(mactrace) ON ?? set opt(NAM) 1 ?? set opt(namfile) $NAMF ?? set opt(stop) 130 ?? set opt(tracefile) $TRACEF ?? ?? #>--------------- Extract options from command line ---------------< ?? #Getopt??? ; # Get option from the command line??? ?? #DisplayCommandLine ?? ?? #>---------------------- Simulator Settings ----------------------< ?? set ns [new Simulator] ??????? ?? #>------------------------ Open trace files ----------------------< ?? exec rm -f $opt(tracefile) ?? set tracef [open $opt(tracefile) w] ?? #... dump the file ?? $ns trace-all $tracef ??? ?? set namf [open $opt(namfile) w] ?? $ns namtrace-all $namf ?? #>------------- Protocol and Topology Settings -------------------< ?? create-my-topo ?? log-mn-movement_no_topo ?? ?? set-cbr ?? # set-ping-int 0.1 $cn_ $mobile_ 10 $opt(stop) ?? ?? ?? #>----------------------- Run Simulation -------------------------< ?? $ns at $opt(stop) "finish" ?? $ns run ?? $ns dump-topology $namf ?? close $namf ?? #puts "running nam with $opt(namfile) ... " ?? #exec nam $opt(namfile) & } proc set-cbr { } { ?? global ns cn_ mobile_ ?? set tcp1 [new Agent/TCP] ?? $ns attach-agent $cn_ $tcp1 ?? ?? set dst [new Agent/TCPSink] ?? $ns attach-agent $mobile_ $dst ?? $ns connect $tcp1 $dst ?? set ftp1 [new Application/FTP] ?? $ftp1 set packetSize_ 1040 ?? $ftp1 set rate_ 100k ?? $ftp1 set interval_ 0.05 ?? $ftp1 attach-agent $tcp1 ??? $ns at 10.0 "$ftp1 start" } From mar.mazurek at gmail.com Tue Aug 25 02:27:45 2009 From: mar.mazurek at gmail.com (Mazurek Marcin) Date: Tue, 25 Aug 2009 11:27:45 +0200 Subject: [ns] Strange behavior of TimerHandler. Message-ID: <1b4bd48a0908250227o3bbd59eas8795df9fc31c18aa@mail.gmail.com> Hi, I'm creating new modified TCP agent that need to make some actions every few seconds. I've implemented new timer to do that - i used RtxTimer from tcp.cc like a base example so implementation should be correct. Nevertheless something strange happens. Even if function that is triggered by timer is empty, it changes result of the simulation. When i run the simulation a few times with the same parameters, results are different (congestions in links). Since this is simulation this should not happen, right ? Please let me know if scheduling of timer can change work of agent like that ? Ps. Does anyone know why in ns-documentation example virtual expire function returns double ? Is seems to not work since base type returns void. Thanks, Marcin Mazurek From ooluwadiya at yahoo.com Tue Aug 25 08:45:01 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Tue, 25 Aug 2009 08:45:01 -0700 (PDT) Subject: [ns] simulation stops before stop time configured Message-ID: <360558.42731.qm@web35502.mail.mud.yahoo.com> hello all, my mipv6 simulation finally works but it stops 10s into simulation instead of 130s i configured. do u know what could be wrong. below is my script. # Basic Mobile IPv6 example without using ns-topoman # Needs proc defined in file proc-mipv6-config.tcl # ====================================================================== # Define options # ====================================================================== set opt(chan)?? Channel/WirelessChannel??????? ;# channel type set opt(prop)?? Propagation/TwoRayGround?????? ;# radio-propagation model set opt(netif)? Phy/WirelessPhy??????????????? ;# network interface type set opt(mac)??? Mac/802_11???????????????????? ;# MAC type set opt(ifq)??? Queue/DropTail/PriQueue??????? ;# interface queue type set opt(ll)???? LL???????????????????????????? ;# link layer type set opt(ant)??? Antenna/OmniAntenna??????????? ;# antenna model set opt(ifqlen)???????? 50???????????????????? ;# max packet in ifq set opt(nn)???????????? 1????????????????????? ;# number of mobilenodes set opt(adhocRouting)?? DSDV?????????????????? ;# routing protocol set opt(cp)???? ""???????????????????????????? ;# cp file not used set opt(sc)???? ""???????????????????????????? ;# node movement file. set opt(x)????? 1500??????????????????????????? ;# x coordinate of topology set opt(y)????? 1500??????????????????????????? ;# y coordinate of topology set opt(seed)?? 0.0??????????????????????????? ;# random seed set opt(stop)?? 130????????????????????????? ;# time to stop simulation set opt(ftp1-start)????? 10.0 set num_wired_nodes????? 4 #set num_bs_nodes?????? 4? ; this is not really used here. # ====================================================================== Agent/MIPv6/MN set bs_forwarding_???? 0?????? ; # 1 if forwarding from previous BS ################################################################ proc log-mn-movement_no_topo { } { ? global logtimer ns ? Class LogTimer -superclass Timer ? LogTimer instproc timeout {} { ??? ?global mobile_ ??????? $mobile_ log-movement ??????? $self sched 1 ? } ? set logtimer [new LogTimer] ? $logtimer sched 1? } ################################################################ # Create Topology ################################################################ proc create-my-topo {} { ? global ns opt topo mobile_ cn_ mnn_nodes_ ? # Create and define topography ? set topo??????? [new Topography] ? #?? set prop??????? [new $opt(prop)] ? #?? $prop topography $topo ? $topo load_flatgrid 1500 1500 ? # god is a necessary object when wireless is used ? # set to a value equal to the number of mobile nodes ? create-god 5 ?# Call node-config ? $ns node-config \ ??????? -addressType hierarchical \ ??? ?-agentTrace ON \ ??? ?-routerTrace ON ? # Set NS Addressing ? AddrParams set domain_num_ 5 ? AddrParams set cluster_num_ {4 1 1 1 1 } ? AddrParams set nodes_num_ {1 1 1 1 2 1 1 1} ? # Create Nodes ? set cn_ [create-router 0.0.0] ? set router1_ [create-router 1.0.0] ? set router2_ [create-router 2.0.0] ? set router3_ [create-router 3.0.0] ? set bs1_ [create-base-station 2.1.0 2.0.0 250 1050 0] ? set bs2_ [create-base-station 2.2.0 2.0.0 1050 600 0] ? set bs3_ [create-base-station 3.1.0 3.0.0 950 300 0] ? set bs4_ [create-base-station 3.2.0 3.0.0 250 300 0] ? set mobile_ [create-mobile 2.1.1 2.0.0 250 1000 0 1 0.01] ? $bs1_ random-motion 0 ? $bs2_ random-motion 0 ? $bs3_ random-motion 0 ? $bs4_ random-motion 0 ? ?# Create Links ? $ns duplex-link $cn_ $router1_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router2_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router3_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs1_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs2_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs3_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs4_ 100Mb 2ms DropTail ? ?$ns duplex-link-op $cn_ $router1_ orient down ? $ns duplex-link-op $router1_ $router2_ orient left-down ? $ns duplex-link-op $router1_ $router3_ orient right-down ? $ns duplex-link-op $router2_ $bs1_ orient left-down ? $ns duplex-link-op $router2_ $bs2_ orient right-down ? $ns duplex-link-op $router3_ $bs3_ orient down ? $ns duplex-link-op $router3_ $bs4_ orient right-down ? ? display_ns_addr_domain } ################################################################ # End of Simulation ################################################################ proc finish { } { ? global tracef ns namf opt mobile_ cn_ ? ? puts "Simulation finished" ? # Dump the Binding Update List of MN and Binding Cache of HA ? [[$mobile_ set ha_] set regagent_] dump ? [$cn_ set regagent_] dump ? [$mobile_ set regagent_] dump ? $ns flush-trace ? flush $tracef ? close $tracef ? close $namf ? #puts "running nam with $opt(namfile) ... " ? #exec nam $opt(namfile) & ? exit 0 } ################################################################ # Main ################################################################ proc main { } { ?? global opt ns TOPOM namf n tracef mobile_ cn_ ?? source ../../tcl/mobility/timer.tcl ?? set NAMF out.nam ?? set TRACEF out.tr ?? set INFOF out.info ?? set opt(mactrace) ON ?? set opt(NAM) 1 ?? set opt(namfile) $NAMF ?? set opt(stop) 130 ?? set opt(tracefile) $TRACEF ?? ?? #>--------------- Extract options from command line ---------------< ?? #Getopt?? ?; # Get option from the command line?? ? ?? #DisplayCommandLine ?? ?? #>---------------------- Simulator Settings ----------------------< ?? set ns [new Simulator] ?? #>------------------------ Open trace files ----------------------< ?? exec rm -f $opt(tracefile) ?? set tracef [open $opt(tracefile) w] ?? #... dump the file ?? $ns trace-all $tracef ??? ?? set namf [open $opt(namfile) w] ?? $ns namtrace-all $namf ?? #>------------- Protocol and Topology Settings -------------------< ?? create-my-topo ?? log-mn-movement_no_topo ????? ?? set-cbr ?? # set-ping-int 0.1 $cn_ $mobile_ 10 $opt(stop) ?? ?? # MH starts to move towards FA1 ?? ?? ?$ns at 10.000000000000 "$mobile_ setdest 950.000000000000????? ??? ?1000.000000000000 20.000000000000" ?? # MH move from FA1 towards FA2 ??? $ns at 50.000000000000 "$mobile_ setdest 950.000000000000 ?? ?350.000000000000 20.000000000000" ?? # MH move from FA2 towards FA3 ??? $ns at 85.000000000000 "$mobile_ setdest 250.000000000000 ?? ?350.000000000000 20.000000000000" ?? #>----------------------- Run Simulation -------------------------< ?? $ns at $opt(stop) "finish" ?? $ns run ?? $ns dump-topology $namf ?? close $namf ?? #puts "running nam with $opt(namfile) ... " ?? #exec nam $opt(namfile) & } proc set-cbr { } { ?? global ns cn_ mobile_ ?? set tcp1 [new Agent/TCP] ?? $ns attach-agent $cn_ $tcp1 ?? ?? set dst [new Agent/TCPSink] ?? $ns attach-agent $mobile_ $dst ?? $ns connect $tcp1 $dst ?? set ftp1 [new Application/FTP] ?? $ftp1 set packetSize_ 1040 ?? $ftp1 set rate_ 100k ?? $ftp1 set interval_ 0.05 ?? $ftp1 attach-agent $tcp1 ??? $ns at 10.0 "$ftp1 start" } main ? From forenmail at yahoo.de Tue Aug 25 09:45:27 2009 From: forenmail at yahoo.de (Tom G) Date: Tue, 25 Aug 2009 16:45:27 +0000 (GMT) Subject: [ns] problems with flow_id in AWK-Script Message-ID: <907151.47059.qm@web24710.mail.ird.yahoo.com> Hi ns2 users, I created my AWK-Script by copying a lof from other scrips. So I created propably my own faiture. It would be nice if someone could show me my mistake. I get datas like this: ... + 0.2 0 2 ra 210 ------- 0 0.0 4.0 -1 8 - 0.2 0 2 ra 210 ------- 0 0.0 4.0 -1 8 + 0.2 0 2 ra 210 ------- 0 0.0 4.0 -1 9 + 0.2 1 2 cbr 1000 ------- 2 1.0 5.0 0 10 - 0.2 1 2 cbr 1000 ------- 2 1.0 5.0 0 10 + 0.2 1 2 cbr 1000 ------- 2 1.0 5.0 1 11 ... and here is my AKW Script following, with this I like to calculate the Delay of the CBR Data If I set " if ( action == "r" && flow_id == 2 ) " to " if ( action == "r" && flow_id == 0 ) " It works without problems by calculating delay for the RealAudio Applikation. BEGIN { highest_packet_id = 0; highest_packet_duration = 0; lowest_packet_duration = 9; hpd = 0; lpd = 0; apd = 0; i = 0; } { action = $1; time = $2; from = $3; to = $4; type = $5; pktsize = $6; flow_id = $8; src = $9; dst = $10; seq_no = $11; packet_id = $12; if ( packet_id > highest_packet_id ) highest_packet_id = packet_id; if ( start_time[packet_id] == 0 ) start_time[packet_id] = time; if ( action == "r" && flow_id == 2 ) { end_time[packet_id] = time; } else { end_time[packet_id] = -1; } } END { #printf("packet_id | type | start | end | packet_duration\n") for ( packet_id = 0; packet_id <= highest_packet_id; packet_id++ ) { start = start_time[packet_id]; end = end_time[packet_id]; packet_duration = end - start; if ( packet_duration > highest_packet_duration ) highest_packet_duration = packet_duration; if ( lowest_packet_duration > packet_duration && packet_duration > 0 ) lowest_packet_duration = packet_duration; hpd = highest_packet_duration;# / i; lpd = lowest_packet_duration;# / i; apd = packet_duration;# / i; } if (start < end ) printf("%f %f %f\n", hpd, lpd, apd ); } thanks for helt best regards Tom From alihussein2008 at yahoo.com Tue Aug 25 14:09:39 2009 From: alihussein2008 at yahoo.com (Ali Al-Shra'ah.) Date: Tue, 25 Aug 2009 14:09:39 -0700 (PDT) Subject: [ns] OldSim class err Message-ID: <816734.70862.qm@web52305.mail.re2.yahoo.com> Hi all, Whenever I try to compile a tcl script, I get the following error message: % ns example1.tcl "error when calling class OldSim: example1.tcl" Can any one tell me how to avoid / prevent this? Regards Ali Hussein From mrbalador at yahoo.com Tue Aug 25 22:13:03 2009 From: mrbalador at yahoo.com (ali bala) Date: Tue, 25 Aug 2009 22:13:03 -0700 (PDT) Subject: [ns] can't read "basicrate_" :no such variable Message-ID: <306830.52711.qm@web45102.mail.sp1.yahoo.com> hi dear i add 802.11e tkn and ns start to run the sample but middle of runnig the multi_udpflows.tcl(the example that exist in the 802_11e folder for testing) i see the new error : ns:mac/802_11e set basicrate_:can't read "basicrate_" :no such?variable (object set line1) invoked from within "mac/802_11e set basicrate_" ?mr.ali.balador homepage:www.balador.org From forenmail at yahoo.de Wed Aug 26 01:31:34 2009 From: forenmail at yahoo.de (Tom G) Date: Wed, 26 Aug 2009 08:31:34 +0000 (GMT) Subject: [ns] calculate Bandwidth Message-ID: <85801.4727.qm@web24713.mail.ird.yahoo.com> Hey all, Ich have to calculate with a AWK-Skript the entire bandwidth of my simulation, also the bandwith of each link / node I have no idea how to realize this. best whishes, Tom From ooluwadiya at yahoo.com Wed Aug 26 05:00:14 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Wed, 26 Aug 2009 05:00:14 -0700 (PDT) Subject: [ns] mobile node not moving during simulation of mipv6 Message-ID: <711637.50348.qm@web35503.mail.mud.yahoo.com> hello, sorry to be a bother again. i solved all the previous problems mentioned earlier.BUT i have a final problem on my simulation. i configured my mobile node to move from bs1 to bs2 to bs3 to bs4 BUT it doesnt move. i have tried all i can but no luck.please does any one know what could be wrong.below is my script. # Basic Mobile IPv6 example without using ns-topoman # Needs proc defined in file proc-mipv6-config.tcl # ====================================================================== # Define options # ====================================================================== set opt(chan)?? Channel/WirelessChannel??????? ;# channel type set opt(prop)?? Propagation/TwoRayGround?????? ;# radio-propagation model set opt(netif)? Phy/WirelessPhy??????????????? ;# network interface type set opt(mac)??? Mac/802_11???????????????????? ;# MAC type set opt(ifq)??? Queue/DropTail/PriQueue??????? ;# interface queue type set opt(ll)???? LL???????????????????????????? ;# link layer type set opt(ant)??? Antenna/OmniAntenna??????????? ;# antenna model set opt(ifqlen)???????? 50???????????????????? ;# max packet in ifq set opt(nn)???????????? 1????????????????????? ;# number of mobilenodes set opt(adhocRouting)?? DSDV?????????????????? ;# routing protocol set opt(cp)???? ""???????????????????????????? ;# cp file not used set opt(sc)???? ""???????????????????????????? ;# node movement file. set opt(x)????? 1500??????????????????????????? ;# x coordinate of topology set opt(y)????? 1500??????????????????????????? ;# y coordinate of topology set opt(seed)?? 0.0??????????????????????????? ;# random seed set opt(stop)?? 130????????????????????????? ;# time to stop simulation set opt(ftp1-start)????? 10.0 set num_wired_nodes????? 4 #set num_bs_nodes?????? 4? ; this is not really used here. # ====================================================================== Agent/MIPv6/MN set bs_forwarding_???? 0?????? ; # 1 if forwarding from previous BS ################################################################ proc log-mn-movement_no_topo { } { ? global logtimer ns ? Class LogTimer -superclass Timer ? LogTimer instproc timeout {} { ???? global mobile_ ??????? $mobile_ log-movement ??????? $self sched 1 ? } ? set logtimer [new LogTimer] ? $logtimer sched 1? } ################################################################ # Create Topology ################################################################ proc create-my-topo {} { ? global ns opt topo mobile_ cn_ mnn_nodes_ ? # Create and define topography ? set topo??????? [new Topography] ? #?? set prop??????? [new $opt(prop)] ? #?? $prop topography $topo ? $topo load_flatgrid 1500 1500 ? # god is a necessary object when wireless is used ? # set to a value equal to the number of mobile nodes ? create-god 5 ?# Call node-config ? $ns node-config \ ??????? -addressType hierarchical \ ???? -agentTrace ON \ ???? -routerTrace ON ? # Set NS Addressing ? AddrParams set domain_num_ 5 ? AddrParams set cluster_num_ {4 1 1 1 1 } ? AddrParams set nodes_num_ {1 1 1 1 2 1 1 1} ? # Create Nodes ? set cn_ [create-router 0.0.0] ? set router1_ [create-router 1.0.0] ? set router2_ [create-router 2.0.0] ? set router3_ [create-router 3.0.0] ? set bs1_ [create-base-station 2.1.0 2.0.0 250 1050 0] ? set bs2_ [create-base-station 2.2.0 2.0.0 1050 600 0] ? set bs3_ [create-base-station 3.1.0 3.0.0 950 300 0] ? set bs4_ [create-base-station 3.2.0 3.0.0 250 300 0] ? set mobile_ [create-mobile 2.1.1 2.1.0 250 1000 0 1 0.01] ? $bs1_ random-motion 0 ? $bs2_ random-motion 0 ? $bs3_ random-motion 0 ? $bs4_ random-motion 0 ? ?# Create Links ? $ns duplex-link $cn_ $router1_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router2_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router3_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs1_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs2_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs3_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs4_ 100Mb 2ms DropTail ? ?$ns duplex-link-op $cn_ $router1_ orient down ? $ns duplex-link-op $router1_ $router2_ orient left-down ? $ns duplex-link-op $router1_ $router3_ orient right-down ? $ns duplex-link-op $router2_ $bs1_ orient left-down ? $ns duplex-link-op $router2_ $bs2_ orient right-down ? $ns duplex-link-op $router3_ $bs3_ orient down ? $ns duplex-link-op $router3_ $bs4_ orient right-down ? ? display_ns_addr_domain } ################################################################ # End of Simulation ################################################################ proc finish { } { ? global tracef ns namf opt mobile_ cn_ ? ? puts "Simulation finished" ? # Dump the Binding Update List of MN and Binding Cache of HA ? [[$mobile_ set ha_] set regagent_] dump ? [$cn_ set regagent_] dump ? [$mobile_ set regagent_] dump ? $ns flush-trace ? flush $tracef ? close $tracef ? close $namf ? #puts "running nam with $opt(namfile) ... " ? #exec nam $opt(namfile) & ? exit 0 } ################################################################ # Main ################################################################ proc main { } { ?? global opt ns TOPOM namf n tracef mobile_ cn_ ?? source ../../tcl/mobility/timer.tcl ?? set NAMF out.nam ?? set TRACEF out.tr ?? set INFOF out.info ?? set opt(mactrace) ON ?? set opt(NAM) 1 ?? set opt(namfile) $NAMF ?? set opt(stop) 130 ?? set opt(tracefile) $TRACEF ?? ?? #>--------------- Extract options from command line ---------------< ?? #Getopt??? ; # Get option from the command line??? ?? #DisplayCommandLine ?? ?? #>---------------------- Simulator Settings ----------------------< ?? set ns [new Simulator] ?? # Global mobility needs special settings: ?? # normal interface (ALL) or dual (DUAL) ?? if { [info exists opt(global)] && $opt(global) == "ON" } { ??? $ns node-config -net-iface-type "DUAL" ?? } ?? ?? #>------------------------ Open trace files ----------------------< ?? exec rm -f $opt(tracefile) ?? set tracef [open $opt(tracefile) w] ?? #... dump the file ?? $ns use-newtrace ?? $ns trace-all $tracef ??? ?? set namf [open $opt(namfile) w] ?? $ns namtrace-all $namf ?? #>------------- Protocol and Topology Settings -------------------< ?? create-my-topo ?? log-mn-movement_no_topo ????? ?? # MH starts to move towards FA1 ?? ??? $ns at 10.000000000000 "$mobile_ setdest 950.000000000000?????? ??? 1000.000000000000 20.000000000000" ?? # MH move from FA1 towards FA2 ??? $ns at 50.000000000000 "$mobile_ setdest 950.000000000000 ??? 350.000000000000 20.000000000000" ?? # MH move from FA2 towards FA3 ??? $ns at 85.000000000000 "$mobile_ setdest 250.000000000000 ??? 350.000000000000 20.000000000000" ?? #>----------------------- Run Simulation -------------------------< ?? $ns at $opt(stop) "finish" ?? $ns run ?? $ns dump-topology $namf ?? close $namf ?? #puts "running nam with $opt(namfile) ... " ?? #exec nam $opt(namfile) & } proc set-cbr { } { ?? global ns cn_ mobile_ ?? set tcp1 [new Agent/TCP] ?? $ns attach-agent $cn_ $tcp1 ?? ?? set dst [new Agent/TCPSink] ?? $ns attach-agent $mobile_ $dst ?? $ns connect $tcp1 $dst ?? set ftp1 [new Application/FTP] ?? $ftp1 set packetSize_ 1040 ?? $ftp1 set rate_ 100k ?? $ftp1 set interval_ 0.05 ?? $ftp1 attach-agent $tcp1 ??? $ns at 10.0 "$ftp1 start" } main From najwa61_ahmad at hotmail.com Wed Aug 26 05:11:49 2009 From: najwa61_ahmad at hotmail.com (najwa al_mawajdeh) Date: Wed, 26 Aug 2009 15:11:49 +0300 Subject: [ns] the number if sentpackets Message-ID: hi all, im trying to increase the number if sent packets per second in the scenario but after specific number of packets the results stay the same? what is the problem? Najwa _________________________________________________________________ With Windows Live, you can organize, edit, and share your photos. http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx From ooluwadiya at yahoo.com Wed Aug 26 15:23:55 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Wed, 26 Aug 2009 15:23:55 -0700 (PDT) Subject: [ns] interpretation of mipv6 set bs_ and set router_ commands Message-ID: <751752.8700.qm@web35503.mail.mud.yahoo.com> hello again, i think a better way to ask the question is what does these lines mean especially the set bs_ commands. set cn_ [create-router 0.0.0] ? set router1_ [create-router 0.1.0] ? set router2_ [create-router 0.2.0] ? set router3_ [create-router 0.3.0] ? set bs1_ [create-base-station 1.0.0 0.2.0 250 1050 0] ? set bs2_ [create-base-station 2.0.0 0.2.0 950 1050 0] ? set bs3_ [create-base-station 3.0.0 0.3.0 950 300 0] ? set bs4_ [create-base-station 4.0.0 0.3.0 250 300 0] ? set mobile_ [create-mobile 1.0.1 1.0.0 250 1000 0 1 0.01] --- On Wed, 8/26/09, Oladapo Oluwadiya wrote: From: Oladapo Oluwadiya Subject: mobile node not moving during simulation of mipv6 To: ns-users at ISI.EDU Date: Wednesday, August 26, 2009, 8:00 AM hello, sorry to be a bother again. i solved all the previous problems mentioned earlier.BUT i have a final problem on my simulation. i configured my mobile node to move from bs1 to bs2 to bs3 to bs4 BUT it doesnt move. i have tried all i can but no luck.please does any one know what could be wrong.below is my script. # Basic Mobile IPv6 example without using ns-topoman # Needs proc defined in file proc-mipv6-config.tcl # ====================================================================== # Define options # ====================================================================== set opt(chan)?? Channel/WirelessChannel??????? ;# channel type set opt(prop)?? Propagation/TwoRayGround?????? ;# radio-propagation model set opt(netif)? Phy/WirelessPhy??????????????? ;# network interface type set opt(mac)??? Mac/802_11???????????????????? ;# MAC type set opt(ifq)??? Queue/DropTail/PriQueue??????? ;# interface queue type set opt(ll)???? LL???????????????????????????? ;# link layer type set opt(ant)??? Antenna/OmniAntenna??????????? ;# antenna model set opt(ifqlen)???????? 50???????????????????? ;# max packet in ifq set opt(nn)???????????? 1????????????????????? ;# number of mobilenodes set opt(adhocRouting)?? DSDV?????????????????? ;# routing protocol set opt(cp)???? ""???????????????????????????? ;# cp file not used set opt(sc)???? ""???????????????????????????? ;# node movement file. set opt(x)????? 1500??????????????????????????? ;# x coordinate of topology set opt(y)????? 1500??????????????????????????? ;# y coordinate of topology set opt(seed)?? 0.0??????????????????????????? ;# random seed set opt(stop)?? 130????????????????????????? ;# time to stop simulation set opt(ftp1-start)????? 10.0 set num_wired_nodes????? 4 #set num_bs_nodes?????? 4? ; this is not really used here. # ====================================================================== Agent/MIPv6/MN set bs_forwarding_???? 0?????? ; # 1 if forwarding from previous BS ################################################################ proc log-mn-movement_no_topo { } { ? global logtimer ns ? Class LogTimer -superclass Timer ? LogTimer instproc timeout {} { ???? global mobile_ ??????? $mobile_ log-movement ??????? $self sched 1 ? } ? set logtimer [new LogTimer] ? $logtimer sched 1? } ################################################################ # Create Topology ################################################################ proc create-my-topo {} { ? global ns opt topo mobile_ cn_ mnn_nodes_ ? # Create and define topography ? set topo??????? [new Topography] ? #?? set prop??????? [new $opt(prop)] ? #?? $prop topography $topo ? $topo load_flatgrid 1500 1500 ? # god is a necessary object when wireless is used ? # set to a value equal to the number of mobile nodes ? create-god 5 ?# Call node-config ? $ns node-config \ ??????? -addressType hierarchical \ ???? -agentTrace ON \ ???? -routerTrace ON ? # Set NS Addressing ? AddrParams set domain_num_ 5 ? AddrParams set cluster_num_ {4 1 1 1 1 } ? AddrParams set nodes_num_ {1 1 1 1 2 1 1 1} ? # Create Nodes ? set cn_ [create-router 0.0.0] ? set router1_ [create-router 1.0.0] ? set router2_ [create-router 2.0.0] ? set router3_ [create-router 3.0.0] ? set bs1_ [create-base-station 2.1.0 2.0.0 250 1050 0] ? set bs2_ [create-base-station 2.2.0 2.0.0 1050 600 0] ? set bs3_ [create-base-station 3.1.0 3.0.0 950 300 0] ? set bs4_ [create-base-station 3.2.0 3.0.0 250 300 0] ? set mobile_ [create-mobile 2.1.1 2.1.0 250 1000 0 1 0.01] ? $bs1_ random-motion 0 ? $bs2_ random-motion 0 ? $bs3_ random-motion 0 ? $bs4_ random-motion 0 ? ?# Create Links ? $ns duplex-link $cn_ $router1_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router2_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router3_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs1_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs2_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs3_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs4_ 100Mb 2ms DropTail ? ?$ns duplex-link-op $cn_ $router1_ orient down ? $ns duplex-link-op $router1_ $router2_ orient left-down ? $ns duplex-link-op $router1_ $router3_ orient right-down ? $ns duplex-link-op $router2_ $bs1_ orient left-down ? $ns duplex-link-op $router2_ $bs2_ orient right-down ? $ns duplex-link-op $router3_ $bs3_ orient down ? $ns duplex-link-op $router3_ $bs4_ orient right-down ? ? display_ns_addr_domain } ################################################################ # End of Simulation ################################################################ proc finish { } { ? global tracef ns namf opt mobile_ cn_ ? ? puts "Simulation finished" ? # Dump the Binding Update List of MN and Binding Cache of HA ? [[$mobile_ set ha_] set regagent_] dump ? [$cn_ set regagent_] dump ? [$mobile_ set regagent_] dump ? $ns flush-trace ? flush $tracef ? close $tracef ? close $namf ? #puts "running nam with $opt(namfile) ... " ? #exec nam $opt(namfile) & ? exit 0 } ################################################################ # Main ################################################################ proc main { } { ?? global opt ns TOPOM namf n tracef mobile_ cn_ ?? source ../../tcl/mobility/timer.tcl ?? set NAMF out.nam ?? set TRACEF out.tr ?? set INFOF out.info ?? set opt(mactrace) ON ?? set opt(NAM) 1 ?? set opt(namfile) $NAMF ?? set opt(stop) 130 ?? set opt(tracefile) $TRACEF ?? ?? #>--------------- Extract options from command line ---------------< ?? #Getopt??? ; # Get option from the command line??? ?? #DisplayCommandLine ?? ?? #>---------------------- Simulator Settings ----------------------< ?? set ns [new Simulator] ?? # Global mobility needs special settings: ?? # normal interface (ALL) or dual (DUAL) ?? if { [info exists opt(global)] && $opt(global) == "ON" } { ??? $ns node-config -net-iface-type "DUAL" ?? } ?? ?? #>------------------------ Open trace files ----------------------< ?? exec rm -f $opt(tracefile) ?? set tracef [open $opt(tracefile) w] ?? #... dump the file ?? $ns use-newtrace ?? $ns trace-all $tracef ??? ?? set namf [open $opt(namfile) w] ?? $ns namtrace-all $namf ?? #>------------- Protocol and Topology Settings -------------------< ?? create-my-topo ?? log-mn-movement_no_topo ????? ?? # MH starts to move towards FA1 ?? ??? $ns at 10.000000000000 "$mobile_ setdest 950.000000000000?????? ??? 1000.000000000000 20.000000000000" ?? # MH move from FA1 towards FA2 ??? $ns at 50.000000000000 "$mobile_ setdest 950.000000000000 ??? 350.000000000000 20.000000000000" ?? # MH move from FA2 towards FA3 ??? $ns at 85.000000000000 "$mobile_ setdest 250.000000000000 ??? 350.000000000000 20.000000000000" ?? #>----------------------- Run Simulation -------------------------< ?? $ns at $opt(stop) "finish" ?? $ns run ?? $ns dump-topology $namf ?? close $namf ?? #puts "running nam with $opt(namfile) ... " ?? #exec nam $opt(namfile) & } proc set-cbr { } { ?? global ns cn_ mobile_ ?? set tcp1 [new Agent/TCP] ?? $ns attach-agent $cn_ $tcp1 ?? ?? set dst [new Agent/TCPSink] ?? $ns attach-agent $mobile_ $dst ?? $ns connect $tcp1 $dst ?? set ftp1 [new Application/FTP] ?? $ftp1 set packetSize_ 1040 ?? $ftp1 set rate_ 100k ?? $ftp1 set interval_ 0.05 ?? $ftp1 attach-agent $tcp1 ??? $ns at 10.0 "$ftp1 start" } main From oliver.goebel at rwth-aachen.de Thu Aug 27 05:10:52 2009 From: oliver.goebel at rwth-aachen.de (=?ISO-8859-15?Q?Oliver_G=F6bel?=) Date: Thu, 27 Aug 2009 14:10:52 +0200 Subject: [ns] Introduction for working with wireless scenarios Message-ID: <4A9677CC.9090209@rwth-aachen.de> Hello everybody, I need to deal with wireless scenarios in ns2. Until now, I only got a small introduction to wired scenarios, so I am looking for a good introduction/tutorial etc. giving a wireless-introduction for novices. The Marc Greis' tutorial was told me to be outdated. Can anyone help? Thank in advance, O. From ooluwadiya at yahoo.com Thu Aug 27 08:15:59 2009 From: ooluwadiya at yahoo.com (Oladapo Oluwadiya) Date: Thu, 27 Aug 2009 08:15:59 -0700 (PDT) Subject: [ns] global mobility setting for mobile ipv6 simulation Message-ID: <796452.78947.qm@web35501.mail.mud.yahoo.com> does any one know if i need to define any special setting for global mobility in mipv6 simulation. my mobile node isnt moving from its home bs. or does anyone know any other reason why # Basic Mobile IPv6 example without using ns-topoman # Needs proc defined in file proc-mipv6-config.tcl # ====================================================================== # Define options # ====================================================================== set opt(chan)?? Channel/WirelessChannel??????? ;# channel type set opt(prop)?? Propagation/TwoRayGround?????? ;# radio-propagation model set opt(netif)? Phy/WirelessPhy??????????????? ;# network interface type set opt(mac)??? Mac/802_11???????????????????? ;# MAC type set opt(ifq)??? Queue/DropTail/PriQueue??????? ;# interface queue type set opt(ll)???? LL???????????????????????????? ;# link layer type set opt(ant)??? Antenna/OmniAntenna??????????? ;# antenna model set opt(ifqlen)???????? 50???????????????????? ;# max packet in ifq set opt(nn)???????????? 1????????????????????? ;# number of mobilenodes set opt(adhocRouting)?? DSDV?????????????????? ;# routing protocol set opt(cp)???? ""???????????????????????????? ;# cp file not used set opt(sc)???? ""???????????????????????????? ;# node movement file. set opt(x)????? 1500??????????????????????????? ;# x coordinate of topology set opt(y)????? 1500??????????????????????????? ;# y coordinate of topology set opt(seed)?? 0.0??????????????????????????? ;# random seed set opt(stop)?? 130????????????????????????? ;# time to stop simulation set opt(ftp1-start)????? 10.0 set num_wired_nodes????? 4 #set num_bs_nodes?????? 4? ; this is not really used here. # ====================================================================== Agent/MIPv6/MN set bs_forwarding_???? 0?????? ; # 1 if forwarding from previous BS ################################################################ proc log-mn-movement_no_topo { } { ? global logtimer ns ? Class LogTimer -superclass Timer ? LogTimer instproc timeout {} { ???? global mobile_ ??????? $mobile_ log-movement ??????? $self sched 1 ? } ? set logtimer [new LogTimer] ? $logtimer sched 1? } ################################################################ # Create Topology ################################################################ proc create-my-topo {} { ? global ns opt topo mobile_ cn_ mnn_nodes_ ? # Create and define topography ? set topo??????? [new Topography] ? #?? set prop??????? [new $opt(prop)] ? #?? $prop topography $topo ? $topo load_flatgrid 1500 1500 ? # god is a necessary object when wireless is used ? # set to a value equal to the number of mobile nodes ? create-god 5 ?# Call node-config ? $ns node-config \ ??????? -addressType hierarchical \ ???? -agentTrace ON \ ???? -routerTrace ON ? # set up for hierarchical routing $ns node-config -addressType hierarchical AddrParams set domain_num_ 5?????????? ;# number of domains lappend cluster_num 4 1 1 1 1????????????? ;# number of clusters in each domain AddrParams set cluster_num_ $cluster_num lappend eilastlevel 1 1 1 1 2 1 1 1??????????? ;# number of nodes in each cluster AddrParams set nodes_num_ $eilastlevel ;# of each domain ? # Create Nodes ? set cn_ [create-router 0.0.0] ? set router1_ [create-router 0.1.0] ? set router2_ [create-router 0.2.0] ? set router3_ [create-router 0.3.0] ? set bs1_ [create-base-station 1.0.0 0.2.0 250 1050 0] ? set bs2_ [create-base-station 2.0.0 0.2.0 950 1050 0] ? set bs3_ [create-base-station 3.0.0 0.3.0 950 300 0] ? set bs4_ [create-base-station 4.0.0 0.3.0 250 300 0] ? set mobile_ [create-mobile 1.0.1 1.0.0 250 1000 0 0 20] ? $bs1_ random-motion 0 ? $bs2_ random-motion 0 ? $bs3_ random-motion 0 ? $bs4_ random-motion 0 ?? # initial position ??? $ns at 0.0001 "$mobile_ setdest 250.0 1000.0 100.0" ?? # MH starts to move towards FA1 ?? ??? $ns at 10.000000000000 "$mobile_ setdest 950.000000000000 1000.000000000000 20.000000000000" ?? ??? $ns at 20.000000000000 "$mobile_ setdest 950.000000000000 1000.000000000000 20.000000000000" ?? ??? $ns at 30.000000000000 "$mobile_ setdest 950.000000000000 1000.000000000000 20.000000000000" ?? ??? $ns at 40.000000000000 "$mobile_ setdest 950.000000000000 1000.000000000000 20.000000000000" ?? # MH move from FA1 towards FA2 ??? $ns at 50.000000000000 "$mobile_ setdest 950.000000000000 350.000000000000 20.000000000000" ??? $ns at 60.000000000000 "$mobile_ setdest 950.000000000000 350.000000000000 20.000000000000" ??? $ns at 70.000000000000 "$mobile_ setdest 950.000000000000 350.000000000000 20.000000000000" ??? $ns at 80.000000000000 "$mobile_ setdest 950.000000000000 350.000000000000 20.000000000000" ?? # MH move from FA2 towards FA3 ??? $ns at 85.000000000000 "$mobile_ setdest 250.000000000000 350.000000000000 20.000000000000" ??? $ns at 95.000000000000 "$mobile_ setdest 250.000000000000 350.000000000000 20.000000000000" ??? $ns at 105.000000000000 "$mobile_ setdest 250.000000000000 350.000000000000 20.000000000000" ??? $ns at 115.000000000000 "$mobile_ setdest 250.000000000000 350.000000000000 20.000000000000" ??? $ns at 125.000000000000 "$mobile_ setdest 250.000000000000 350.000000000000 20.000000000000" ?# Create Links ? $ns duplex-link $cn_ $router1_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router2_ 100Mb 2ms DropTail ? $ns duplex-link $router1_ $router3_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs1_ 100Mb 2ms DropTail ? $ns duplex-link $router2_ $bs2_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs3_ 100Mb 2ms DropTail ? $ns duplex-link $router3_ $bs4_ 100Mb 2ms DropTail ? ?$ns duplex-link-op $cn_ $router1_ orient down ? $ns duplex-link-op $router1_ $router2_ orient left-down ? $ns duplex-link-op $router1_ $router3_ orient right-down ? $ns duplex-link-op $router2_ $bs1_ orient left-down ? $ns duplex-link-op $router2_ $bs2_ orient right-down ? $ns duplex-link-op $router3_ $bs3_ orient down ? $ns duplex-link-op $router3_ $bs4_ orient right-down ? ? display_ns_addr_domain } ################################################################ # End of Simulation ################################################################ proc finish { } { ? global tracef ns namf opt mobile_ cn_ ? ? puts "Simulation finished" ? # Dump the Binding Update List of MN and Binding Cache of HA ? [[$mobile_ set ha_] set regagent_] dump ? [$cn_ set regagent_] dump ? [$mobile_ set regagent_] dump ? $ns flush-trace ? flush $tracef ? close $tracef ? close $namf ? #puts "running nam with $opt(namfile) ... " ? #exec nam $opt(namfile) & ? exit 0 } ################################################################ # Main ################################################################ proc main { } { ?? global opt ns TOPOM namf n tracef mobile_ cn_ ?? source ../../tcl/mobility/timer.tcl ?? set NAMF out.nam ?? set TRACEF out.tr ?? set INFOF out.info ?? set opt(mactrace) ON ?? set opt(NAM) 1 ?? set opt(namfile) $NAMF ?? set opt(stop) 130 ?? set opt(tracefile) $TRACEF ?? ?? #>--------------- Extract options from command line ---------------< ?? #Getopt??? ; # Get option from the command line??? ?? #DisplayCommandLine ?? ?? #>---------------------- Simulator Settings ----------------------< ?? set ns [new Simulator] ?? # Global mobility needs special settings: ?? # normal interface (ALL) or dual (DUAL) ?? if { [info exists opt(global)] && $opt(global) == "ON" } { ??? $ns node-config -net-iface-type "DUAL" ?? } ?? ?? #>------------------------ Open trace files ----------------------< ?? exec rm -f $opt(tracefile) ?? set tracef [open $opt(tracefile) w] ?? #... dump the file ?? $ns use-newtrace ?? $ns trace-all $tracef ??? ?? set namf [open $opt(namfile) w] ?? $ns namtrace-all $namf ?? #>------------- Protocol and Topology Settings -------------------< ?? create-my-topo ?? log-mn-movement_no_topo ????? ? ?? #>----------------------- Run Simulation -------------------------< ?? $ns at $opt(stop) "finish" ?? $ns run ?? $ns dump-topology $namf ?? close $namf ?? #puts "running nam with $opt(namfile) ... " ?? #exec nam $opt(namfile) & } proc set-cbr { } { ?? global ns cn_ mobile_ ?? set tcp1 [new Agent/TCP] ?? $ns attach-agent $cn_ $tcp1 ?? ?? set dst [new Agent/TCPSink] ?? $ns attach-agent $mobile_ $dst ?? $ns connect $tcp1 $dst ?? set ftp1 [new Application/FTP] ?? $ftp1 set packetSize_ 1040 ?? $ftp1 set rate_ 100k ?? $ftp1 set interval_ 0.05 ?? $ftp1 attach-agent $tcp1 ??? $ns at 10.0 "$ftp1 start" } main From schen7009 at gmail.com Thu Aug 27 11:26:21 2009 From: schen7009 at gmail.com (Steve Chen) Date: Thu, 27 Aug 2009 14:26:21 -0400 Subject: [ns] Error while diffserv with DV Message-ID: <5873c3140908271126h59fcf1e5k3559954890117757@mail.gmail.com> All - In 2002 the same error was posted but surfing the web I did not find a credible response. I have a script that combines diffserv and multipath using rtproto DV and ns2 complained with an error message: "No policy entry found for source ..." Not trusting my script I copied ds-cbr-tb.tcl from tcl/ex and inserted the "$ns rtproto DV" line and got the same error. Is it a bug? Is there a way to get around this? Thanks, Steve From emiedzo at gmail.com Thu Aug 27 20:24:28 2009 From: emiedzo at gmail.com (Eric Miedzowicz) Date: Fri, 28 Aug 2009 00:24:28 -0300 Subject: [ns] Validating Ni Qiang's 802.11e extension Message-ID: Hi! I need to work on a wireless evironment with 802.11e support and I downloaded Ni Qiang's package ns-edcf.tar.gz. I am working with ns-2.34. I followed the instructions but got lots of errors, so I copied/ overwrote the files and directories within the package's "ns2" folder into the full distribution folder ns-allinone-2.34/ns-2.34. I then run ./install and (much to my surprise) it installed with no problem (meaning that the compiler did not complain). However, when I tried to validate the tests, I got the following error for every test I ran. [code omitted because of length] : invalid command name "PLevels" while executing "PLevels set max_plevels_ 8 " Is there any fundamental flaw in my installation process?. I have seen this same error posted before in the mailing list, but so far I was unable to find any solution. Your response will be appreciated. Thank you. Best regards, Eric Miedzowicz From shirie_2001 at yahoo.com.cn Fri Aug 28 05:03:10 2009 From: shirie_2001 at yahoo.com.cn (Zibo) Date: Fri, 28 Aug 2009 05:03:10 -0700 (PDT) Subject: [ns] How to implement a mobility model? Message-ID: <469402.64756.qm@web15202.mail.cnb.yahoo.com> Hello, all. I am trying to implement a new mobility model which I never touched before. Can anyone help me where the related codes reside? Any suggestion will be appreciated. Thanx in advaced. ___________________________________________________________ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ From thimaitrang.nguyen at gmail.com Fri Aug 28 05:05:33 2009 From: thimaitrang.nguyen at gmail.com (Nguyen Thi Mai Trang) Date: Fri, 28 Aug 2009 14:05:33 +0200 Subject: [ns] problem with nam In-Reply-To: <6d910bc90908270657t6600bb22r4ed8ab477f58a7ce@mail.gmail.com> References: <6d910bc90908270657t6600bb22r4ed8ab477f58a7ce@mail.gmail.com> Message-ID: <4A97C80D.2020908@gmail.com> Dear NS-users, The problem is solved. The solution is very simple. I updated my Ubuntu and do everything again. The problem is that I used an old computer and its Ubuntu has not been used or updated for a long time .... Best regards, Mai Trang Thi-Mai-Trang Nguyen a ?crit : > Dear NS-users, > > I installed ns-allinone-2.34 (./install) and validated (./validate) > successfully. However, it seems to me that nam was not installed > because I received the following error: > > ns: finish: couldn't execute "nam": no such file or directory > while executing > "exec nam out.nam &" > (procedure "finish" line 7) > invoked from within > "finish" > > Does anyone have the same problem? I will be grateful for any suggestion. > > Best regards, > Mai Trang From tabeenahmad at gmail.com Fri Aug 28 08:31:49 2009 From: tabeenahmad at gmail.com (tabeen) Date: Fri, 28 Aug 2009 08:31:49 -0700 (PDT) Subject: [ns] MANET security protocols on NS2 Message-ID: <25192034.post@talk.nabble.com> Iam facing problem in implementing MANET security protocols in NS2. i want to compare ARAN, SEAD,DSR and ARIADNE protocols and simulate them on NS2 .can anyone out there have any idea about the implementation of these protocols..please help -- View this message in context: http://www.nabble.com/MANET-security-protocols-on-NS2-tp25192034p25192034.html Sent from the ns-users mailing list archive at Nabble.com. From sanaz.barghi at gmail.com Fri Aug 28 16:48:42 2009 From: sanaz.barghi at gmail.com (Sanaz) Date: Fri, 28 Aug 2009 16:48:42 -0700 (PDT) Subject: [ns] Need expert's help for MAC-802.11 module. Message-ID: <25197238.post@talk.nabble.com> Hello, I am new with NS2. I use MAC-802_11 as my reference MAC, and I need to modify it to fit my needs. Some of my ACK packets need to be processed by 2 specific nodes, instead of one. In 'Mac802_11::recv_timer' function, packets are dropped based on their receiver address in MAC802.11 header not the address in 'ack_frame', therefore I need to add an address variable to my new header. It seems that 'Mac802_11::hdr_src' and 'Mac802_11::hdr_dst' functions are responsible for setting address variables in MAC802.11 header. My problem is that I can not find any other function calling them. Can anybody tell me what invokes these 2 functions? Any help is really appreciated. Regards, Sanaz -- View this message in context: http://www.nabble.com/Need-expert%27s-help-for-MAC-802.11-module.-tp25197238p25197238.html Sent from the ns-users mailing list archive at Nabble.com. From lukman_hanif at yahoo.com Fri Aug 28 17:14:04 2009 From: lukman_hanif at yahoo.com (lukman_hanif@yahoo.com) Date: Fri, 28 Aug 2009 17:14:04 -0700 (PDT) Subject: [ns] Error while diffserv with DV (Steve Chen) In-Reply-To: References: Message-ID: <438409.10510.qm@web50907.mail.re2.yahoo.com> All - > >In 2002 the same error was posted but surfing the web I did not find a >credible response. > >I have a script that combines diffserv and multipath using rtproto DV and >ns2 complained with an error message: "No policy entry found for source ..." >Not trusting my script I copied ds-cbr-tb.tcl from tcl/ex and inserted the >"$ns rtproto DV" line and got the same error. > >Is it a bug? Is there a way to get around this? > >Thanks, >Steve I think maybe you should try to put default PHB code point ( code 0) for the packets flow...... for example Packets from source Node A propagate to destination Node C through Node B (intermediate node), you maybe only define the policy from A to C but you did not define any policy/code point for any packets from A to B (usually routing pkts/ or pkts other than DATA)....try it.... From v_mandhare at yahoo.com Fri Aug 28 21:05:35 2009 From: v_mandhare at yahoo.com (vaishali mandhare) Date: Sat, 29 Aug 2009 09:35:35 +0530 (IST) Subject: [ns] compilation and installing tcl,tk Message-ID: <205868.72805.qm@web94816.mail.in2.yahoo.com> hi all, how path defined in root? directory? in file?makefile.vc. in tcl,tk foe win. thanks! vaishali?? Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com From jayavignesh86 at yahoo.co.in Sat Aug 29 04:38:28 2009 From: jayavignesh86 at yahoo.co.in (jaya vignesh) Date: Sat, 29 Aug 2009 17:08:28 +0530 (IST) Subject: [ns] Reg Shadowing Model Parameters setup in Ns2 Message-ID: <756042.95141.qm@web8904.mail.in.yahoo.com> Hi All, ? I need to setup a shadowing propogation model in my simulation script and i need to restrict the recieving power threshold to 15 m. ? Could you please list me out the parameters to be set to restrict my transmission power of say 1mw to around 15m reception.? ? Thanks, Jayavignesh See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/ From iiimene at gmail.com Sat Aug 29 05:02:37 2009 From: iiimene at gmail.com (iimene) Date: Sat, 29 Aug 2009 05:02:37 -0700 (PDT) Subject: [ns] Help plz !! Can anyone explain to me this message? Message-ID: <25202314.post@talk.nabble.com> HI! Ii'm trying to install ns 2.33 on fedora but after /. validate this message appears --------------------------------------------------------------- These messages are NOT errors and can be ignored: warning: using backward compatibility mode This test is not implemented in backward compatibility mode validate overall report: some portable tests failed: ./test-all-red to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME ------------------------------------------------------------- Could you plz explain to me what means and what shall I do? thanks in advance -- View this message in context: http://www.nabble.com/Help-plz-%21%21-Can-anyone-explain-to-me-this-message--tp25202314p25202314.html Sent from the ns-users mailing list archive at Nabble.com. From iiimene at gmail.com Sat Aug 29 06:17:15 2009 From: iiimene at gmail.com (iimene) Date: Sat, 29 Aug 2009 06:17:15 -0700 (PDT) Subject: [ns] namtrace-all command not found Message-ID: <25202839.post@talk.nabble.com> Hello, when i'm trying the first example in ns --------------------------- #Create a simulator object set ns [new Simulator] #Open the nam trace file set nf [open out.nam w] $ns namtrace-all $nf ---------------------------- it returns namtrace-all command not found could you plz explain me why this happens thanks in advance -- View this message in context: http://www.nabble.com/namtrace-all--command-not-found-tp25202839p25202839.html Sent from the ns-users mailing list archive at Nabble.com. From mishra.atnlab at gmail.com Sat Aug 29 08:02:54 2009 From: mishra.atnlab at gmail.com (Pooja Mishra) Date: Sat, 29 Aug 2009 20:32:54 +0530 Subject: [ns] Number of connections by TCP Receiver Message-ID: <9570a1d10908290802m7b784942y7b6df2498830ef1a@mail.gmail.com> ---------- Forwarded message ---------- From: Pooja Mishra Date: Sat, Aug 29, 2009 at 8:22 PM Subject: Query To: ns-users at isi.edu Hello, How many connection can be made simultaneously at the TCP connection receiver that is TCP Sink in our case ? How can i set that number of connections ? Thanks From jayavignesh86 at yahoo.co.in Sat Aug 29 09:56:44 2009 From: jayavignesh86 at yahoo.co.in (jaya vignesh) Date: Sat, 29 Aug 2009 22:26:44 +0530 (IST) Subject: [ns] Problem in Shadowing model implementation in Ns2 Message-ID: <931639.22450.qm@web8906.mail.in.yahoo.com> Hi All, I am trying to switch to Shadowing model in my simulation from the Two ray ground model. My parameters set for the simulation were for a path loss exponent of 2.5,S.D of 4,Reference Distance of 1, Pt was set to .001W and RXthreshold and carrier sense threshold was set to 15m for a reception rate of 95%. I dont understand why there is no packet transfer visibility in the nam output and there occurs huge drops in the packet transferred. Please provide your suggestions. Thanks for the help. Regards,Jayavignesh See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/ From jayavignesh86 at yahoo.co.in Sat Aug 29 09:58:10 2009 From: jayavignesh86 at yahoo.co.in (jaya vignesh) Date: Sat, 29 Aug 2009 22:28:10 +0530 (IST) Subject: [ns] Problem in Shadowing model implementation in Ns2 Message-ID: <417555.89581.qm@web8902.mail.in.yahoo.com> Hi All, I am trying to switch to Shadowing model in my simulation from the Two ray ground model. My parameters set for the simulation were for a path loss exponent of 2.5,S.D of 4,Reference Distance of 1, Pt was set to .001W and RXthreshold and carrier sense threshold was set to 15m for a reception rate of 95%. I dont understand why there is no packet transfer visibility in the nam output and there occurs huge drops in the packet transferred. Please provide your suggestions. Thanks for the help. Regards,Jayavignesh Looking for local information? Find it on Yahoo! Local http://in.local.yahoo.com/ From peter.decleyn at gmail.com Sat Aug 29 23:40:41 2009 From: peter.decleyn at gmail.com (Peter De Cleyn) Date: Sun, 30 Aug 2009 08:40:41 +0200 Subject: [ns] CFP Syclick, Symposium for Click Modular Router Message-ID: <832b47df0908292340p3106ff80j3aef3e4fbcd5fffb@mail.gmail.com> ~Our apologies if you receive multiple copies of this call for talks~ ======================================================================== CALL FOR PARTICIPATION SyClick Symposium on Click Modular Router November 23-24, 2009 Ghent, Belgium syclick at ua.ac.be http://www.syclick.ua.ac.be/ ======================================================================== UPDATE: registrations are now open at . Keynote: ----------- Eddie Kohler, creator of the Click Modular Router and ass. professor at UCLA Program: ------------ For the first time, a Click symposium will be organized to bring together users and developers of the Click Modular Router framework. This symposium is an opportunity for Click developers and researchers, and others interested in the wider field of networking, to get together to share knowledge and experiences. Over the course of two days attendees will be able to - meet other Click developers/researchers and find out how they use Click - get answers to technical questions - form relationships for future collaboration - hear about some cool Click applications. The first day of the symposium, a developer day will be held to freely exchange amongst each other thoughts and ideas about the future of Click. Topics include but are not limited to: - multiprocessing status and improvements - supporting per-flow state - debugging kernel routers - dynamically adding and removing element subgraphs - GUI development - educational applications - IPv6 status - generic network protocol support (e.g. addressing, generic routing tables) - annotation improvements - ... The next day, experiences about Click applications, development and/or research results using Click will be presented. To this end, we open a call for presentations for the following topics: - novel applications of Click - commercial applications of Click - Click customizations - Click innovations - lessons learned after using Click Submission: ---------------- Authors are requested to submit a 1 page PDF file containing a description of the work they want to present. Based on the submitted contributions the organising committee will select four presentations for a 30 min talk and additional contributions for a poster session. Demonstrations of Click implementations are also highly encouraged. Contribution descriptions should be submitted through the symposium website before: September 14th, 2009. Organizers and Chairs: ------------------------------ Prof. Chris Blondia, PhD Peter De Cleyn, PhD Michael Voorhaen, PhD Bart Braem, MSc Contact Information: -------------------------- Please direct any questions to syclick at ua.ac.be IBBT - PATS - University of Antwerp Dep. Mathematics and Computer Science Middelheimlaan 1 B-2020 Antwerp Belgium From smtlbs at yahoo.co.in Sun Aug 30 18:25:02 2009 From: smtlbs at yahoo.co.in (SABU M. THAMPI) Date: Mon, 31 Aug 2009 06:55:02 +0530 (IST) Subject: [ns] IEEE P2P Conference Message-ID: <477771.34086.qm@web94307.mail.in2.yahoo.com> ------------------------------------------------------------------------------------------------------------------- *** Our apologies if you receive multiple copies of this CFP *** ------------------------------------------------------------------------------------------------------------------- International Workshop on Advances in Peer-to-Peer Technology - IWAP2PT?09 (http://www.iwap2pt09.org) Co-located with Third International Conference on Internet Multimedia Systems Architecture and Applications (IMSAA-09) (http://www.imsaa.org) Technically sponsored by IEEE COMSOC Bangalore Chapter Dates: 9-11 December 2009, Bangalore, India Call for Papers The enduring digital insurrection has brought on the appearance of new network applications intended to speed up worldwide sharing of information. The applications have embraced the well-known peer-to-peer (P2P) technology in innovative ways, eternally altering the world of personal computing. P2P systems?an alternative to conventional client?server systems? mostly support applications that offer file sharing and content exchange like music, movies, etc. The concept has also been effectively employed for high performance computing, Internet-based telephony etc. The unanticipated growth in popularity of P2P systems has raised a number of significant problems. This situation has led academicians and industry people towards stupendous research in the field. The objective of International Workshop on Advances in Peer-to-Peer Technology - IWAP2PT?09 is to bring together researchers and practitioners in the areas of P2P computing, and to provide an opportunity to share latest research results and thoughts on P2P systems and thereby uphold the research activities in this area. IWAP2PT?09 invites researchers to submit their original and unpublished work that demonstrates current research in all areas of P2P computing. All submissions will be thoroughly peer-reviewed by experts in the field based on originality, significance and clarity, only papers presenting novel research results or successful innovative applications are considered for publication in conference proceedings. All the accepted papers will be published in the IEEE Xplore. Papers in IEEE format (.pdf file) must be submitted electronically through EDAS (http://edas.info/newPaper.php?c=8041). The Camera-ready paper should be double-column, IEEE format, but in 10 pt font, and no longer than six pages (including all figures and references). Detailed instructions will be given after the accepted papers announcement. Topics of interest include, but are not limited to: o Availability Management o Digital rights management o Fault Tolerance in P2P Systems o Grid Computing and P2P grids o Load Balancing Techniques o Mobile P2P Networks and o Mobile data management o Nature-inspired algorithms for P2P o Novel Architecture of P2P Systems o P2P and Autonomic Computing o P2P and Collaborative Learning o P2P applications and services o P2P measurements and control o P2P mobile sensors networks o P2P Resource Management o P2P services and Cloud computing o P2P Economics o P2P Live Streaming o Privacy in P2P Systems o Quality of Service and Quality of Experience o Resource Discovery in P2P Systems o Social Networks o Solutions for Free Riding and Partial Coverage in P2P o Trust and Reputation Management in P2P Systems o Video on Demand P2P File Sharing --------------------------------------------------------------------- Important Dates Paper submission: September 10, 2009 Notification of acceptance: October 15, 2009 Camera-ready version: October 30, 2009 ------------------------------------------------------------------------------------------------ Workshop Chairs -------------------------------------------------------------------- General Chairs Sajid Hussain, Acadia University, Canada K. Chandra Sekaran, National Institute of Technology Karnataka, India Vicent Cholvi, Universitat Jaume I, Spain --------------------------------------------------------------------------------------------- Program Chairs Sabu M. Thampi, L.B.S Institute of Technology for Women, Trivandrum, India Subir Saha, International Institute of Information Technology, Bangalore, India Farag Azzedin, King Fahd University of Petroleum and Minerals, Saudi Arabia ---------------------------------------------------------------------------------- Technical Programme Committee (TPC) Members ----------------------------------------------------------------------------------------------------------- Achuthsankar S. Nair, University of Kerala, India Avinash Srinivasan, Bloomsburg University, USA Bijaya Ketan Panigrahi, Indian Institute of Technology, Delhi, India Deepak Garg, Thapar University, Patiala, India Eduardo F. Nakamura, Research and Technological Innovation Center (FUCAPI), Brazil G.Panda, Indian Institute of Technology, Orissa, India Imran Ahmad, NWFP University of Engineering and Technology, Pakistan Ing. Jianguo Ding, Norwegian University of Science and Technology, Norway Jayasudha J.S., Sree Chitra Thirunal College of Engineering, Trivandrum , India Madhukumar S.D., National institute of Technology Calicut, India Maode Ma, Nanyang Technological University, Singapore Marc de Kamps, University of Leeds, United Kingdom Nidhi Rustagi, Inha University, Incheon, South Korea Niloy Ganguly, Indian Institute of Technology, Kharagpur, India Partha S. Mallick, School of Electrical Sciences, Vellore Institute of Technology, India Rajasree M.S., L.B.S Institute of Technology for Women, Trivandrum, India S.Parthasarathy, Bharathidasan University, India Sathish Rajasekhar, RMIT-University, Melbourne, Australia Seema Verma, Banasthali University, Rajasthan, India St?phane Bressan, National University of Singapore, Singapore Swagatam Das, Jadavpur University, Kolkata, India Tiptur Gangaraju Basavaraju, National Institute of Technology Karnataka, India Victor Govindaswamy, Texas A&M University, Texas, USA Vijay Kumar Chaurasiya, Indian Institute of Information Technology - Allahabad Vikas Saxena, Jaypee Institute of Information Technology University, India Xinheng(Henry) Wang, Swansea University, Singleton Park, United Kingdom Yingwu Zhu, Department of CSSE, Seattle University, USA Zhihua Cui, Taiyuan University of Science and Technology, P.R.China ---------------------------------------------------------------------------------------------------------------- See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/ From bilal26 at hotmail.co.uk Sun Aug 30 21:21:48 2009 From: bilal26 at hotmail.co.uk (BilalAKhan) Date: Sun, 30 Aug 2009 21:21:48 -0700 (PDT) Subject: [ns] xgraph compiling error with ns-allinone-2.34 Message-ID: <25200415.post@talk.nabble.com> Dear all, I have installed ns-allinone-2.34 succcesfully. I have also run a few of examples and they are running fine. But when I run trace analysis example where xgraph is used it gives me follwoing error: ns: finish: couldn't execute "xgraph": no such file or directory while executing "exec xgraph out0.tr out1.tr out2.tr -geometry 800x400 &" (procedure "finish" line 8) invoked from within "finish" I searched on the web and figured out that xgraph is not installed. I went to ns-allinone-2.34 folder and looked into installation guide of xgraph. According to the guide, I did './configure'. It went well, but when I typed 'make' and hit enter it gave me follwoing error: gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c dialog.c dialog.c: In function ?make_msg_box?: dialog.c:780: warning: passing argument 2 of ?getline? from incompatible pointer type /usr/include/stdio.h:653: note: expected ?size_t * __restrict__? but argument is of type ?char *? dialog.c:780: error: too few arguments to function ?getline? dialog.c: In function ?getline?: dialog.c:899: error: argument ?lptr? doesn?t match prototype /usr/include/stdio.h:653: error: prototype declaration dialog.c:899: error: number of arguments doesn?t match prototype /usr/include/stdio.h:653: error: prototype declaration make: *** [dialog.o] Error 1 Can anyone help me with this error. What am I doing wrong and where am I making a mistake??? Please help me in installing xgraph... Thanks in anticipation Regards, Bilal A. Khan ----- Regards, Bilal A. Khan -- View this message in context: http://www.nabble.com/xgraph-compiling-error-with-ns-allinone-2.34-tp25200415p25200415.html Sent from the ns-users mailing list archive at Nabble.com. From jules.aime at gmail.com Sun Aug 30 22:10:04 2009 From: jules.aime at gmail.com (=?ISO-8859-1?Q?Jules=2DAim=E9_Ntuyahaga?=) Date: Mon, 31 Aug 2009 13:10:04 +0800 Subject: [ns] SAODV code Message-ID: <4940dc900908302210h2d49817epd3848c610601547a@mail.gmail.com> Hi dear user! I would like to modify the code of SAODV and run it in ns-2. would you please provide me the codes for SAODV. thanks in advance regards Jules Hunan University From iiimene at gmail.com Mon Aug 31 04:43:14 2009 From: iiimene at gmail.com (Imene) Date: Mon, 31 Aug 2009 13:43:14 +0200 Subject: [ns] ns command not found?? Message-ID: <806550090908310443t722fcbcdx34043614d488cbc7@mail.gmail.com> Hi, when i'm trying the first command ns it returns to me command not found I think that the problem is from nam module but i can't solve it (i'm beginner in linux and ns) Can anyone help me please? thanks in advance From iiimene at gmail.com Mon Aug 31 05:47:18 2009 From: iiimene at gmail.com (Imene) Date: Mon, 31 Aug 2009 14:47:18 +0200 Subject: [ns] Question about environment variables? Message-ID: <806550090908310547s5ba1f97l8edd44f12fa2feb0@mail.gmail.com> Hi, I want to know if I had written correctly environment variable while installing ns2.33 ---------------------------------------------------------- important notices (1) et (2) (1) You MUST put /home/Imene/Bureau/ns-allinone-2.33/otcl-1.13, /home/Imene/Bureau/ns-allinone-2.33/lib, into your LD_LIBRARY_PATH environment variable. If it complains about X libraries, add path to your X libraries into LD_LIBRARY_PATH. If you are using csh, you can set it like: setenv LD_LIBRARY_PATH If you are using sh, you can set it like: export LD_LIBRARY_PATH= (2) You MUST put /home/Imene/Bureau/ns-allinone-2.33/tcl8.4.18/library into your TCL_LIBRARY environmental ------------------------------------------------------------- then I had written like this ________________________________________ LD_LIBRARY_PATH=$ LD_LIBRARY_PATH: /home/Imene/Bureau/ns-allinone-2.33/otcl-1.13:/home/Imene/Bureau/ns-allinone-2.33/lib TCL_LIBRARY=$TCL_LIBRARY:/home/Imene/Bureau/ns-allinone-2.33/tcl8.4.18/library:/home/Imene/Bureau/ns-allinone-2.33/tcl8.4.18/library __________________________________________ is it ok what I have done please? thanks in advance From neerajgupta37 at rediffmail.com Mon Aug 31 07:04:19 2009 From: neerajgupta37 at rediffmail.com (neeraj gupta) Date: 31 Aug 2009 14:04:19 -0000 Subject: [ns] read the lo g file in mac802_11 Message-ID: <20090831140419.13825.qmail@f6mail-144-203.rediffmail.com> hi all in mac802_11 layer we maintain the mac_log where are this log file and how can i access these files. Neeraj Gupta Assistant Professor HOD, CSE & IT Department Hindu College of Engineering Sonepat From bilal26 at hotmail.co.uk Mon Aug 31 21:20:26 2009 From: bilal26 at hotmail.co.uk (BilalAKhan) Date: Mon, 31 Aug 2009 21:20:26 -0700 (PDT) Subject: [ns] xgraph problem with its path registration in library Message-ID: <25234099.post@talk.nabble.com> I have installed ns-2 successfully. I posted a message a few days back about xgraph compile error, in the reply of which I got a few replies and Mr. Tom mentioned that I might not have registered xgraph to the path correctly. I am have made an installation guide for NS-2 installation. In this guide there is also path given to xgraph. Can anyone please check this guide and tell me whether I have followed the right steps. I can cannot run trace analysis example. If there is any other way of running trace analysis, can anyone please help http://www.nabble.com/file/p25234099/NS-2%2BInstallation%2BGuide.pdf NS-2+Installation+Guide.pdf me with it!!! Thanks in advance... Regards, Bilal A. Khan ----- Regards, Bilal A. Khan -- View this message in context: http://www.nabble.com/xgraph-problem-with-its-path-registration-in-%3CPATH%3E-library-tp25234099p25234099.html Sent from the ns-users mailing list archive at Nabble.com. From v_mandhare at yahoo.com Mon Aug 31 21:28:30 2009 From: v_mandhare at yahoo.com (vaishali mandhare) Date: Tue, 1 Sep 2009 09:58:30 +0530 (IST) Subject: [ns] eroor when compiling tcl,tk in ns-allinone-2.1b8 Message-ID: <564424.3517.qm@web94804.mail.in2.yahoo.com> hello all, I want to install ns-allinone2.1b8, but when type ./install following error? occure? with tcl and tk ? C_BUILD=1???????? -DTCL_SHLIB_EXT=\"\" ./../unix/tclUnixTime.c gcc -pipe -c -O -Wall -Wconversion -Wno-implicit-int? -I./../generic -I. -DHAV UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 HAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H ?-DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME ?-DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -D _UNION_WAIT=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DSTA C_BUILD=1???????? -DTCL_SHLIB_EXT=\"\" -DTCL_LIBRARY=\"/usr/local/ns-allinone- 1b8/lib/tcl8.3\" \ ??????????????? -DTCL_PACKAGE_PATH="\"/usr/local/ns-allinone-2.1b8/lib\"" \ ??????????????? ./../unix/tclUnixInit.c gcc -pipe -c -O -Wall -Wconversion -Wno-implicit-int? -I./../generic -I. -DHAV UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 HAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H ?-DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME ?-DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -D _UNION_WAIT=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DSTA C_BUILD=1???????? -DTCL_SHLIB_EXT=\"\" ./../unix/tclUnixThrd.c gcc -pipe -c -O -Wall -Wconversion -Wno-implicit-int? -I./../generic -I. -DHAV UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 HAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H ?-DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME ?-DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -D _UNION_WAIT=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DSTA C_BUILD=1???????? -DTCL_SHLIB_EXT=\"\" ./../unix/tclUnixNotfy.c gcc -pipe -c -O -Wall -Wconversion -Wno-implicit-int? -I./../generic -I. -DHAV UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 HAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H ?-DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME ?-DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -D _UNION_WAIT=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DSTA C_BUILD=1???????? -DTCL_SHLIB_EXT=\"\" ./../generic/tclLoadNone.c rm -f libtclstub8.3.a ar cr libtclstub8.3.a tclStubLib.o ranlib libtclstub8.3.a rm -f libtcl8.3.a ar cr libtcl8.3.a regcomp.o regexec.o regfree.o regerror.o tclAlloc.o tclAsync ?tclBasic.o tclBinary.o tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o tclCmdMZ ?tclCompCmds.o tclCompExpr.o tclCompile.o tclDate.o tclEncoding.o tclEnv.o tcl ent.o tclExecute.o tclFCmd.o tclFileName.o tclGet.o tclHash.o tclHistory.o tcl dexObj.o tclInterp.o tclIO.o tclIOCmd.o tclIOGT.o tclIOSock.o tclIOUtil.o tclL k.o tclListObj.o tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o tclO .o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o tclPkg.o tclPosixStr.o tclPr erve.o tclProc.o tclRegexp.o tclResolve.o tclResult.o tclScan.o tclStringObj.o clThread.o tclStubInit.o tclStubLib.o tclTimer.o tclUtf.o tclUtil.o tclVar.o t Mtherr.o tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o tclUnixFile.o tclUnixPipe. tclUnixSock.o tclUnixTime.o tclUnixInit.o tclUnixThrd.o? tclUnixNotfy.o? tclLo None.o ranlib libtcl8.3.a gcc -pipe -c -O -Wall -Wconversion -Wno-implicit-int? -I./../generic -I. -DHAV UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 HAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_VALUES_H=1 -DHAVE_UNISTD_H ?-DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME ?-DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -D _UNION_WAIT=1 -DNEED_MATHERR=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DSTA C_BUILD=1???????? -DTCL_SHLIB_EXT=\"\" ./../unix/tclAppInit.c gcc -pipe? tclAppInit.o -L/usr/local/ns-allinone-2.1b8/tcl8.3.2/unix -ltcl8.3 lc \ ???????????????? -o tclsh /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: to-importing has been activated without --enable-auto-import specified on the mmand line. This should work unless it involves constant data structures referencing symbo ?from auto-imported DLLs.fu000001.o:(.idata$2+0xc): undefined reference to `_l c_iname' fu000002.o:(.idata$2+0xc): undefined reference to `_libc_iname' fu000003.o:(.idata$2+0xc): undefined reference to `_libc_iname' fu000004.o:(.idata$2+0xc): undefined reference to `_libc_iname' Info: resolving __timezone by linking to __imp___timezone (auto-import) collect2: ld returned 1 exit status make: *** [tclsh] Error 1 tcl8.3.2 make failed! Exiting ... For problems with Tcl/Tk see http://www.scriptics.com See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/