[ns] translate sockets in NS

2007-02-01 Thread nabila


Hi,
I have a program in c that uses sockets for sending and receiving data(udp 
and TCp), I will use this program in ns , I would like to know if there is
an easy way to adapt sockets to ns

thanks for help
Nabila 
-- 
View this message in context: 
http://www.nabble.com/translate-sockets-in-NS-tf3157416.html#a8756470
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Urgent: Bandwidth allocation in wireless ad hoc

2007-02-01 Thread Muhammad Azam Akram

Hi
I am working on wireless ad hoc networks. 
I have simple scenario in which one node is sending packets to other.
I set packet size 512 bytes and interval between each packet is 0.0025.
it means application layer (CBR) generate total 1/0.0025 = 400 packets in a 
second. Each packet is 512x8 = 4096 bits (512 bytes).
It means application layer is generating 1.6384 Mbits per second. 
I have set,
 
 Mac/802_11 set bandwidth_11Mb  

 Mac/802_11 set PreambleLength_  144
 Mac/802_11 set PLCPHeaderLength_ 48
 Mac/802_11 set PLCPDataRate 1.0e6 
 Mac/802_11 set dataRate_ 20M
 
 Mac/802_11 set ShortRetryLimit_ 7
 Mac/802_11 set LongRetryLimit_ 4
 Mac/802_11 set MinimumBandwidth_ 11mb
===
Sending application layer is generating packets at rate of 1.6384 Mbps but 
receiver is getting data at  rate of just 0.7 Mbps, which is very less, almost 
half.
Interesting thing is that when I change 
Mac/802_11 set PLCPDataRate 1.0e6  
to
Mac/802_11 set PLCPDataRate 11.0e6 
because I need total 11 Mbps bandwidth. this throughput increases from 0.7 to 
0.8 Mbps but still not 1.6384 Mbps.

 would be greatly thankful to you If anybody solve my problem.

Looking to get kind response from yourside. 
Regards
Azam

Muhammad Azam Akram
MSc Communication & Interactivity
Linköping University,
Linköping, Sweden.
Address: Tröskaregatan 11, 
Lambohov 58333, 
Linköping, Sweden.
Mobile: 00 46 73 569 06 77

 
-
Everyone is raving about the all-new Yahoo! Mail beta.


[ns] Urgent: bandwidth allocation in IEEE 802.11e

2007-02-01 Thread Muhammad Azam Akram

Hi
I am working on wireless ad hoc networks. 
I have simple scenario in which one node is sending packets to other.
I set packet size 512 bytes and interval between each packet is 0.0025.
it means application layer (CBR) generate total 1/0.0025 = 400 packets in a 
second. Each packet is 512x8 = 4096 bits (512 bytes).
It means application layer is generating 1.6384 Mbits per second. 
I have set,
 
 Mac/802_11 set bandwidth_11Mb  

 Mac/802_11 set PreambleLength_  144
 Mac/802_11 set PLCPHeaderLength_ 48
 Mac/802_11 set PLCPDataRate 1.0e6 
 Mac/802_11 set dataRate_ 20M
 
 Mac/802_11 set ShortRetryLimit_ 7
 Mac/802_11 set LongRetryLimit_ 4
 Mac/802_11 set MinimumBandwidth_ 11mb
===
Sending application layer is generating packets at rate of 1.6384 Mbps but 
receiver is getting data at rate of just 0.7 Mbps, which is very less, almost 
half.
Interesting thing is that when I change 
Mac/802_11 set PLCPDataRate 1.0e6  
to
Mac/802_11 set PLCPDataRate 11.0e6 
because I need total 11 Mbps bandwidth. this throughput increases from 0.7 to 
0.8 Mbps but still not 1.6384 Mbps.

 would be greatly thankful to you If anybody solve my problem.

Looking to get kind response from yourside. 
Regards
Azam


Muhammad Azam Akram
MSc Communication & Interactivity
Linköping University,
Linköping, Sweden.
Address: Tröskaregatan 11, 
Lambohov 58333, 
Linköping, Sweden.
Mobile: 00 46 73 569 06 77

 
-
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.


[ns] Cygwin with DAP??

2007-02-01 Thread Guess Me

any body know the url from where i can download cygwin with any download 
manager instead of that setup.exe from cygwin website???

 
-
Everyone is raving about the all-new Yahoo! Mail beta.


Re: [ns] problems to install ns

2007-02-01 Thread [EMAIL PROTECTED]

why don't you try the allinone version?

George

[EMAIL PROTECTED] wrote:
> Hi 
>
> I need to work with NS , but I heve problems to install it, first I install
> Tcl/Tk , otcl tclcl, without problems but when I try to install Ns I heve
> problems like this
>
> config.status: creating indep-utils/webtrace-conv/dec/Makefile
> config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
> config.status: creating indep-utils/webtrace-conv/epa/Makefile
> config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
> config.status: creating autoconf.h
> config.status: autoconf.h is unchanged
>
>
> may be someone can tell me whats happening and the solution.
>
> thanks.
> regards.
>
> -
> Sent from web mail gateway in DIT - ETSIT - UPM.
> Please, send hints or comments to [EMAIL PROTECTED]
>
>
>
>
>   




