[ns] FECModel in ns2.29 problems(please let us solve this problem)

2006-05-08 Thread qadous

Dear sirs,

the ns-manual says in page number 50 that Table 5.1: Available options for node
configuration (see tcl/lib/ns-lib.tcl). I went to this file and found that
there is FECProc option like the IncommingErrProc option.

when I inserted the the FECmodel in my simulation using the following code:
#
proc FECproc1 {} {
FECModel set FECstrength_ 2
set FEC1 [new FECModel]
return $FEC1
}
$ns_ node-config -adhocRouting $opt(adhocRouting) \
 -llType $opt(ll) \
 -macType $opt(mac) \
 -ifqType $opt(ifq) \
 -ifqLen $opt(ifqlen) \
 -antType $opt(ant) \
 -propType $opt(prop) \
 -phyType $opt(netif) \
 -channelType $opt(chan) \
 -topoInstance $topo \
 -wiredRouting ON \
 -agentTrace OFF \
 -routerTrace OFF \
 -macTrace OFF
 -IncomingErrProc MultistateErrorProc
 -FECProc FECproc1
#
I got the following error:

[EMAIL PROTECTED] ~
$ ns errort.tcl
num_nodes is set 2
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
invalid command name -FECProc
while executing
-FECProc FECproc1
(file errort.tcl line 124)

it works fine with the error model but does not work with FEC model.

really, it is critical for my simulation and looking forward to receive from
ASAP.
thank you in advance
regards



This message was sent using IMP, the Internet Messaging Program.



[ns] How do use the FECmodel? (4 times please help)

2006-05-06 Thread qadous

Dear ns-users,

I need to use the FECmodel that available in ns2\queue\fec.h and fec.cc in my
simulation and don't know how to link it to MAC layer or the Node.

please any help is very critical to me.

looking forward to hear from you ASAP.
Regards




This message was sent using IMP, the Internet Messaging Program.



[ns] what is the OTCL code that Uses FECModel in NS2?

2006-05-03 Thread qadous

Dear ns-users,

Please, I need to know how FECModel is used inside the ns2. what is the OTCL
code for using it.

This model available in:
FEC.h and FEC.cc in ns-2.29\queue\

your help is highly appreciated.
Regards





This message was sent using IMP, the Internet Messaging Program.



[ns] *.h and *.cc

2006-04-17 Thread qadous

Dear ns- users:

what's the reason for having to files in ns2 for defining any protocol such as
TCP?

what's the duty of *.h file?

what's the duty of *.cc file?

thank you in advance.
chrs


This message was sent using IMP, the Internet Messaging Program.



Re: [ns] calculation of average network delay

2006-03-20 Thread qadous

Everything avilable in the trace file.

You just need to know how to analyze the tracefile using awk or perl languages
(very simple languages). ...you need to know the meaning of trace file
parameters.

You can find these information in module 24 or pages (157,158 and 159) in
ns-manual and ~ns/trace.{cc, h}, ~ns/tcl/lib/ns-trace.tcl,

For beginners I advice you to start from:
http://nile.wpi.edu/NS/
http://www.isi.edu/nsnam/ns/tutorial/

hope that help ?
cheers


This message was sent using IMP, the Internet Messaging Program.



[ns] MultiState Error Model in ns-manual chaper 13.

2006-03-19 Thread qadous

Dear ns-users,

Actually, I implement Mr. Jianping Pan contribution in ns2 regard the mutlistate
error model as it is; I use the following code:
$ns_ node-config -IncomingErrProc UniformErrProc
proc UniformErrProc {} {
set tmp [new ErrorModel/Uniform 0 pkt]
set tmp1 [new ErrorModel/Uniform .9 pkt]
set tmp2 [new ErrorModel/Uniform .5 pkt]

# Array of states (error models)
set m_states [list $tmp $tmp1 $tmp2]
# Durations for each of the states, tmp, tmp1 and tmp2, respectively
set m_periods [list 0 .0075 .00375]
# Transition state model matrix
set m_transmx { {0.95 0.05 0}
  {0   0   1}
  {1   0   0} }
set m_trunit pkt
# Use time-based transition
set m_sttype time
set m_nstates 3
set m_nstart [lindex $m_states 0]

set em [new ErrorModel/MultiState $m_states $m_periods $m_transmx \\
$m_trunit $m_sttype $m_nstates $m_nstart]
}

And I got the Following Errors:
[EMAIL PROTECTED] ~
$ ns multistateerrort.tcl
num_nodes is set 2
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
wrong # args: should be _o62 self class proc states periods trans transunit stt
ype nstates start
(ErrorModel/MultiState init line 1)
invoked from within
_o62 init {_o59 _o60 _o61} {0 .0075 .00375} { {0.95 0.05 0}
  {0   0   1}
  {1   0   0} } \\
(Class create line 1)
invoked from within
ErrorModel/MultiState create _o62 {_o59 _o60 _o61} {0 .0075 .00375} { {0.95 0.0
5 0}
  {0   0   1}
  {1   0   0} } \\
