[ns] Nist- Diuc controls the Uplink channel?

2007-06-11 Thread Tiago Junqueira

Hi,


 Using the example datarate.tcl, the source is the Subscriber Station or MN0.
The frame is divided into 2, one for uplink another for downlink. The burst
profile for the Downlink is the Downlink Interval Usage Code (DIUC).
 My question is, why the maximum data transfered changes after changing the
modulation in the Downlink Channel, if the channel used is the Uplink controlled
with the UIUC?
 And if the MN0 is the sink node, and the fixed node is the UDP
source, it seems that the traffic also changes after changing the
DIUC? Is possible to have differente modulations, for the Uplink
channel and Downlink channel?

 Is there a command like [$wl_node set mac_(0)] set-diuc ,
to change the UL modulation?

 kindly, Tiago Junqueira



Re: [ns] hierarchical addressing and number of nodes

2007-06-11 Thread Pedro Vale Estrela


I have a proc in my page that does this in a very easy way!
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html

Pedro vale estrela


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Sérgio Alexandre
> Sent: quinta-feira, 7 de Junho de 2007 11:16
> To: pankaj kumar
> Cc: ns-users@ISI.EDU
> Subject: Re: [ns] hierarchical addressing and number of nodes
> 
> 
> if you :
> 
>  # Set NS Addressing
>   AddrParams set domain_num_ 9
>   AddrParams set cluster_num_ {9 9 9 9 9 9 9 9 9}
>   AddrParams set nodes_num_ {9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 etc..}
> 
> p. example you will have no problema running your simulation.
> Just raise the numbers.
> 
> 
> 
> 
> pankaj kumar wrote:
> > Hi All
> > i have following hierarchical addressing
> >
> >  # Set NS Addressing
> >   AddrParams set domain_num_ 2
> >   AddrParams set cluster_num_ {1 5}
> >   AddrParams set nodes_num_ {1 1 3 1 1 1}
> >
> > when i am trying to add new a node to the topology its giving
> segmentation
> > fault without changing above NS addressing.
> >
> > How i can overcome by this this problem ( or i have to change into #Set
> NS
> > Addressing??? )
> >
> > thanks and regards,
> > pankaj
> >
> >




[ns] ns-2 installation problem

2007-06-11 Thread zaid Abdul Karim

Hi ns users
   
  I am trying to install an older version of  ns-2(ns-2.1b8) on cygwin 
1.5.23 on a windows XP platform.
  I have installed all required cygwin components including gcc 
packages however i am getting the following error when installing ns.
   
   
  checking whether the c compiler gcc works ... no
  configure: error: installation or configuration problem: c compiler 
can not creat executables
  tcl8.3.2  configuration failed Exiting ...
   
  Could anyone help me on this 
  Thanks in advance

   
-
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 


[ns] classifier:: recv

2007-06-11 Thread Kwnstantina Palla

Hello again!
I am really confused with the function Classifier::recv.
Can anyone explain me what exactly this dunction does? I would be really
very careful.
If i understood well, when a packet arrives from the LL layer then it is
being forwarded to the Address Classifier.
There, what are the possible "roads" that the packet can follow?
I am using DSDV routing protocol.


If the node is the receiver of the packet, then it will be forwarded to the
port classifier, right?

If the node isn't the receiver then it will be forwarded through the
default_target_ (pointer) to the DSDV agent, right?

