[ns] nam can not view node

2007-07-12 Thread wjw7869


Hello all, 

 Today I run out.nam in ns2,I can not see node in the nam-viewer.It gives me 
reminding information as follows: 
 
node 0 is not defined... node 0 is not defined... node 0 is not defined... node 
0 is not defined... node 1 is not defined... node 1 is not defined... node 1 is 
not defined... node 0 is not defined... node 0 is not defined... node 0 is not 
defined... node 0 is not defined...

 I take many time to solve the problem, but failed. So I ask for your help!

thanks a lot! 

   wjw


  此致

 敬礼


   王俊伟

[ns] adding multi-channel supporting based on aodv

2007-05-27 Thread wjw7869

 
hi all,

I am working on Adding Multiple Interface Support in NS-2 available on 
ttp://personales.unican.es/aguerocr/  based on AODV .My question is that 
sending a unicast packet.which interface should send to ?
listing 5.4
if(nIfaces) 
{  Scheduler::instance().scheduler(,targetlist[nIface],pkt,0,) }
else
{  Scheduler::instance().scheduler(,targetlist,pkt,0  }
listing 5.5
if(nIfaces)
{
Iface=cmn-iface()-((Mac *)ifqueuelist[0]-target())-addr();
}
else
{
Iface=-1;
}
 
I set nIface as a member of AODV::sendReply(),and add listing 5.4 ,5.5 in 
AODV::sendReply,but when I make ns,
It gives me error information: cmn is not defined! why? 
any help will be appreciation!
 


人山人海盛景,尽在梦幻西游  

[ns] how to solve segmentation fault in ns2

2007-05-21 Thread wjw7869

hello all,
 
 I am working on add multi-interface multi-channel support  in ns2 ,but now I 
meet a segmentation fault in implementing adding Multiple Interface Support in 
NS-2, I use command : 
$gdb ns
$r channel.tcl
$bt
it gives reminding information as follows:
#0  0x081112a7 in WirelessChannel::sortLists ()
#1  0x08112269 in WirelessChannel::sendUp ()
#2  0x08110e3a in Channel::recv ()
#3  0x0813494b in WirelessPhy::sendDown ()
#4  0x08132d9d in Phy::recv ()
#5  0x0805b4de in Connector::send ()
#6  0x08139781 in CMUTrace::recv ()
#7  0x0811980f in Mac802_11::transmit ()
#8  0x08116110 in Mac802_11::check_pktTx ()
#9  0x08116350 in Mac802_11::backoffHandler ()
#10 0x081357f4 in BackoffTimer::handle ()
..
Now I think segmentation fault is caused by WirelessChannel::sortLists (),but I 
can not find practice reasons, please help me!

another question is Simulator instproc add-channel { indexch ch}
{
 $self instvar chan
set chan(indexch) $ch
}
when i run test.tcl ,It always gices me that variable is not array.
please help me

thanks a lot !
   


150万人同时在玩的网游,你不试试吗?  

[ns] code omitted because of length

2007-05-14 Thread wjw7869

 hi all,
when I  modified   ns-lib.tcl  and make ,I  meet  a  error information about  
ns:
[code omitted because of length]
: can't read addressType_: no such variable
while executing
string compare $addressType_ 

I do not know why? please help me!

best wishes for you 

Wangjunwei
 
  


免费试玩2006中国最佳网络游戏--梦幻西游  

[ns] Adding Multiple Interface Support in NS-2

2007-05-14 Thread wjw7869

Hello all and Ramon Aguero Calvo,
 I have spent a fews dayes to study Adding Multiple Interface Support in 
NS-2,but now I have not done it successfuly, If you have implement in you ns2, 
could give me some advices or tips. 
 
 best wishes for you! 

Wang junwei


[ns] can't read tracefd: no such variable wh ile run tclscript

2007-05-07 Thread wjw7869

 Hello, every one,

I am using ns2 to simulate Ad hoc routing protocol.when I run test script. I 
meet a error infomation about ns2 as follows.
  can't read tracefd: no such variable
while executing
if { $tracefd ==  } {brreturn br}
(procedure cmu-trace line 4)
invoked from within
cmu-trace Send RTR $self

I do not know  the proc about cmu-trace Send RTR $self,I can not find where 
proc defined in ns  script, I need you help!

thanks a lot!

  

[ns] multi-channel question

2007-04-30 Thread wjw7869

Dear Ram¨reg;n Ag¨sup1;ero Calvo and all,
 I modified ns2 code to support multiple interface according  Ram¨reg;n 
Ag¨sup1;ero Calvo 's Document, but when i run script_ ,I meet following 
errors,I do not konw how to debug error in  ns2 ? anyone could help me solve 
this problem ,I am very appreciate of you!
 
 num_nodes is set 50
INITIALIZE THE LIST xListHead
can't read tracefd: no such variable
while executing
if { $tracefd ==  } {BRreturn BR}
(procedure cmu-trace line 4)
invoked from within
cmu-trace Send RTR $self
(procedure _o17 line 35)
(Node/MobileNode add-target-rtagent line 35)
invoked from within
$self add-target-rtagent $agent $port
(procedure _o17 line 29)
(Node/MobileNode add-target line 29)
invoked from within
$self add-target $agent $port
(procedure _o17 line 15)
(Node attach line 15)
invoked from within
$node attach $ragent [Node set rtagent_port_]
(procedure _o3 line 78)
(Simulator create-wireless-node line 78)
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  $val(nn) } {incr i} {BR set node_($i) [$ns_ 
node]BR#set rt($i) [$node_($i) agent 255]BR#$rt($i) set-mac [$node_($i) set 
mac_(0)]BR$n...
(file channel.tcl line 82)
 
 
 