[ns] problems to install ns

2007-02-01 Thread huanca

Hi 

I need to work with NS , but I heve problems to install it, first I install
Tcl/Tk , otcl tclcl, without problems but when I try to install Ns I heve
problems like this

config.status: creating indep-utils/webtrace-conv/dec/Makefile
config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
config.status: creating indep-utils/webtrace-conv/epa/Makefile
config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
config.status: creating autoconf.h
config.status: autoconf.h is unchanged


may be someone can tell me whats happening and the solution.

thanks.
regards.

-
Sent from web mail gateway in DIT - ETSIT - UPM.
Please, send hints or comments to [EMAIL PROTECTED]




[ns] RE : Calculate Collisions in Wireless ad hoc networks

2007-02-01 Thread siad lamri

hi Muhammad;
it's very simple, you just count the number of COL in trace file .

you must test on other field of trace file :

$1 == "D"  && $5== "MAC" && $6 == "COL"

Muhammad Azam Akram <[EMAIL PROTECTED]> a écrit : 

Hi
I am working on wireless ad hoc networks. 
I have five different flows, and I wish to calculate collisions between 
packets of each flows.
I would be greatly appriciate if anybody guide me how to find out 
number of collisions for each flow.
Thank you.
Regards


Muhammad Azam Akram
MSc Communication & Interactivity
Linköping University,
Linköping, Sweden.
Address: Tröskaregatan 11, 
Lambohov 58333, 
Linköping, Sweden.
Mobile: 00 46 73 569 06 77

 
-
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get 
things done faster.



-
 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.


Re: [ns] (hier-rtg-100.tcl) doesnt run!?

2007-02-01 Thread Pedro Vale Estrela


If that script is not in /tcl/test, it  is not part of the standard test
suites, and thus it can be outdated. 

Try to find the equivalent script (for hierarchial tests) in this directory
that is guaranteed to run

