Re: [ns] new 802.11 - CAP proportion too big

2006-08-15 Thread mathieu lacage

On Mon, 2006-08-14 at 23:54 +0100, Pedro Fortuna wrote:
 I'll do my best trying to find the problem. I'll submit a patch if I
 succeed correcting it (assuming there's a problem).
 
 There is a question on the DCF implementation part I'd like to ask if
 you don't mind. It seems that there's no Packet Loss. I know 802.11
 DCF MAC's is an acknowledged service with up to 7 retransmissions,
 which eliminates almost every packet loss due to transmission errors.
 But shouldn't it at least have some packet loss due to limited queue
 sizes?
 
 I have done a simulation where I create 200 nodes exchanging 400 voip
 flows and although the maximum delay is a lot higher when compared
 with a 20 or 50 node simulation, it still does not show any packet
 loss. This suggests that in your implementation you have a very long
 queue (or infinite size). Is this true? If so, In your opinion, would
 it be complicated to implement a limited queue size?

I cannot remember if the queue is size-bound or delay-bound. My curent
code (in yans) is both size and delay bound with a default size of 400
packets. The relevant code is located in mac-queue-80211.cc.

Mathieu



[ns] olsr implementation

2006-08-15 Thread Ramzi Tka

hi evrybody,
is there any available OLSR implentation under ns-2.? if yes, how could i
get it ?
thanks a lot
ramzi tka


Re: [ns] create environment problem in cygwin

2006-08-15 Thread Sven Ehlert


Hi,

I don't think it makes sense to put all the /cygdrive/c/ stuff in your
path - remember, that under Cygwin /cygdrive/c/cygwin/ already point to
your root (/) dir - so it might help if you only put /ns-allinone.../bin
into your PATH

Regards
/Sven


Mohadig Rousstia wrote:

dear all
  
  I have a problem, which is perhaps simple, but that is really consuming  my all. So please help me regarding crating the environment. I have  made this:
  
  export  PATH=$PATH:/cygdrive/c/cygwin/ns-allinone-2.29/bin:/cygdrive/c/cygwin/ns-allinone-2.29/tcl8.4.11/unix:/cygdrive/c/cygwin/ns-allinone-2.29/tk8.4.11/unix
  
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/cygdrive/c/cygwin/ns-allinone-2.29/otcl-1.11:/cygdrive/c/cygwin/ns-allinone-2.29/lib
  
  export TCL_LIBRARY=$TCL_LIBRARY:/cygdrive/c/cygwin/ns-allinone-2.29/tcl8.4.11/library
  
  and also any kind of slight modification from the FAQ(still didnt  work), since that was not working. I have tried to put it in(home  directory) bashrc, bash_profile and also in(etc directory) bash, chsrc,  profile. And also any combination of those and combination script  above. That is really consuming time and my patience. perhaps anybody  can help me, please.
  
  Thank you
  
  Best Regards
  
  Mohadig Widha R
  
 		

-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.




[ns] Web traffic simulator that can allow multiple client to one server

2006-08-15 Thread lekkie omotayo

Hi guys,

I was just wondering if I can get an HTTP traffic application simulator
(like packmime) but that can send can allow one web server to server
multiple clients. Presently, packmime do not support this, it only allows a
one-to-one client/server config.

Any suggestion will be appreciated. Also, when analysin http traffic, what
are the permance metrics to watch out for, apart from bandwidth consumption
and latency?

Lekkie.


Re: [ns] Web traffic simulator that can allow multiple client to one server

2006-08-15 Thread sorin pasa

Hi, lekkie
   
  I'm sending you a script with a web server, a cache server and a router that 
connects them with the point of entrance for 30 (=clients_num) clients.
  In surveying the http (actually is tcp) traffic, you can calculate 
bandwidth (be careful about the difference between B and throughput), delay, 
jitter, number of dropped packets (important), etc.
 Best of luck!
   
  set ns [new Simulator]
set nf [open tcpweb.nam w]
$ns namtrace-all $nf
set allchan [open all.tr.tcp w]
$ns trace-all $allchan
proc finish {} {
global ns nf allchan
$ns flush-trace
close $nf
close $allchan
  exec nam tcpweb.nam 
exit 0}
  
set clients_num 30
for {set i 1} {$i = $clients_num} {incr i} {
  set peer($i) [$ns node]
}
set jurancon [$ns node]
set lrmon3 [$ns node]
set lmcrt0 [$ns node]
set lmcrt1 [$ns node]
set jacob2 [$ns node]
#legarea nodurilor si a serverelor de fisiere
  for {set i 1} {$i = $clients_num} {incr i} {
  $ns duplex-link $peer($i) $jurancon .5Mb 30ms DropTail
}
$ns duplex-link $jurancon $lrmon3 .5Mb 30ms DropTail
$ns duplex-link $lrmon3 $lmcrt0 .5Mb 30ms DropTail
$ns duplex-link $lrmon3 $lmcrt1 .5Mb 30ms DropTail
$ns duplex-link $lmcrt0 $jacob2 .5Mb 30ms DropTail
$ns duplex-link $lmcrt0 $lmcrt1 .5Mb 30ms DropTail
  set server [new Http/Server $ns $jacob2]
for {set i 1} {$i = $clients_num} {incr i} {
   set client($i) [new Http/Client $ns $peer($i)]
  }
set cache [new Http/Cache $ns $lmcrt1]
  # Create page pool as a central page generator. Use PagePool/Math
  set pgp [new PagePool/Math]
set tmp [new RandomVariable/Constant]
$tmp set val_ 4096  ## average page size;
$pgp ranvar-size $tmp
set tmp [new RandomVariable/Exponential]
$tmp set avg_ 6 ## average page age;
$pgp ranvar-age $tmp
$server set-page-generator $pgp
set tmp [new RandomVariable/Exponential]
$tmp set avg_ 0.5 ## average request interval;
for {set i 1} {$i = $clients_num} {incr i} {
$client($i) set-interval-generator $tmp
$client($i) set-page-generator $pgp
}
  # Schedule events
  set startTime 1
set finishTime 9
$ns at $startTime start-connection
$ns at $finishTime finish
$ns at 10 finish2
proc start-connection {} {
global ns server cache client clients_num
for {set i 1} {$i = $clients_num} {incr i} {
$client($i) connect $cache
$cache connect $server
$client($i) start-session $cache $server}
}
proc finish2 {} {
global ns log
$ns flush-trace
flush $log
close $log}
$ns run
 

lekkie omotayo [EMAIL PROTECTED] wrote:
  
Hi guys,

I was just wondering if I can get an HTTP traffic application simulator
(like packmime) but that can send can allow one web server to server
multiple clients. Presently, packmime do not support this, it only allows a
one-to-one client/server config.

Any suggestion will be appreciated. Also, when analysin http traffic, what
are the permance metrics to watch out for, apart from bandwidth consumption
and latency?

Lekkie.



-
Get your email and more, right on the  new Yahoo.com 


[ns] code for the integration of wlan/umts

2006-08-15 Thread nadine mansour


Hi everyone,

I was reading so many articles of the integration WLAN/UMTS which include
some ns simulation results and I have been searching for ns code but I
didn’t found any so if anyone has codes for such integration I would like to
know it will be very helpful.

So I’m waiting for anybody help,

Thank you in advance.

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




[ns] Emulation Error - Ping Responder, help needed!

2006-08-15 Thread vngo

Hi everyone,

I am a newbie with NS2 and trying to use nse to run a simple ping responder
script on a Linux machine but I get the following error message:


pcap/live object (_o11) couldn't open packet source fxp0: socket: Operation not
permitted
 
(_o11 cmd line 1)
invoked from within
_o11 cmd open readonly fxp0
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 _o11 line 2)
(SplitObject unknown line 2)
invoked from within
$bpf open readonly fxp0 
(file emu1.tcl line 8)



