[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Re: WFQ and wireles network



On Thu, 10 Jan 2002, ns wrote:

> Sir,
> I am student and want to simulate WFQ for wireless network about troughput,
> delay guarantie, fairnes compare to SFQ. i was install ns at redhat 6.2. I
> have download the wfq patch at
> http://www.pao.lombardiacom.it/wfq.html
> At the readme in file wfq_patches.1.0b1.tar.gz, I do the following :
> - copy the *.c and *.h file to folder ns-2.1b7
> - patch the stanza at file wfq_patch to file
> Makefile.in,ns-default.tcl,ns-lib.tcl,trace.cc
> After that i run the example script :
> ns example.tcl
> But I get the following error message :
> =========================
> invalid command name "Queue/WFQ"
>  while executing
> "Queue/WFQ create _014 "
>  invoked from within
> "catch "$className create $0 $args" msg"
>  (procedure "new" line 3)
>  invoked from within
> "new Queue/$qtype"
>  ("default" arm line 2)
>  invoked from within
> "sitch -exact $qtype {
> ErrorModule {
> if {[llength $args] >0 } {
> set q [eval new $qtype $args]
> } else {
> set q [new $qtype Fid]
> }
> }
> intserv {
> set qtyp..."
>  (procedure "_o3" line 10)
>  (Simulator simplex-link line 10)
>  invoked from within
> "_o3 simplex-link _o10 _o12 5Mb 2ms WFQ 10"
>  ("eval" body line 1)
>  invoked from within
> "eval $self simplex-link $n1 $n2 $bw $delay $type $args"
>  (procedure "_o3" line 9)
>  (Simulator duplex-link line 9)
>  invoded from within
> "$ns duplex-link $n0 $n1 5Mb 2ms WFQ 10"
>  (file "example.tcl" line 12)
> =====================================
> 
> 1. Why that happend, am i need to compile the patch first, how to compile i
> mean the step?
It seems that you have not recompile ns after you patch WFQ in.
just do make should be ok.

> 2. When i try to simulate about wireles, example for file wireless3.tcl, I
> get the following message :
This message is from the test suite. Where does the file locate...under 
the directory of ns?

-chen

>      ===========
>     Test output agrees with reference output
>     Running test dsr:
>     ../../ns test-suite-wireless-tdma.tcl dsr QUIET
>     num_nodes is set 50
>     Loading connection pattern...
>     Loading scenario file...
>     Load complete...
>     Starting Simulation...
>     NS EXITING...
>     finishing..
> 
>    Only that, the simulation is not shown, is there any mistake in my
> network simulation ?
> 
> Thank you
> Dan W
> 
> 

-- 
Xuan Chen
USC/ISI