When will a packet be forwarded to the DSDV agent through the port 255 from
the port classifier? (i don't understand exactly the usage of this port 255)
Please, please reply!!!


Re: [ns] 802.11e TKN, little error. i give a nice website in return

2007-06-11 Thread Sim Tec

Sincerely thanks for the responce Sven.


I still have the same error.
I set up the tcl/lan/ns-mac.tcl as follows:

 if [TclObject is-class Mac/802_11e] {
 Mac/802_11e set delay_ 64us
 Mac/802_11e set ifs_ 16us
 Mac/802_11e set slotTime_ 16us
 Mac/802_11e set cwmin_ 16
 Mac/802_11e set cwmax_ 1024
 Mac/802_11e set rtxLimit_ 16
 Mac/802_11e set bssId_ -1
 Mac/802_11e set sifs_ 8us
 Mac/802_11e set pifs_ 12us
 Mac/802_11e set difs_ 16us
 Mac/802_11e set rtxAckLimit_ 1
 Mac/802_11e set rtxRtsLimit_ 3
Mac/802_11e set basicRate_ 1Mb  ;# set this to 0 if want to use bandwidth_
for
Mac/802_11e set dataRate_ 1Mb   ;# both control and data pkts
Mac/802_11e set cfb_ 0 ;# disables CFB
}



Should I follow these steps, step 7 seems to be very problematic

7. mac/wireless-phy.h:
   change
  enum ChannelStatus {IDLE, RECV, SEND};
 to
  enum ChannelStatus {IDLE, RECVING, SENDING};
   mac/wireless-phy.cc:
 replace all occurences of RECV and SEND (by RECVING and SENDING).

8. common/packet.h:
 add
  #define HDR_MAC802_11E(p) ((hdr_mac802_11e *)hdr_mac::access(p))

9. run ./configure; make clean; make depend; make in your ns directory

10. happy simulating :o) (e.g with the example script
../ns-x/mac/802.11e/multi_udpflows.tcl)


Sincere thanks and regards.










On 6/11/07, Sven Wiethoelter <[EMAIL PROTECTED]> wrote:
>
> On Jun 11, 2007, at 8:05 AM, Sim Tec wrote:
>
>
> >
> > Hello I am simulating with 802.11e and would love to use TKN
> >
> > I have the exact same problem that many people have had, but there
> > is no
> > solution posted for it.
> >
> Hi, the solution is always the same: Check your changes in the tcl
> files ;-) (see further below)
>
>
> > -In return, here is the Best website for NS-2 that I have found
> > on the
> > Internet. It is a very recent website also.
> > http://academic.csuohio.edu/yuc/mobile07/
> >
> > i am trying to apply the 802.11e patch for EDCA from TKN Berlin named
> > 'EDCA_ns-2_28-v1-0-1.tgz' on ns-2.30.
> >  i have followed all the steps
> > given in the README, but in vein..i am getting error when i run the
> > sample tcl script named "edca_multi_udpflows.tcl" provided in the
> > package. I tried another wireless scripts using the command "set val
> > (mac) Mac/802_11e" to get the following error --->
> >
> > invalid command name "Mac/802_11e"
> > while executing
> > "Mac/802_11e create _o54 "
> > 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 $mactype"
> > (procedure "_o44" line 10)
> > (Node/MobileNode add-interface line 10)
> > invoked from within
> > "$node add-interface $chan $propInstance_ $llType_ $macType_
> > $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_  $inerrProc_
> > $outerrProc_ $FECProc_"
> > (procedure "_o3" line 66)
> > (Simulator create-wireless-node line 66)
> > invoked from within
> > "_o3 create-wireless-node 1.0.0"
> > ("eval" body line 1)
> > invoked from within
> > "eval $self create-wireless-node $args"
> > (procedure "_o3" line 14)
> > (Simulator node line 14)
> > invoked from within
> > "$ns node 1.0.0"
> > invoked from within
> > "set BS(0) [$ns node 1.0.0]"
> > (file "edca_multi_udpflows.tcl" line 92)
> >
> > initially I thought that i might have made mistake in make & the
> > object file for mac-802_11e may not have been created, but when i
> > checked the mac directory the object files corresponding to all the
> > .cc scripts in the patch were present..
> >
> This relates to C++ stuff only. Tcl code is not compiled by "make".
> Thus, a successful "make" is not an indication that the Tcl stuff is
> correct, too.
>
>
> > what shall i do?
> >
> Check all your tcl settings.
>
> I guess that step 6 of the readme has not been applied properly:
>
> 6.  add to tcl/lan/ns-mac.tcl:
>if [TclObject is-class Mac/802_11e] {
>  ...
> copy settings of MAC/802.11
> (which are contained in this file) into this section
>  and at an "e" at the end of the "Mac/802_11" terms
> ...
> Mac/802_11e set cfb_ 0 ;# disables CFB
>}
>
> Best regards,
> Sven
>
>
> > please someone
> > help.."
> >
> > Can you please tell me how you overcame this, as I have the exact same
> > problem.
> >
> >  
> >
> >
> > Enjoy, and regards from Ireland.
> >
> >
>
>
>
>
>
>
>
>
>
>