Atilde;acirc;・Ntilde;Ecirc;Ocirc;Iacute;aelig;2006Ouml;ETH;sup1;ú×icirc;frac14;Ntilde;Iacute;oslash;Acirc;ccedil;Oacute;Icirc;Iuml;・--Atilde;Icirc;raquo;Atilde;Icirc;÷Oacute;Icirc;
 

[ns] multi-channel question

2007-04-30 Thread wjw7869

 
Dear Ram¨reg;n Ag¨sup1;ero Calvo and all,
 I modified ns2 code to support multiple interface according  Ram¨reg;n 
Ag¨sup1;ero Calvo 's Document, but when i run script_ ,I meet following 
errors,I do not konw how to debug error in  ns2 ? anyone could help me solve 
this problem ,I am very appreciate of you!
 
 num_nodes is set 50
INITIALIZE THE LIST xListHead
can't read tracefd: no such variable
while executing
if { $tracefd ==  } {BRreturn BR}
(procedure cmu-trace line 4)
invoked from within
cmu-trace Send RTR $self
(procedure _o17 line 35)
(Node/MobileNode add-target-rtagent line 35)
invoked from within
$self add-target-rtagent $agent $port
(procedure _o17 line 29)
(Node/MobileNode add-target line 29)
invoked from within
$self add-target $agent $port
(procedure _o17 line 15)
(Node attach line 15)
invoked from within
$node attach $ragent [Node set rtagent_port_]
(procedure _o3 line 78)
(Simulator create-wireless-node line 78)
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  $val(nn) } {incr i} {BR set node_($i) [$ns_ 
node]BR#set rt($i) [$node_($i) agent 255]BR#$rt($i) set-mac [$node_($i) set 
mac_(0)]BR$n...
(file channel.tcl line 82)
 
 

[ns] multichannel support

2007-04-30 Thread wjw7869

Dear  all,
 I modified ns2 code to support multiple interface according  Ram¨reg;n 
Ag¨sup1;ero Calvo 's Document, but when i run script_ ,I meet following 
errors,I do not konw how to debug error in  ns2 ? anyone could help me solve 
this problem ,I am very appreciate of you!
 
 num_nodes is set 50
INITIALIZE THE LIST xListHead
can't read tracefd: no such variable
while executing
if { $tracefd ==  } {BRreturn BR}
(procedure cmu-trace line 4)
invoked from within
cmu-trace Send RTR $self
(procedure _o17 line 35)
(Node/MobileNode add-target-rtagent line 35)
invoked from within
$self add-target-rtagent $agent $port
(procedure _o17 line 29)
(Node/MobileNode add-target line 29)
invoked from within
$self add-target $agent $port
(procedure _o17 line 15)
(Node attach line 15)
invoked from within
$node attach $ragent [Node set rtagent_port_]
(procedure _o3 line 78)
(Simulator create-wireless-node line 78)
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  $val(nn) } {incr i} {BR set node_($i) [$ns_ 
node]BR#set rt($i) [$node_($i) agent 255]BR#$rt($i) set-mac [$node_($i) set 
mac_(0)]BR$n...
(file channel.tcl line 82)

 

[ns] ns configure problem

2007-03-06 Thread wjw7869

Dear all,
 Now I meet a tough problem that I can not configure ns . when I run ns in 
command line prompt. It gives me that information :
When configured, ns found the right version of tclsh in 
/home/wjw101/ns-allinon e-2.30/bin/tclsh8.4BRbut it doesn't seem to be there 
anymore, so ns will fall back on running the fir st tclsh in your path. The 
wrong version of tclsh may break the test suites. Rec onfigure and rebuild ns 
if this is a problem.BR%
I can also run TCL script, but when i modified the *.cc  and  *.h file  and run 
make  make  depend make command,  I find that modification does not work , I do 
not konw why it is.
my system configuration is that: intel cpu , fedora core 5 linux,  ns-2.30 .
I install ns-2.30 in wjw100,wjw101,wjw103  user. 
any advice and  help will be  appreciated!
So I am appreciate you a lot for that I have a lot experiment to do in it.
 yours sincerely