The script is one made by Kevin Fall shown below:


set stoptime 200.0 ; # simulation end time (seconds)
set owdelay 1000ms ; # 1-way delay
set myaddr 10.11.12.13
set ns [new Simulator] ; # create simulator object
$ns use-scheduler RealTime ; # specify the real-time sync?d scheduler
set bpf [new Network/Pcap/Live]; # live traffic -- read IP pkts
$bpf set promisc_ true ; # use promiscuous mode
$bpf open readonly fxp0 ; # specify interface
set ipnet [new Network/IP] ; # live traffic -- write IP pkts
$ipnet open writeonly
$bpf filter icmp and dst $myaddr; # only ICMP packets for me
set pfa [new Agent/Tap]
set ipa [new Agent/Tap]
set echoagent [new Agent/PingResponder]
$pfa network $bpf ; # associate pf net object w/tap agent
$ipa network $ipnet ; # associate ip net object w/tap agent
# create topology in simulator
set node0 [$ns node]
set node1 [$ns node]
set node2 [$ns node]
$ns simplex-link $node0 $node2 100Mb $owdelay DropTail
$ns simplex-link $node2 $node1 100Mb $owdelay DropTail
# place agents in topology
$ns attach-agent $node0 $pfa; # packet filter agent
$ns attach-agent $node1 $ipa; # ip agent (for sending)
$ns attach-agent $node2 $echoagent
$ns simplex-connect $pfa $echoagent
$ns simplex-connect $echoagent $ipa
puts listening for pings on addr $myaddr...
$ns run ; # start emulation 