[ns] {Spam?} Re: measure latency from tracefile

2007-06-11 Thread Sérgio Alexandre

There are plenty of scripts written in many languages for that purpose,
just search in the mailling list or g**gle it.

Samir Salman wrote:
> Guys,
>
> I got the tracefile of my new mac protocol. Any ideas how to measure  
> one-hop or end-end latency from the given data?
>
> thank you in advance,
>
> ~Samir
>
> 
>
>
>   



Re: [ns] How to use PATCH command in ns2?

2007-06-11 Thread Sidney Doria

Patch is an Unix/Linux/Cygwin tools, not a ns-2 tool. See this short manual:

http://www.cpqlinux.com/patch.html

It'll be useful for make your own patches in future.

Sidney Doria



2007/6/11, 魏于涛 <[EMAIL PROTECTED]>:
>
>
>
> Hello all,
>
> I want to install a patch for ns2. My ns version is 
> ns-allinone-2.29.2.tar.gz, my  patch is ns2292-gcc410.patch.
> My ns is in the directory /home/wyt/ns-allinone-2.29, the patch is in the 
> directory /home/wyt. I want to ask: what command should I use in order to 
> install the patch successfully?
>
> I used the following commands but they did not work:
>
> cd /home/wyt/ns-allinone-2.29
> patch -p0 /home/wyt/ns2292-gcc410.patch
>
> It seemed that the terminal stopped and I did not know what happened.
>
> Can anybody tell me how to use the PATCH command.? I read the mannual and 
> still could not understand it, especially what p0 and p1 means.
>
> Thank you.
>
> Yutao Wei
> CCMIP, Shandong University, Jinan, Shandong Province, P.R. China
> _
> 通过 Live.com 查看资讯、娱乐信息和您关心的其他信息!
> http://www.live.com/getstarted.aspx
>
>
>


-- 
Sidney Doria
Redes ad hoc móveis
Mestrado em Computação
UFCG
Brasil

"Nessa jornada, o conhecimento será o seu escudo..."
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] [bug] Validation Failure on Debian 4.0

2007-06-11 Thread panichi

[Bug Report]

-
Category:  Validation Failure
Package:   ns ns-2.31 released Mar 10, 2007
OS:Debian 4.0 
Environment Variables:
no
-
Description:

Setup:
Os Debian 4.0
ns-2.31 released Mar 10, 2007

I follow instruction at:
http://wiki.splitbrain.org/ns2

Description of Problem:
validate overall report: some tests failed:
 ./test-all-tcpHighspeed ./test-all-red ./test-all-cbq
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME
Notice that some tests in webcache will fail on freebsd when -O is turned on.
This is due to some event reordering, which will disappear when -g is turned 
on.make: *** [test] Error 1



Re: [ns] 802.11e TKN, little error. i give a nice website in return

2007-06-11 Thread Sven Wiethoelter

On Jun 11, 2007, at 8:05 AM, Sim Tec wrote:


>
> Hello I am simulating with 802.11e and would love to use TKN
>
> I have the exact same problem that many people have had, but there  
> is no
> solution posted for it.
>
Hi, the solution is always the same: Check your changes in the tcl  
files ;-) (see further below)


