[ns] BitTorrent sources
Hi all, Would anybody please send me a BitTorrent source code and scripts for NS-2 (like the Kolja Eger's patch) to help my research? The Eger's patch isn't avaliable anymore in the cited link. Thank you in advance, -- Sidney Doria Redes ad hoc móveis Doutorado em Computação UFCG Brasil "Nessa jornada, o conhecimento será o seu escudo..." (Mestre dos Magos no episódio do grimoire de ouro)
[ns] getting link queue class prob
hi to all well these are problems i m facing now i was trying to get nos of bytes currently contain in a Que after searching i have found that queue class contain a packetqueue object that have a protected variable "bytes_" i have done this to get a queue handle set queulimt [[[$ns link $node $nbr ] set queue_] set limit_] it gives me max nos of packet queue can contain i found no way to communicate the queue class in c++ and finds out that queue doesnt have any command funtion then i turn back to droptail queue classs and find out that it contain a command function and also contain base class queue::command(); but i havent found any implementation of queue::command() further more when i try to write my own command funtion in existing queue base class it gives an errror of unknown split object then i done this , set queu [[[$ns link $node $nbr ] set queue_] then i took the refrence back to my c++ code there i done this Queue *q; q=argv[9] /// as it comes at postion 9 q->byteLength(); it gives a segmentation fault error then i tries to create a bind object like this bind("byte_", tmpq); and in tcl i set it with queu handle $self set byte_ $queue and in c++ tmpq=(Queue*)bytes_; Tcl::instance().evalf("puts \"bytes %d\"",tmpq->byteLength()); output was 0 at that time do you have any other idea about this
[ns] TORA simulation does not come to an end in ns2.34
Hello, I have successfully changed and configured TORA in ns-2.34 (in fedora 9), as learnt from http://www.gidforums.com/t-19724.html. Now, when I run the simulation, it stops at a point and does not finish. If the simulation time is 20 seconds, it do completes but for simulation times more than 20 seconds, it never comes to an end; num_nodes is set 3 INITIALIZE THE LIST xListHead channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! Note that the same TCL scripts are running with other protocols like DSDV, AODV etc Best Regards
[ns] SCTP Multihoming
Hello all, I am studying SCTP Multi-Homing and want to perform a simulation work in NS2, can anybody help me that how and from where I can start, I am new to NS2. Thanks and Regards, Rashid Ali Send instant messages to your online friends http://uk.messenger.yahoo.com
[ns] problem with dumbagent as routing protocol
Hi.. I'm using DumbAgent as routing protocol in my wireless ad hoc network to check on 802.11b RTS/CTS operations. My question, by using the DumbAgent, will the data packet actually arrived at the destination? My problem is, my data packets keep dropping at the sender even when the sender and the receiver are close to each other (within the transmission range). When I changed my rp to AODV/DSR, I have no problem with the transmission. But when I revert back to DumbAgent, the receiver never receive any of the data packets. Is this normal or did I do something wrong? Any insight will be very much appreciated. Thank you again in advance regards Aslinda Hassan Computer Engineering Research Lab Faculty of Engineering and Applied Science Memorial University of Newfoundland
Re: [ns] NS2 source code for ETX
Hi I've found a patch for ETX metric with OLSR protocol. This may be helpful to you. http://www.inf.ufrgs.br/~wlccordeiro/resources/olsr/ Regards Amit Khanna On Mon, Mar 15, 2010 at 10:10 PM, JEHERUL wrote: > > Dear All > > If anyone have the ETX (Expected transmission count metric) source code of > ns2 . Please send me. > > > Regards > > Jeherul > Indian Institute of Information Technology and Management . > India >
Re: [ns] Exactly moment of reaching destination
Larissa Lucena wrote: > Scheduler::instance().clock(), <- this is the actual simulation time You have to check somehow by your own code , when the destination is reached. The node has to know the destination coordinates. You have to check if the actual position is the destination position. If it is reached you can record the simulator time. -- View this message in context: http://old.nabble.com/Exactly-moment-of-reaching-destination-tp27905332p27907839.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] change compiler version?
hi, how can i indicate to the ns install executable to use a different version of gcc?? ./instal CC=gcc-3.2? -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain
[ns] NS2 source code for ETX
Dear All If anyone have the ETX (Expected transmission count metric) source code of ns2 . Please send me. Regards Jeherul Indian Institute of Information Technology and Management . India
[ns] Exactly moment of reaching destination
Hi, Guys! I'd like to know the exactly moment that a mobile node reaches its destination position. I've read and read so many time the method MobileNode::set_destination (below) and I really don't figured it out. I need this to send a packet exactly in that moment. Could anyone help me? Thanks again! Larissa int MobileNode::set_destination(double x, double y, double s) { assert(initialized()); if(x >= T_->upperX() || x <= T_->lowerX()) return -1; if(y >= T_->upperY() || y <= T_->lowerY()) return -1; update_position();// figure out where we are now destX_ = x; destY_ = y; speed_ = s; dX_ = destX_ - X_; dY_ = destY_ - Y_; dZ_ = 0.0;// this isn't used, since flying isn't allowed double len; if (destX_ != X_ || destY_ != Y_) { // normalize dx, dy to unit len len = sqrt( (dX_ * dX_) + (dY_ * dY_) ); dX_ /= len; dY_ /= len; } position_update_time_ = Scheduler::instance().clock(); #ifdef DEBUG fprintf(stderr, "%d - %s: calling log_movement()\n", address_, __FUNCTION__); #endif log_movement(); /* update gridkeeper */ if (GridKeeper::instance()){ GridKeeper* gp = GridKeeper::instance(); gp-> new_moves(this); } if (namChan_ != 0) { double v = speed_ * sqrt( (dX_ * dX_) + (dY_ * dY_)); sprintf(nwrk_, "n -t %f -s %d -x %f -y %f -U %f -V %f -T %f", Scheduler::instance().clock(), nodeid_, X_, Y_, speed_ * dX_, speed_ * dY_, ( v != 0) ? len / v : 0. ); namdump(); } return 0; } -- "O maior prazer do inteligente é bancar o idiota diante de um idiota que banca o inteligente".
Re: [ns] find the current position of node
Wei Zhang-14 wrote: > > > > Hello everybody, > > To find the current position of node i I use: > > int i; > double x,y,z; > Node* srcnode = 0; > srcnode = Node::get_node_by_address(i); > MobileNode* tmnode = (MobileNode*)srcnode; > tmnode->getLoc(&x, &y, &z); > > I use ubuntu 8.04, ns2.33. when I translate(use make command). There are 2 > errors: > invalide use incomplete type "struct mobileNode" > common/packet/stamp.h:13 error: forward declaration of "struct mobileNode" > > 1. "class MobileNode" is derived from "class Node" it has also the method "get_node_by_address()". 2. MobileNode* tmnode = (MobileNode*)srcnode; -> don't cast from one class to another this is no good code . you will have problems! 3. you have created your own "struct mobileNode" - don't mix it up with the "class MobileNode" 4. error1 : "inclompete type" -> you missed something to write to your code. maybe "{" , "}" or ";" ? 5. error2 : "forward declaration" -> wrong place in the file where your struct is declared my advice : you are a beginner in programming , please learn some general things about c/c++ programming . look at some tutorials or homepages with examples, e.g. http://www.cplusplus.com -- View this message in context: http://old.nabble.com/find-the-current-position-of-node-tp27904252p27905042.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] find the current position of node
Hello everybody, To find the current position of node i I use: int i; double x,y,z; Node* srcnode = 0; srcnode = Node::get_node_by_address(i); MobileNode* tmnode = (MobileNode*)srcnode; tmnode->getLoc(&x, &y, &z); I use ubuntu 8.04, ns2.33. when I translate(use make command). There are 2 errors: invalide use incomplete type "struct mobileNode" common/packet/stamp.h:13 error: forward declaration of "struct mobileNode" Could anybody please help me or send me other way. Thanks in advance. Wei
[ns] transmission delay
Dear all, How is a packet transmission delay modeled in NS2? I mean which construct makes sure that a packet would be transmitted. If I want to transmit an additional packet, how should I do that? Should I add a new packet type and declare its length etc? Please let me know if you are familiar with it. Thanks, Sireesha.
[ns] WFQ Scheduling Scheme
Hello, I'm doing a research in the distributed mesh mode of WiMAX and I would like to use the Weight Fair Queuing (WFQ) Scheduling scheme but I have difficulty to implement the WFQ. So, Can you help me by sending me a part code of WFQ as an example that I can understand it and start mine. Thanks Youseef
[ns] Multiple Interface Support in NS-2
Hello, A patch for multi-channel multi-interface support has been designed depending on the document named "Adding Multiple Interface Support in NS-2" by Ramon Aguero Calvo and Jesus Perez Campo, University of Cantabria. The patch can be found on the following link: http://mohittahiliani.blogspot.com/2010/03/adding-multiple-interface-support-in-ns.html Hope it helps. Regards,Mohit P. Tahiliani
[ns] adding to the common header
Hi All I am experiencing a problem when i add a new variable to the common header. The new variable is a double, and my simulation starts to produce blank packets and does strange things when it is there... I was wondering if anybody could give me some advice or direct me towards a detailed guide as to how to add new information into the common header or into any header in fact? -- Kind Regards Ariel Goldberg Mobile: +27 82 998 7122 Phone: +27 21 940 9757 Mail: ariel.goldbe...@gmail.com
Re: [ns] FW: CR routing in ns2
Dear Mubashir Rehmani, Thanks a lot for your email, I already installed this patch file for CRNs. This add the multi interface/channel in the NS2. But I do not see any facility to perform primary user activity. The number 1 question is, how can I come up with primary user in the simulation? Best regards, Omar Jan From: Mubashir Rehmani [mailto:mshrehm...@gmail.com] Sent: Friday, March 05, 2010 2:20 PM To: Omar Jan Cc: ns-users@isi.edu Subject: Re: [ns] FW: CR routing in ns2 Hi Omar Jan, See this link http://old.nabble.com/Ns2-patch-for-Cognitive-Radio-Networks-(CRNs)-td233170 14.html#a23317014 Regards Mubashir Husain Rehmani On 5 March 2010 12:46, Omar Jan wrote: Hi there, Anyone work on cognitive radio in NS2? I've an idea in routing protocol and would like to implement it. I'm looking for cooperating in such manner or any suggestion ! Regards Omar Jan -- Mubashir Husain Rehmani
[ns] Disjoint cluster formation in WSN/MANET
Dear Everyone, I am looking for Disjoint cluster formation in Wireless Sensor networks/MANET. Is there any implementation available in this regard. Thanks in advance for the guidance. Thanks and Regards.