[ns] queue resume/ block, unblock, Scheduleer; Event UID not valid

2007-03-18 Thread chakchai soin

Hello ns users,
I have problems that if I have no enqued packets, I can not make the packet 
being dequed out although the output link is empty and there are some 
packets in the queue. Actually it does not make sense; however, I believe 
it's the problem as some people have discussed (I copied the link down 
here). http://mailman.isi.edu/pipermail/ns-users/2002-January/020180.html
 Some people suggests that "
You can add an entry in the queue's command() function
that calls resume(). Then you can resume your queue in
$ns at 2.0 "$q_na_nb blocked_ false"
$ns at 2.0 "$q_na_nb set blocked_ false"
$ns at 2.0 "$q_na_nb resume"

   It seems that by debugging, the packets are dequed; however, there is an 
error said, "Scheduleer; Event UID not valid!". I wonder if there is anyone 
have this kind of problem?

Problem: error queue command:
Solution: make clean and make again
http://mailman.isi.edu/pipermail/ns-users/2002-March/020820.html

Problem: after make again, Scheduler: Event UID not valid
Solutioin: don't know yet ?
http://mailman.isi.edu/pipermail/ns-users/2002-January/020050.html

_
Interest Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate 
new payment 
http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-18466&moid=7581



[ns] I copied WFQ files to the ns2 and try to recompile but got following errors... anybody can help me...

2007-03-18 Thread Andrew C. Jung

My previous mail doesn't include error messages.  I re-send mail to you.
Please help for following error messages.

First I copied the 5 files
wfq.cc
wfqaggreg.cc
wfqclassifier.h
wfq-list.h
wfqsamplec.cc

in the "C:\cygwin\usr\local\ns-allinone-2.29\ns-2.29\queue" folder

then i went to the "C:\cygwin\usr\local\ns-allinone-2.29\ns-2.29 directory"
and gave the command ./configure

then I gave the command "make"

that gave me the following message with the error



for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec
indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr
indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
make[1]: Entering directory `/usr/local/ns-allinone-2.29/ns-2.29
/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/ns-allinone-2.29/ns-2.29
/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/usr/local/ns-allinone-2.29/ns-2.29
/indep-utils/webtrace-conv/dec'
g++ -c -Wall -DCPP_NAMESPACE=std -I. -I/usr/local/ns-allinone-2.29/tclcl-
1.17 -I/usr/local/ns-allinone-2.29/otcl-1.11
-I/usr/local/ns-allinone-2.29/include
-I/usr/local/ns-allinone-2.29/include -I/usr/include/pcap -o
proxytrace2any.o proxytrace2any.cc
proxytrace2any.cc: In function `int main(int, char**)':
proxytrace2any.cc:112: error: `IsLittleEndian' undeclared (first use this
function)
proxytrace2any.cc:112: error: (Each undeclared identifier is reported only
once for each function it appears in.)
proxytrace2any.cc:120: error: `ToOtherEndian' undeclared (first use this
function)
make[1]: *** [proxytrace2any.o] Error 1
make[1]: Leaving directory `/usr/local/ns-allinone-2.29/ns-2.29
/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/usr/local/ns-allinone-2.29/ns-2.29
/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/ns-allinone-2.29/ns-2.29
/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/usr/local/ns-allinone-2.29/ns-2.29
/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/ns-allinone-2.29/ns-2.29
/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/usr/local/ns-allinone-2.29/ns-2.29
/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/ns-allinone-2.29/ns-2.29
/indep-utils/webtrace-conv/ucb'


-Andrew-


[ns] I copied WFQ files to the ns2 and try to recompile but got following errors... anybody can help me...

2007-03-18 Thread Andrew C. Jung

Dear everyone,

   While I was working on adding WFQ, I got following errors.  Please
help

First I copied the 5 files
wfq.cc
wfqaggreg.cc
wfqclassifier.h
wfq-list.h
wfqsamplec.cc

in the "C:\cygwin\usr\local\ns-allinone-2.29\ns-2.29\queue" folder

then i went to the "C:\cygwin\usr\local\ns- allinone-2.29\ns-2.29 directory"
and gave the command ./configure

then I gave the command "make"

that gave me the following message with the error


for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec
indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr
indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
make[1]: Entering directory `/usr/local/ns-allinone-2.29/ns-2.29
/indep-utils/cmu-scen-gen/setdest'