Does anyone know what the problem is?


Thanks,

Vincent Ngo




This mail sent through www.mywaterloo.ca



[ns] Emulation Basic Hardware Requirements

2006-08-15 Thread vngo

Hi all,

I have been trying to blindly run sample emulation scripts using nse without 
fully understanding the requirements needed to run them.  If I were to run a 
simple ping responder what requirements and steps would I need?  

ie.  I have a Linux machine connected to a LAN.  How many network cards do I 
need in it?  When I run an emulation script, do I need to go to another 
machine and manually ping the emulation machine and see if packets are 
displayed in the NAM?  Do other machines need to be involved in the emulation 
and have ns2 installed and running simultaneously?

Any input is greatly appreciated,

Vincent Ngo




This mail sent through www.mywaterloo.ca



Re: [ns] Emulation Basic Hardware Requirements

2006-08-15 Thread Renata Vidal

emulation or simulation?

On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hi all,

 I have been trying to blindly run sample emulation scripts using nse without
 fully understanding the requirements needed to run them.  If I were to run a
 simple ping responder what requirements and steps would I need?

 ie.  I have a Linux machine connected to a LAN.  How many network cards do I
 need in it?  When I run an emulation script, do I need to go to another
 machine and manually ping the emulation machine and see if packets are
 displayed in the NAM?  Do other machines need to be involved in the emulation
 and have ns2 installed and running simultaneously?

 Any input is greatly appreciated,

 Vincent Ngo



 
 This mail sent through www.mywaterloo.ca




-- 
Renata Vidal
Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos
ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN
TSU – pg 102)



[ns] Determining nodes along multihop path

2006-08-15 Thread ARNAB DAS

Hello,
I was wondering if there was a way to determine through what path of nodes a
packet takes.  I'm looking at my trace file using AODV for my wireless ad-hoc
network sim, and can't seem to see but a send and receive line for each
individual packet.  There is no indication of through what nodes a packet
traveled.  Any help would be greatly appreciated.
Thanks,
Arnab



[ns] Determine if there is connectivity in wireless

2006-08-15 Thread Giorgis Georgakoudis