invoked from within
catch $className create $o $args msg
invoked from within
if [catch $className create $o $args msg] {
if [string match __FAILED_SHADOW_OBJECT_ $msg] {
delete $o
return 
}
global errorInfo
error class $...
(procedure new line 3)
invoked from within
new ErrorModel/MultiState $m_states $m_periods $m_transmx \\
invoked from within
set em [new ErrorModel/MultiState $m_states $m_periods $m_transmx \\
$m_trunit $m_sttype $m_nstates $m_nstart]
(file multistateerrort.tcl line 137)


I?m beginners in ns2 so please forgive me for annoying you.
Would you please send me the detailed steps to implement this error model?
Thank you in advance

Kind Regards







This message was sent using IMP, the Internet Messaging Program.



[ns] Error model(Urgent) parameters

2006-03-15 Thread qadous

Dear NS users,

Specifying the rate_ gives me the indication that the error will be constant?
True?

Then the random operation by ranvar, how does it effect the error model!!!

The ns manual said: ranvar to specify the random variable for generating
errors? thus what is the role of rate_

I need urgently to know what the difference between them is.

Thank you in advance



This message was sent using IMP, the Internet Messaging Program.



[ns] How to use Error Models with Wireless channels ?

2006-03-06 Thread qadous

Dear P.Navaratnam,

I have the same problem , Have you solved itplease let me know if you
overcome it.

According to me:
 I select the shadowing model as propagation model for wireless link. In this
model you can specify the loss ratio ( just read chapter 18 in ns-doc.pdf file)


if you solve it by other way let me know please.
*
Hi,

Could anyone please tell me how to configure error models with a wireless
channel in ns2.28. Actually I tried it as mentioned in the manual like this:

$ns node-config -IncomingErrProc UniformErrProc

proc UniformErrProc {} {
set err [new ErrorModel]
$err unit pkt
$err rate_ 0.02
return $err
}

But it is giving error. Please help me to solve it.

Thanks
PBA




This message was sent using IMP, the Internet Messaging Program.



[ns] Xgraph reading and understanding

2006-03-04 Thread qadous

Hello NS users,

I don?t know how to specify the xgraph file (specifically *.tr file) contents
and then read it clearly.
Please send me any good tutorial about that subject.

Thank you in advance.



This message was sent using IMP, the Internet Messaging Program.



[ns] xgraph for wireless2.tcl example in Marc Geis' tutorial

2006-02-28 Thread qadous

dear ns users,

I have an problem in this example:
the error messages after running xgraph wireless2.tr are
Error in file `wireless2.tr' at line 725:
  Unknown line type
Error in file `wireless2.tr' at line 726:
  Unknown line type
Error in file `wireless2.tr' at line 727:
  Unknown line type
Error in file `wireless2.tr' at line 728:
  Unknown line type
Error in file `wireless2.tr' at line 729:

the example specify the following text for xgraph file formatting:

#puts $tracefd M 0.0 nn $opt(nn) x $opt(x) y $opt(y) rp \
#   $opt(adhocRouting)
#puts $tracefd M 0.0 sc $opt(sc) cp $opt(cp) seed $opt(seed)
#puts $tracefd M 0.0 prop $opt(prop) ant $opt(ant)
my environment ns-allineone-2.29/cygwin/winXP

appreciate the help ..
kind regards



This message was sent using IMP, the Internet Messaging Program.



[ns] Error Model in ns-2.29

2006-02-28 Thread qadous

Dear ns users,

Would you please send me examples for Error modeling in ns-22.9.

how to model that with wireless nodes.

The ns tutorial is not good enough.

thank you in advance.
Regards


This message was sent using IMP, the Internet Messaging Program.



[ns] wireless2.tcl example in Marc Geis' tutorial

2006-02-27 Thread qadous

Hi all,

I tried this example and I got the follwoing error:
***
[EMAIL PROTECTED] ~
$ ns wireless2.tcl
num_nodes is set 4
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
*** NOTE: no connection pattern specified.
Loading scenario file...
couldn't read file ../mobility/scene/scen-3-test: no such file or directory
while executing
source.orig ../mobility/scene/scen-3-test
(uplevel body line 1)
invoked from within
uplevel source.orig [list $fileName]
invoked from within
if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig [list $fileName]
...
(procedure source line 8)
invoked from within
source $opt(sc)
invoked from within
if { $opt(sc) ==  } {
puts *** NOTE: no scenario file specified.
set opt(sc) none
} else {
puts Loading scenario file...
source $op...
(file wireless2.tcl line 183)

***
the scenario file is available in my computer, I changed the path for several
and different ways. I don't know what's the correct path for this file.
in my pc the path is:

C:\cygwin\home\Administrator\ns-allinone-2.29\ns-2.29\tcl\mobility\scene

I read before that there is an error in this example ??!!
thank you in advance



This message was sent using IMP, the Internet Messaging Program.



[ns] Moving Variables between the connections level

2006-02-26 Thread qadous

Dear All,

I'm looking for a good knowledge about how to share the variables between a two
layers of ns2 layers.

Such as: I need to share an information (variable) between the MAC layer and FTP
layer, how this could ne done insdie the NS2.

By the way, my environment is: ns2-allinone-2.29, cygwin, and WinXP.

Kind Regards


This message was sent using IMP, the Internet Messaging Program.