Wang Junwei   

 2007/03/05






 
 
 

[ns] configure ns problem

2007-03-04 Thread wjw7869

Dear all,
 Now I meet a tough problem that I can not configure ns . when I run ns in 
command line prompt. It gives me that information :
When configured, ns found the right version of tclsh in 
/home/wjw101/ns-allinon e-2.30/bin/tclsh8.4brbut it doesn't seem to be there 
anymore, so ns will fall back on running the fir st tclsh in your path. The 
wrong version of tclsh may break the test suites. Re configure and rebuild ns 
if this is a problem.br%
I can also run TCL script, but when i modified the *.cc  and  *.h file  and run 
make  make  depend make command,   I find that modification does not work , I 
do not konw why it is.
my system configuration is that: intel cpu , fedora core 5 linux,  ns-2.30 .
I install ns-2.30 in wjw100,wjw101,wjw103  user. 
any advice and  help will be   appreciated!
So I am appreciate you a lot for that I have a lot experiment to do in it.
 yours sincerely
 
Wang Junwei   

 2007/03/05





   

[ns] error information of installing iNSpect in Fedora Core 5 linux

2007-01-12 Thread wjw7869

Dear all,
   I have installed OPenGl,When I install iNSpect  in Fedora Core 5 linux ,At 
last it remainds me that :

. 
 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   
-I/usr/share/inspect/iNSpect/gtkglext/include/gtkglext-1.0 
-I/usr/share/inspect/iNSpect/gtkglext/lib/gtkglext-1.0/include 
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 
-I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-I/usr/include/atk-1.0   eventBuilder.cpp
eventBuilder.cpp: In constructor ‘eventBuilder::eventBuilder()’:
eventBuilder.cpp:39: 错误:‘eventThreadFunc_readTwoMobility’ 在此作用域中尚未声明
eventBuilder.cpp:40: 错误:‘eventThreadFunc_readSomeLines’ 在此作用域中尚未声明
make: *** [eventBuilder.o] 错误 1
strip: 'iNSpect': No such file
 If you help me,I will be appreciate you! 

best wishes for you!

Wang Junwei   Hefei University of Technology  Hefei China  



[ns] installing iNspect in fedora core 5 linux error information

2007-01-11 Thread wjw7869

Dear Everyone,
 when  I  install  it in Fedora core 5 linux, I met error information as 
follows.  please help me find reasons ,Thanks in advances!
another question is that I can not download GpenGL library.pleae help me !  

 Wang Jun-wei   Hefei University of Technology  China
// checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for strerror in -lcposix... no
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag CXX to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag F77 to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for some Win32 platform... no
checking for native Win32... no
checking whether build environment is sane... yes
checking for gcc 

[ns] ns -2 dsdv aodv research

2006-11-02 Thread wjw7869

 
 
Hi all,
   I am reaching source code of  ~ns/ns-allinone-2.29/ns-2.29/dsdv,but I can 
not understand code ,please help me! thanks a lot ! 
 
Wjw  hefei china 







void 
DSDV_Agent::tracepkt (Packet * p, double now, int me, const char *type)
{
  char buf[1024];

  unsigned char *walk = p-accessdata ();

  int ct = *(walk++);
  int seq, dst, met;

  snprintf (buf, 1024, V%s %.5f _%d_ [%d]:, type, now, me, ct);
  while (ct--)
{
  dst = *(walk++);
  dst = dst  8 | *(walk++);
  dst = dst  8 | *(walk++);
  dst = dst  8 | *(walk++);
  met = *(walk++);
  seq = *(walk++);
  seq = seq  8 | *(walk++);
  seq = seq  8 | *(walk++);
  seq = seq  8 | *(walk++);
  snprintf (buf, 1024, %s (%d,%d,%d), buf, dst, met, seq);
}
  // Now do trigger handling.
  //trace(VTU %.5f %d, now, me);
  if (verbose_)
trace (%s, buf);
}

[ns] CSMA/CA based on 802.15.4

2006-08-21 Thread wjw7869

 
 
 
 
Dear all,
 
I want to simmulate Csma/ca used in 802.15.4, but I do not know how to start, I 
do not konw how to count  the number of collision, when to start collision, I 
think collision can only start when more than two nodes send data to a node at 
the same time, another question is how I can change CW, BE and NB in  source 
code .so that another question is how I know what I simulate is Csma/ca. 
  Thank you for your reading and answering in advance.
 
 
Wang  
 
 
 
 
 
 








网 易 邮 箱 带 你 率 先 跨 入 3G 时 代 ! 
3G 海 量 邮 箱 ,20 兆 超 大 附 件 ;网 络 记 事 本 + RSS + 大 容 量 网 盘 ,一 样 也 不 少