Is there way to determine if there is connectivity in a wireless simulation 
because I want to do somethink similar to:

while(!network_up()) { //waiting}

ggeorgak



[ns] How to access my new ad hoc routing agent from the simulation script.tcl

2006-08-15 Thread Wissam El-Mallah

Hello Melvin and all ns users,

Normally, the specification of the ad hoc routing protocol(AODV for example)
which will be used by the mobiles nodes during simulation is like follow:

In tcl script ,where our scenario of simulation is described ,we do tow thinks:

First- In node options we do:
set val(rp) AODV

Second- In node configuration we do:
$ns_ node-config - adhocRouting $$val(rp)\

If my new protocol is called XYZ. it is right if I replace aodv by XYZ in the
first or there is more of things to add in the tcl script.

Any help would be greatly appreciated.
Regards,
Wissam.





[ns] Fwd: RED parameters

2006-08-15 Thread Bruno Correa

-- Forwarded message --
From: Bruno Correa [EMAIL PROTECTED]
Date: 15/08/2006 19:27
Subject: RED parameters
To: ns-users@isi.edu

Hi, I am new user of the ns. I am have problem with RED parameters, i set my
buffer for 100 packets, maxth for  95 packets and minth to 30 packtes in
file ns-default.tcl. But, my queue don't exceeds 50 packets. When the queue
arrives the 51 packets, the RED starts the drop of the packets Why?


Re: [ns] Emulation Basic Hardware Requirements

2006-08-15 Thread Vincent Ngo


It is for Emulation


Renata Vidal wrote:
 
 
 emulation or simulation?
 
 On 8/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Hi all,

 I have been trying to blindly run sample emulation scripts using nse
 without
 fully understanding the requirements needed to run them.  If I were to
 run a
 simple ping responder what requirements and steps would I need?

 ie.  I have a Linux machine connected to a LAN.  How many network cards
 do I
 need in it?  When I run an emulation script, do I need to go to another
 machine and manually ping the emulation machine and see if packets are
 displayed in the NAM?  Do other machines need to be involved in the
 emulation
 and have ns2 installed and running simultaneously?

 Any input is greatly appreciated,

 Vincent Ngo



 
 This mail sent through www.mywaterloo.ca


 
 
 -- 
 Renata Vidal
 Triste é o destino de quem tenta vencer as batalhas e ter sucesso nos
 ataques sem cultivar o espírito da iniciativa (A Arte da Guerra – SUN
 TSU – pg 102)
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Emulation-Basic-Hardware-Requirements-tf2111395.html#a5824272
Sent from the ns-users forum at Nabble.com.



[ns] Size's queue in RED

2006-08-15 Thread Bruno Correa

Hi, I am new user of the ns. I am have problem with RED parameters, i set my
buffer for 100 packets, maxth for  95 packets and minth to 30 packtes in
file ns-default.tcl. But, my queue don't exceeds 50 packets. When the queue
arrives the 51 packets, the RED starts the drop of the packets Why?


[ns] energy model problem for mac tdma protocol for sensor networks

2006-08-15 Thread prabhu annabathula

 I am working mac tdma protocol for sensor networks iam currently
   using ns-2.27,i need  eenrgy details of evry node, problem iam facing is
   that for ns2.27 enrgy model doesnt work for mac tdma protocl the energy
   doesnot reduce after transmission or reception for every node, it remains
   same as initial energy i googled it and found that for ns 2.27
   cmutrace.ccdoesnt give enrgy details where as ns
   2.29 is working perfectly as its cmutrace.cc is updated ,but iam not able
to
   use ns-2.29  bcoz sensornetworls extension is available only up to ns
2.27
   can anybody help me solve this problem i either want do make ns 2.27 give
   energy details for mac tdma or want NRLsensorsim 2.29 to extend ns 2.29for
   sensor netwoks.
the due date for my project is approaching i want a solution
as
   soon as possible . c u all . hope to get some replies.