Re: [ns] CBR traffic
Hi Kevin, Thanks for your kind reply. I've tried it, but I still get around 25ms for every generation. Thanks, Thavouth K. From: Kevin Xe. xenon_as2...@163.com To: Thavouth Khoun thavouth.nsu...@yahoo.com Sent: Monday, June 8, 2009 8:30:10 AM Subject: Re:[ns] CBR traffic hi, u'd better try this sentence in tcl $cbr_(0) set interval_ 0.02 Kevin Xe. 在2009-06-05,Thavouth Khoun thavouth.nsu...@yahoo.com 写道: Hi ns-users, Anybody knows how to generate a cbr traffic every 20ms? I've been using $cbr_0 set idle_time_ 20ms and $cbr_0 set burst_time_ 10ms , but it send a cbr packet around every 25ms. Maybe I don't set burst_time correctly. Any ideas? Thanks, Thavouth K. 网易企业邮,商务邮箱专家
[ns] explanation of the line
hi all any anybody explain what the following is doing netif_-node()-energy_model()-add_neighbor(src); the above line is in 802_11.cc file. where it is storing the neighbors.where is energy_model() function in the ns-2.30 Neeraj Gupta Assistant Professor HOD, CSE IT Department Hindu College of Engineering Sonepat
[ns] DSRAgent warning conversion to 'int' may change sign of result
Dear Ns-users, I am installing ns2.28 on a Pentium4 32-bit processor,Linux version 2.6.28-11-generic (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ). I could not build tcl, tk at first and solved them with removing a ' from the line system=MP-RAS-`awk ' { print $3 } '/etc/.relid` in all the configure files and then autoconfiguring them. After that I had problems with the files cbq.cc, tora_neighbor.h, filter_core.hh ; and solved them with defining some extra class in the files e.g class CBQueue, class toraAgent, class DiffRoutingAgent respectively. After these steps, now I am gettting message as follows : dsr/dsragent.cc: In member function ‘void DSRAgent::dropSendBuff(SRPacket)’: dsr/dsragent.cc:207: warning: deprecated conversion from string constant to ‘char*’ dsr/dsragent.cc: In member function ‘void DSRAgent::stickPacketInSendBuffer(SRPacket)’: dsr/dsragent.cc:223: warning: deprecated conversion from string constant to ‘char*’ dsr/dsragent.cc: In member function ‘virtual int DSRAgent::command(int, const char* const*)’: dsr/dsragent.cc:432: warning: deprecated conversion from string constant to ‘char*’ ...and many more messages like the above,which might be redundant. And all along the installation process, I got thousands of warnings like : ./common/packet.h:***: warning: deprecated conversion from string constant to ‘char*’ and also: ./../generic/tclExecute.c:3844: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result ./../generic/tclExecute.c: In function ‘ExprRandFunc’: ./../generic/tclExecute.c:5242: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result .. ./../generic/tclFCmd.c: In function ‘TclFileAttrsCmd’: ./../generic/tclFCmd.c:917: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result .. /home/user/ns-allinone-2.28/tk8.4.5/unix/../generic/tkCanvas.c: In function ‘CanvasDoEvent’: /home/user/ns-allinone-2.28/tk8.4.5/unix/../generic/tkCanvas.c:4906: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result .. make: *** [dsr/dsragent.o] Error 1 Ns make failed! I tried to solve this as said in the troubleshooting page, adding the following lines in the Makefile: CCOPT= -g -Wall -Wno-write-strings STATIC= LDFLAGS= $(STATIC) LDOUT= -o $(BLANK) But I get exactly the same result even after modifying the makefile. Could anyone care to tell me what can I do to solve this? Thank you very much for your kind attention. Regards, Fatima Postgraduate student,Department of Electrical Engineering University of Malaya,KL-50603,Malaysia. _ See all the ways you can stay connected to friends and family http://www.microsoft.com/windows/windowslive/default.aspx
[ns] NS2 Energy consomption, Network load ...
hi all, i have a simulation on ns to do , i have a relation with two parameters : Energy consomption (W) in active state , and data rate (kbps) . i want to know how to get the values of theses two parameters ; i mean which class use its and which variables ? How about the Network load ? thanx for your replay it's urgent .
[ns] can I dynamically do setdest ??
Hi everyone, I want to dynamically do setdest on a node. The destination coordinate, each time, will be determined from the information the node gets from other nodes. Is it possible to do this ? Can anyone please help me with information or hints/advice? Thanks and have a nice time. -- Md. Ahsanur Rashid, Undergraduate Student, Level-4, Term-2, Department of Computer Science and Engineering (CSE), Bangladesh University of Engineering Technology (BUET), Dhaka-1000, Bangladesh. Cell: (+88) 01715-621-323 On Wed, Jun 3, 2009 at 3:09 AM, nadine...@yahoo.fr wrote: Hi, Please tell me how can I use differentiate curves in xgraph by varying the line style and not the line color? what is the command that I should write? please help me. Thank you.
[ns] proxy mobile IP multi-RAT simulation questions
Hello all, I've been studying and investigating NS2 for a few weeks now, wanting to see if it's going to be more suitable to use in my thesis work than Opnet. I have a few questions I couldn't answer from my readings so far. Any help or tips will be greatly appreciated. I am looking at the possibility of adding proxy mobile IP functionality to a simulation of a wireless LAN. Is that possible ? and where should the work be aimed at (what classes and C files) I'd also like to know if it's possible to simulate a topology that has a combination of infrastructure networks (cellular and WLAN) and ad hoc 802.11 and 802.15 ? Thanks, Zaid A.
[ns] running GAF
Dear All, I'm trying to run GAF routing protocol, anybody could tell how can I invoke GAF from the tcl script? Thank you, -- Nedal Ababneh Post-Doctroal Research Fellow Département INFRES TELECOM ParisTech - ENST 46 rue Barrault 75013 PARIS, France Tel: +33.(0)1.45.81.79.99 Fax: +33.(0)1.45.81.31.19 E-mail : abab...@telecom-paristech.fr
[ns] result errors
Dear all, Anybody can tell me why my results are being chopped half way when I run test01.tcl of ns-OBS? I am using ns-2.28 on fedora 8.0. Best regards. COULIBALY Yahaya PhD Candidate Faculty of Computer Science Information Systems Department of Communication Computer Systems Malaysia University of Technology (UTM) 81310 Skudai, Johor Bahru, Johor Cell: 0060196886615
[ns] CBR traffic (solved)
Hi Kevin and Abdul Serwadda, Thanks, it works correctly. Sorry Kevin, last time I said it didn't work, but it was my bad I forgot to put _ after interval. Thavouth K. From: Abdul Serwadda abdulserw...@gmail.com To: Thavouth Khoun thavouth.nsu...@yahoo.com Sent: Monday, June 8, 2009 7:16:51 PM Subject: Re: [ns] CBR traffic $cbr_0 set interval_ 0.02 is the statement that should do it for you. It simply means that the cbr agent sends every 0.02seconds,an equivalent of 2ms. Abdul Serwadda Makerere University kampala, Uganda- From: Kevin Xe. xenon_as2...@163.com To: Thavouth Khoun thavouth.nsu...@yahoo.com Sent: Monday, June 8, 2009 8:30:10 AM Subject: Re:[ns] CBR traffic hi, u'd better try this sentence in tcl $cbr_(0) set interval_ 0.02 Kevin Xe. 在2009-06-05,Thavouth Khoun thavouth.nsu...@yahoo.com 写道: Hi ns-users, Anybody knows how to generate a cbr traffic every 20ms? I've been using $cbr_0 set idle_time_ 20ms and $cbr_0 set burst_time_ 10ms , but it send a cbr packet around every 25ms. Maybe I don't set burst_time correctly. Any ideas? Thanks, Thavouth K. 网易企业邮,商务邮箱专家