Sincerely,

Andrew Jung


[ns] xcast simulation under ns2.2.7

2007-03-18 Thread omar almomani

dear all ns users 

when i run simulation for the Xcast code i got the
following error so anyone can help me .

Xcast/Xcast.cc: In member function `virtual int
Xcast::command(int, const char*
   const*)':
Xcast/Xcast.cc:76: invalid conversion from `const
char*' to `char*'
Xcast/Xcast.cc:98: invalid conversion from `const
char*' to `char*'
Xcast/Xcast.cc:123: invalid conversion from `const
char*' to `char*'
Xcast/Xcast.cc:126: invalid conversion from `const
char*' to `char*'
Xcast/Xcast.cc: In member function `virtual void
Xcast::recv(Packet*,
   Handler*)':
Xcast/Xcast.cc:159: invalid conversion from `const
char*' to `char*'
Xcast/Xcast.cc:188: invalid conversion from `const
char*' to `char*'
Xcast/Xcast.cc:217: invalid conversion from `const
char*' to `char*'
Xcast/Xcast.cc:220: invalid conversion from `const
char*' to `char*'
make: *** [Xcast/Xcast.o] Error 1
[EMAIL PROTECTED] ns-2.27]#


 

No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 



Re: [ns] How send only one bit?

2007-03-18 Thread juliana juliana

  Hi,

I need send only 1 bit (not byte). 
Anybody knows how I can send 1 bit, 2 bits or 3 bits?

The field packetSize in the class Agent set the size of the packets
in bytes, mas I need only bits.
   
  I need that the ns calcule the cost to send only one bit, not one byte.
   
  Anybody can help me?
   
  Gustavo, can you?
   
  Thanks!
  Merci!

 __
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 


[ns] program for fresh algo

2007-03-18 Thread muna mohammed

Hi ppl...
 
Can anybody help me by sending me the frsh algo program Iv tried coding 
it.. But din manage to do so successfully.
 
Thanks...
 
Regards
 
Muna
 
_
Windows Live Spaces is here! It’s easy to create your own personal Web site.
http://spaces.live.com/?mkt=en-in


[ns] I hope to have the answer !!!!!!!!!!!!!!!!!!!!

2007-03-18 Thread leticia bela

Hi all,
  How can I calculate the busy time for a node under ns2
   
  Best regards


-
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.


[ns] I neeh help for my script with MW-node patch

2007-03-18 Thread Elena Putzolu

Hi ns-users,
I have installed in ns-2.30 patch MW-node, 
http://www.q2s.ntnu.no/~paquerea/ns.html
through my script, would purely like to simulate a net wireless, where 
presents of Access Point (2) and the mobile nodes(3). Access Point 
communicate between them through the standard 802.11a, while the mobile 
nodes only communicate cross Access Point with the standard 802.11b/gm. 
Therefore Access Point need 2 interfaces with different settings ( 
802.11a, 802.11b/g ) using pach and the commands I have found in the 
manual tried to set up all these elements in my script:

global val_
set val_(channel)Channel/Wireless;# channel
set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model

set val_a(phy) Phy/WirelessPhy  ;# physical layer
set val_b(phy) Phy/WirelessPhy  ;# physical layer

set val_a(mac) Mac/802_11   ;# mac layer
set val_b(mac) Mac/802_11   ;# mac layer

set val_(ifq)  Queue/DropTail/PriQueue  ;# interface 
queue type
set val_(ll) LL   ;# link layer type
set val_(antenna) Antenna/OmniAntenna  ;# antenna model
set val_(ifqlen) 50   ;# max packet in ifq

set val_(routing)  InterfaceWirelessRoutingProtocol   ;# routing

set val_(x)150
set val_(y)150
set val_(tr)   esercizi/out4.tr   ;# 
trace file
set val_(namtr)esercizi/out4.nam  ;# nam 
trace file
set val_(stopTime)   15


proc init {} {
global val_ tracefd_ namfd_ ns_
set ns_ [new Simulator]
set tracefd_ [open ./$val_(tr) w]
$ns_ trace-all $tracefd_
set namfd_ [open ./$val_(namtr) w]
$ns_ namtrace-all-wireless $namfd_ $val_(x) $val_(y)
}

proc finish {} {
global val_ tracefd_ namfd_ ns_ node_
for {set i 0} {$i < $val_(nMn) } {incr i} {
$ns_ at $val_(stopTime) "$node_($i) reset"
}
$ns_ flush-trace
close $tracefd_
close $namfd_
exit 0
}

