Hello,
I am trying to implement a new Congestion control protocol on ns-2.32.
I have installed ns2.32 on a ubuntu 7.10 (2.6.22-14)
The Simulator has been correctly installed and the build has been
validated successfully.
While integrating the protocol is ns2, I have ensured that the
following files are appropriately modified :-
 /common/packet.h, /tcl/lib/ns-packet.tcl, /tcl/lib/ns-default.tcl,
/trace/trace.cc . The Makefile has been modified to accommodate my
protocol.
When I run make after the above mentioned modifications I get the
following warning messages.
 /ns-allinone-2.31/ns-2.31$ make
g++ -c -Wall  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR
-DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
-DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H
-DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DHAVE_CONFIG_H -DNS_DIFFUSION
-DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE
-Drng_test  -I. -I/home/varun/ns-allinone-2.31
/tclcl-1.19 -I/home/varun/ns-allinone-2.31/otcl-1.13
-I/home/varun/ns-allinone-2.31/include
-I/home/varun/ns-allinone-2.31/include -I/usr/include/pcap -I./tcp
-I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac
-I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast
-I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr
-I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs
-I./diffserv -I./satellite -I./wpan -o rcp/rcp-host.o rcp/rcp-host.cc
 rcp/rcp-host.h: In constructor 'RCPAgent::RCPAgent()':
rcp/rcp-host.h:106: warning: 'RCPAgent::rcp_timer_' will be initialized after
rcp/rcp-host.h:102: warning:   'int RCPAgent::num_sent_'
rcp/rcp-host.cc:82: warning:   when initialized here
 rcp/rcp-host.h:107: warning: 'RCPAgent::ref_timer_' will be initialized after
rcp/rcp-host.h:95: warning:   'double RCPAgent::rtt_'
rcp/rcp-host.cc:82: warning:   when initialized here
rcp/rcp-host.h:104: warning: 'RCPAgent::numOutRefs_' will be initialized after
 rcp/rcp-host.h:96: warning:   'double RCPAgent::min_rtt_'
rcp/rcp-host.cc:82: warning:   when initialized here
rcp/rcp-host.cc: In member function 'virtual void RCPAgent::start()':
rcp/rcp-host.cc:109: warning: unused variable 'now'
 rcp/rcp-host.cc: In member function 'virtual void RCPAgent::timeout()':
rcp/rcp-host.cc:218: warning: unused variable 'now'
rcp/rcp-host.cc: In member function 'virtual void RCPAgent::finish()':
rcp/rcp-host.cc:277: warning: unused variable 'now'
 rcp/rcp-host.cc: In member function 'virtual void
RCPAgent::recv(Packet*, Handler*)':
rcp/rcp-host.cc:309: warning: unused variable 'now'
g++  -o ns \
The rest of the make process finishes normally.
I would like to know why I am being faced with these warnings. When I
run the tcl script, I get a few warnings which say that variables
haven't been declared/Initialized  and I get a Floating Point
Exception (Core Dump).
 Could you tell me where I am going wrong? Is there some step which I
am missing out on, or any change which has not been implemented?
In addition, it would be helpful if someone who has worked on a
similar protocol could help me out in implementing my protocol.
Thanks in advance,
Varun

Reply via email to