Also, check
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 feel2chat
> Sent: quarta-feira, 31 de Janeiro de 2007 16:36
> To: ns-users@ISI.EDU
> Subject: [ns] (hier-rtg-100.tcl) doesnt run!?
> 
> 
> Hi,
> 
> Each time I run the script hier-rtg-100.tcl (which comes with ns-allinone)
> it gives me the following error, I wonder whats the problem??
> 
> =
> Sim.: utime/stime: 147 9stack/heap: -6976 1892352
> Creating hierarchical nodes..
> 0...Creating links 0...
> 
> (_o3 cmd line 1)
> invoked from within
> "_o3 cmd duplex-link-of-interfaces _o14 _o614 5Mb 410ms DropTail"
> invoked from within
> "catch "$self cmd $args" ret"
> invoked from within
> "if [catch "$self cmd $args" ret] {
> set cls [$self info class]
> global errorInfo
> set savedInfo $errorInfo
> error "error when calling class $cls: $args" $..."
> (procedure "_o3" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "$ns duplex-link-of-interfaces $n(0) $n(75) $linkBW 410ms DropTail"
> (procedure "create-hier-topology" line 126)
> invoked from within
> "create-hier-topology $linkBW"
> (file "hier-rtg-100.tcl" line 15)
> =
> 
> Any hints or ideas in solving this annoying problem will be appreciated..
> 
> Thank you,
> Zee




Re: [ns] What is error CBK?

2007-02-01 Thread Pedro Vale Estrela


Do:
"grep "CBK" */*"

result:
doc/mobility.tex:\item["CBK"]  DROP\_RTR\_MAC\_CALLBACK
...
trace/cmu-trace.h:#define DROP_RTR_MAC_CALLBACK   "CBK"   // MAC
callback



then:
[EMAIL PROTECTED]:C:[cims]$ grep "DROP_RTR_MAC_CALLBACK" */*
aodv/aodv.cc: drop(p, DROP_RTR_MAC_CALLBACK);
aodv/aodv.cc:drop(p, DROP_RTR_MAC_CALLBACK);
aodv/aodv.cc:drop(p, DROP_RTR_MAC_CALLBACK);
aodv/aodv.cc:drop(p, DROP_RTR_MAC_CALLBACK);
aodv/aodv.cc: drop(p, DROP_RTR_MAC_CALLBACK);
aodv/aodv.cc:   dr


Pedro Vale Estrela


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Vijay Ghorpade
> Sent: quarta-feira, 31 de Janeiro de 2007 5:39
> To: ns_users
> Subject: [ns] What is error CBK?
> 
> 
>   Hi,
>  I am using ns-2.28 mobile nodes and generating a trace file with new-
> trace. In the trace file i found that some packets are getting dropped and
> the reason is CBK.
>  What is correct meaning of CBK?
>  How to avoid CBK errors in a network?
>  Why such type of errors occur?
> 
> Regards
> 
> Vijay




[ns] Node add/removal processes in nam

2007-02-01 Thread Irini Karapistoli

Hi to all ns-users,

Though a newbie in ns, I already find out that it is a very powerful 
simulation tool! Thanks to every ns-developer!

What I wanted to ask is whether the nam visualization tool can support 
(display) node add/removal processes.

To be more specific, by encorporating an energy model in my 802.15.4 
wireless sensor network,
wireless nodes will stop operating once their energy is expended.

What I need therefore, is to visualize the above node failure process 
and see how the network behaves around these "dead-zones".

Is that possible? I would be pleased if you provided me with any code 
(or hints) dealing with the above processes.

Thank you all in advance.

Irini



[ns] [urgent][help] How to add a value at the end of each row of the wireless trace file.

2007-02-01 Thread siad lamri

dear all;

In my simulations, i want to make some modifications in ns code (C++ or Tcl) in 
order to add an other entry to my trace file. i explain more, i'm simulation an 
Ad Hoc network (802.11) using ns. in order to study the contention window (CW_) 
of backoff procedure i need to trace this variable, that is implemented but not 
binded, in  the trace file when collisionis made.

i want to add at the end of each row in the wireless trace file the value of 
CW_.


thanx in advance.

please help me it's urgent, and the deadline will after some days.


-
 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] Calculate Collisions in Wireless ad hoc networks

2007-02-01 Thread Muhammad Azam Akram


Hi
I am working on wireless ad hoc networks. 
I have five different flows, and I wish to calculate collisions between 
packets of each flows.
I would be greatly appriciate if anybody guide me how to find out 
number of collisions for each flow.
Thank you.
Regards


Muhammad Azam Akram
MSc Communication & Interactivity
Linköping University,
Linköping, Sweden.
Address: Tröskaregatan 11, 
Lambohov 58333, 
Linköping, Sweden.
Mobile: 00 46 73 569 06 77

 
-
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get 
things done faster.


[ns] need urgent help about mobile node movement in nam

2007-02-01 Thread amira bourayou

hello!
 how to visualize the movement of the mobile node  in nam? after
the creation of the nodes.on has exchange their positions with the command:
*$noeud($i) set X_ valx
$noeud($i) set Y_ valy*
 and it works but it is not visible with the level of the nam then one
tested with the order :
*$ns at [$ns now] "$noeud($i) setdest valx valy vitess"*
and the following error was received:
ns: _o10 setdest 50 20 9:
(_o10 cmd line 1)
invoked from within
"_o10 cmd setdest 50 20 9"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o10" line 2)
(SplitObject unknown line 2)
invoked from within
"_o10 setdest 50 20 9"

one tried to make :
*$ns at [$ns now] "$noeud($i) set X_ valx"
$ns at [$ns now] "$noeud($i) set Y_ valy"*
**
 that does not work also then please help us it's urgent. how to make it? if
you can sent to us to make a script of creation of a node and it change
position and  that is visible in the nam.
regards


[ns] How "really" change transmission range

2007-02-01 Thread [EMAIL PROTECTED]

Hi all,

I have a problem in a wired-cum-wireless scenario:
in my scene, there are 4 Base Station that make a square.
The distance betwen 2 BS is 1000 m.
I want the transmission range of every BS to be 750m, so that
a mobile node doesn' t lose packets when passes from a BS to another.

I tried to modify the RXthresh_  parameter in the Phy/WirelessPhy field,
according to the program threshold.cc, but in the simulations nothing changes:
The mobile node begins to lose packets 200 m past the BS and resumes the 
connection
200 m before the next BS. In some cases, it resumes the connection 10 m before 
the BS.
So the mobile node moves for 600 to 800 m without a connection and all the 
packets drop.

Then i tried to modify the Pt_ variable. I put it to 1.0, 2.0 and also 20.0. It 
doesn' t change 
anything.

Then I tried to modify txPower and rxPower of the BSs, I put them to 1000. But 
nothing 
changed.

So I surrender to the idea that in ns2 the transmission range cannot change.

If someone would show me that I am wrong, I would be much obliged.

Thanks in advance!

Salvatore



--
Scopri se hai Vinto un Tv Color LCD! Clicca qui
http://click.libero.it/webnation1febb07





[ns] query in simple tcl script

2007-02-01 Thread khushali shah

hello 
  frnds,
  in simple tcl script if we are using cbrgen.tcl for speed of the node and max 
.connection after that ..it wil  not generate a connection as we specify in 
cbrgen.tcl ..why it is happening?if we specify 8 conn. enenthough it will 
generate 5 conn. so is that conne.acually created or not?
  khushali shah


-
 Here’s a new way to find what you're looking for - Yahoo! Answers