global ns_

init


 $val_a(mac) set SlotTime_  0.50;# 50us
 $val_a(mac) set SIFS_  0.28;# 28us
 $val_a(mac) set PreambleLength_0   ;# no preamble_
 $val_a(mac) set PLCPHeaderLength_  128 ;# 128 bits
 $val_a(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_a(mac) set dataRate_  54.0e6  ;# 54Mbps
 $val_a(mac) set basicRate_ 1.0e6   ;# 1Mbps

###802.11b/g

 $val_b(mac) set SlotTime_  0.20;# 20us
 $val_b(mac) set SIFS_  0.10;# 10us
 $val_b(mac) set PreambleLength_144 ;# 144 bits 
preamble
 $val_b(mac) set PLCPHeaderLength_  48  ;# 48 bits
 $val_b(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_b(mac) set dataRate_  11.0e6  ;# 11Mbps or 
54Mbps(802.11g)
 $val_b(mac) set basicRate_ 1.0e6   ;# 1Mbps

 $val_a(phy) set Pr_ 8.9175e-10 
 $val_a(phy) set Pt_ 0.2818
 $val_a(phy) set freq_ 5.0e+9
# Receive sensitivity.
 #./threshold.out -m TwoRayGround -r 0.95 -Pt 0.2818 -Gt 1 -Gr 1 -fr 
5.0e+9 200; Calcola RXThresh_
 $val_a(phy) set RXThresh_  1.60607e-10
 $val_a(phy) set CSThresh_ [expr 0.9*[$val_a(phy) set RXThresh_]]  

 $val_b(phy) set Pr_ 8.9175e-10 
 $val_b(phy) set Pt_ 0.007214
 $val_b(phy) set freq_ 2.4e+9
 $val_b(phy) set RXThresh_  7.138e-11
 $val_b(phy) set CSThresh_ [expr 0.9*[$val_b(phy) set RXThresh_]]

## 802.11g
 $val_b(phy) set DSSS_CWMin 15
 $val_b(phy) set DSSS_CWMax 1023
 $val_b(phy) set DSSS_SlotTime 0.09   
 $val_b(phy) set DSSS_CCATime  0.03   
 $val_b(phy) set DSSS_RxTxTurnaroundTime 0.02   
 $val_b(phy) set DSSS_SIFSTime 0.16
 $val_b(phy) set DSSS_PreambleLength 96
 $val_b(phy) set DSSS_PLCPHeaderLength 40   
 #$val_b(phy) set DSSS_PLCPDataRate   6.0e6// 6Mbps
 #$val_b(phy) set DSSS_MaxPropagationDelay0.005// 0.5us

#---create topography
set topography_ [new Topography]
$topography_ load_flatgrid $val_(x) $val_(y)

$ns_ node-config -addressType hierarchical
AddrParams set domain_num_ 1
lappend cluster_num 2
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 3 2
AddrParams set nodes_num_ $eilastlevel
puts "Configuration of hierarchical addressing done"


# init GOD
create-god 5

$ns_ wireless-config-routing$val_(routing)\
-mac$val_a(mac)\
-phy$val_a(

[ns] I need help for my script with mw-node patch

2007-03-18 Thread Elena Putzolu

Hi ns-users,
I have installed in ns-2.30 pach MW-node, 
http://www.q2s.ntnu.no/~paquerea/ns.html
through my script, would purely like to simulate a net wireless, where 
presents of Access Point (2) and the mobile nodes(3). Access Point 
communicate between them through the standard 802.11a, while the mobile 
nodes only communicate cross Access Point with the standard 802.11b/gm. 
Therefore Access Point need 2 interfaces with different settings ( 
802.11a, 802.11b/g ) using pach and the commands I have found in the 
manual tried to set up all these elements in my script:

global val_
set val_(channel)Channel/Wireless;# channel
set val_(propagation) Propagation/TwoRayGround ;# radio-propagation model

set val_a(phy) Phy/WirelessPhy  ;# physical layer
set val_b(phy) Phy/WirelessPhy  ;# physical layer

set val_a(mac) Mac/802_11   ;# mac layer
set val_b(mac) Mac/802_11   ;# mac layer

set val_(ifq)  Queue/DropTail/PriQueue  ;# interface 
queue type
set val_(ll) LL   ;# link layer type
set val_(antenna) Antenna/OmniAntenna  ;# antenna model
set val_(ifqlen) 50   ;# max packet in ifq

set val_(routing)  InterfaceWirelessRoutingProtocol   ;# routing

set val_(x)150
set val_(y)150
set val_(tr)   esercizi/out4.tr   ;# 
trace file
set val_(namtr)esercizi/out4.nam  ;# nam 
trace file
set val_(stopTime)   15


proc init {} {
global val_ tracefd_ namfd_ ns_
set ns_ [new Simulator]
set tracefd_ [open ./$val_(tr) w]
$ns_ trace-all $tracefd_
set namfd_ [open ./$val_(namtr) w]
$ns_ namtrace-all-wireless $namfd_ $val_(x) $val_(y)
}

proc finish {} {
global val_ tracefd_ namfd_ ns_ node_
for {set i 0} {$i < $val_(nMn) } {incr i} {
$ns_ at $val_(stopTime) "$node_($i) reset"
}
$ns_ flush-trace
close $tracefd_
close $namfd_
exit 0
}

global ns_

init


 $val_a(mac) set SlotTime_  0.50;# 50us
 $val_a(mac) set SIFS_  0.28;# 28us
 $val_a(mac) set PreambleLength_0   ;# no preamble_
 $val_a(mac) set PLCPHeaderLength_  128 ;# 128 bits
 $val_a(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_a(mac) set dataRate_  54.0e6  ;# 54Mbps
 $val_a(mac) set basicRate_ 1.0e6   ;# 1Mbps

###802.11b/g

 $val_b(mac) set SlotTime_  0.20;# 20us
 $val_b(mac) set SIFS_  0.10;# 10us
 $val_b(mac) set PreambleLength_144 ;# 144 bits 
preamble
 $val_b(mac) set PLCPHeaderLength_  48  ;# 48 bits
 $val_b(mac) set PLCPDataRate_  1.0e6   ;# 1Mbps
 $val_b(mac) set dataRate_  11.0e6  ;# 11Mbps or 
54Mbps(802.11g)
 $val_b(mac) set basicRate_ 1.0e6   ;# 1Mbps

 $val_a(phy) set Pr_ 8.9175e-10 
 $val_a(phy) set Pt_ 0.2818
 $val_a(phy) set freq_ 5.0e+9
# Receive sensitivity.
 #./threshold.out -m TwoRayGround -r 0.95 -Pt 0.2818 -Gt 1 -Gr 1 -fr 
5.0e+9 200; Calcola RXThresh_
 $val_a(phy) set RXThresh_  1.60607e-10
 $val_a(phy) set CSThresh_ [expr 0.9*[$val_a(phy) set RXThresh_]]  

 $val_b(phy) set Pr_ 8.9175e-10 
 $val_b(phy) set Pt_ 0.007214
 $val_b(phy) set freq_ 2.4e+9
 $val_b(phy) set RXThresh_  7.138e-11
 $val_b(phy) set CSThresh_ [expr 0.9*[$val_b(phy) set RXThresh_]]

## 802.11g
 $val_b(phy) set DSSS_CWMin 15
 $val_b(phy) set DSSS_CWMax 1023
 $val_b(phy) set DSSS_SlotTime 0.09   
 $val_b(phy) set DSSS_CCATime  0.03   
 $val_b(phy) set DSSS_RxTxTurnaroundTime 0.02   
 $val_b(phy) set DSSS_SIFSTime 0.16
 $val_b(phy) set DSSS_PreambleLength 96
 $val_b(phy) set DSSS_PLCPHeaderLength 40   
 #$val_b(phy) set DSSS_PLCPDataRate   6.0e6// 6Mbps
 #$val_b(phy) set DSSS_MaxPropagationDelay0.005// 0.5us

#---create topography
set topography_ [new Topography]
$topography_ load_flatgrid $val_(x) $val_(y)

$ns_ node-config -addressType hierarchical
AddrParams set domain_num_ 1
lappend cluster_num 2
AddrParams set cluster_num_ $cluster_num
lappend eilastlevel 3 2
AddrParams set nodes_num_ $eilastlevel
puts "Configuration of hierarchical addressing done"


# init GOD
create-god 5

$ns_ wireless-config-routing$val_(routing)\
-mac$val_a(mac)\
-phy$val_a(p