> -In return, here is the Best website for NS-2 that I have found  
> on the
> Internet. It is a very recent website also.
> http://academic.csuohio.edu/yuc/mobile07/
>
> i am trying to apply the 802.11e patch for EDCA from TKN Berlin named
> 'EDCA_ns-2_28-v1-0-1.tgz' on ns-2.30.
>  i have followed all the steps
> given in the README, but in vein..i am getting error when i run the
> sample tcl script named "edca_multi_udpflows.tcl" provided in the
> package. I tried another wireless scripts using the command "set val
> (mac) Mac/802_11e" to get the following error --->
>
> invalid command name "Mac/802_11e"
> while executing
> "Mac/802_11e create _o54 "
> 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 $mactype"
> (procedure "_o44" line 10)
> (Node/MobileNode add-interface line 10)
> invoked from within
> "$node add-interface $chan $propInstance_ $llType_ $macType_
> $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_  $inerrProc_
> $outerrProc_ $FECProc_"
> (procedure "_o3" line 66)
> (Simulator create-wireless-node line 66)
> invoked from within
> "_o3 create-wireless-node 1.0.0"
> ("eval" body line 1)
> invoked from within
> "eval $self create-wireless-node $args"
> (procedure "_o3" line 14)
> (Simulator node line 14)
> invoked from within
> "$ns node 1.0.0"
> invoked from within
> "set BS(0) [$ns node 1.0.0]"
> (file "edca_multi_udpflows.tcl" line 92)
>
> initially I thought that i might have made mistake in make & the
> object file for mac-802_11e may not have been created, but when i
> checked the mac directory the object files corresponding to all the
> .cc scripts in the patch were present..
>
This relates to C++ stuff only. Tcl code is not compiled by "make".  
Thus, a successful "make" is not an indication that the Tcl stuff is  
correct, too.


> what shall i do?
>
Check all your tcl settings.

I guess that step 6 of the readme has not been applied properly:

6.  add to tcl/lan/ns-mac.tcl:
if [TclObject is-class Mac/802_11e] {
  ...
 copy settings of MAC/802.11
 (which are contained in this file) into this section
  and at an "e" at the end of the "Mac/802_11" terms
 ...
 Mac/802_11e set cfb_ 0 ;# disables CFB
}

  Best regards,
Sven


> please someone
> help.."
>
> Can you please tell me how you overcame this, as I have the exact same
> problem.
>
>  
>
>
> Enjoy, and regards from Ireland.
>
>











[ns] How to use PATCH command in ns2?

2007-06-11 Thread 魏于涛


Hello all,
 
I want to install a patch for ns2. My ns version is ns-allinone-2.29.2.tar.gz, 
my  patch is ns2292-gcc410.patch.
My ns is in the directory /home/wyt/ns-allinone-2.29, the patch is in the 
directory /home/wyt. I want to ask: what command should I use in order to 
install the patch successfully?
 
I used the following commands but they did not work:
 
cd /home/wyt/ns-allinone-2.29
patch -p0 /home/wyt/ns2292-gcc410.patch
 
It seemed that the terminal stopped and I did not know what happened.
 
Can anybody tell me how to use the PATCH command.? I read the mannual and still 
could not understand it, especially what p0 and p1 means.
 
Thank you.
 
Yutao Wei 
CCMIP, Shandong University, Jinan, Shandong Province, P.R. China
_
通过 Live.com 查看资讯、娱乐信息和您关心的其他信息!
http://www.live.com/getstarted.aspx



[ns] fhmip patch on ns-2.31

2007-06-11 Thread pankaj kumar

hi all
i patched fhmip patch on ns-2.31, before patching ad-hoc routing protocol
were working but after patching following message is coming

[EMAIL PROTECTED]:~/ns-2.31> ./ns ~/experiment/wrls-dsdv.tcl
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
routes not yet computed
routes not yet computed
routes not yet computed
routes not yet computed
routes not yet computed
routes not yet computed
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 129.2
SORTING LISTS ...DONE!
end simulation

is anyone know, please help

thanks and regards,
pankaj