Re: [ns] simple question about node direction and speed

2008-04-25 Thread brahmiNadia


Thank you Hagen Paul

But really no comment about the way you replied  

Nadia




Hagen Paul Pfeifer-2 wrote:
 
 
 * brahmiNadia | 2008-04-23 03:22:40 [-0700]:
 
Hi,
I need to get mobile nodes direction and the speed in C++ 
do anyone has an idea about that? I'm not sure if the node in ns2 can know
its direction and speed at any time 
 
 It is up to you to specify the mobility model to pretend the speed,
 direction
 and therefore the moving behaviour. Ask google before you type you
 questions
 here - nobody will do your homework!
 
 HGN
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-ns-simple-question-about-node-direction-and-speed-tp16833970p16891444.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] important: TCP packet size

2008-04-25 Thread Levinsohn Chris M

Use the following code:

# setup a tcp connection across the n8-n18 link
# create a new tcp agent called tcp818
set tcp818 [new Agent/TCP]
# Set the source to be node n8
$ns attach-agent $n(8) $tcp818
# create a new TCP sink agent called sink
set sink818 [new Agent/TCPSink]
# set the sink to be node n18
$ns attach-agent $n(18) $sink818
# establish the TCP link between node n8 and node n18
$ns connect $tcp818 $sink818
# this assigns a flow indicator so flows can be distinguished in NAM
$tcp818 set fid_ 3
# this sets the packetsize to 1460bytes, the default is 1000bytes.
$tcp818 set packetSize_ 1460

# define an CBR application to go across CBR link cbr818
set cbr818 [new Application/Traffic/CBR]
$cbr818 attach-agent $tcp818
$cbr818 set packetSize_ 1460
$cbr818 set rate_ 200Mb
$cbr818 set random_ false

I have been using CBRs for most of my TCP testing, however if you wanted
to use FTP then the following code should replace the CBR section:

set ftp818 [new Application/FTP]
$ftp818 attach-agent $tcp818

I don't know if it's necessary to set the packetSize for TCP and CBR,
however seeing as there was the option I thought it was safest!
Anyway... it appears to work. There is something worth noting however,
in the trace file the file size will be 1500, as this is the total size
of the IP packet.

Hope this helps!

Chris Levinsohn
Communication Systems Engineer, Comms South 

The information contained in this E-Mail and any subsequent 
correspondence is private and is intended solely for the intended 
recipient(s).  The information in this communication may be 
confidential and/or legally privileged.  Nothing in this e-mail is 
intended to conclude a contract on behalf of QinetiQ or make QinetiQ 
subject to any other legally binding commitments, unless the e-mail 
contains an express statement to the contrary or incorporates a formal Purchase 
Order.

For those other than the recipient any disclosure, copying, 
distribution, or any action taken or omitted to be taken in reliance 
on such information is prohibited and may be unlawful.

Emails and other electronic communication with QinetiQ may be 
monitored and recorded for business purposes including security, audit 
and archival purposes.  Any response to this email indicates consent 
to this.

Telephone calls to QinetiQ may be monitored or recorded for quality 
control, security and other business purposes.

QinetiQ Limited
Registered in England  Wales: Company Number:3796233
Registered office: 85 Buckingham Gate, London SW1E 6PD, United Kingdom
Trading address: Cody Technology Park, Cody Building, Ively Road, Farnborough, 
Hampshire, GU14 0LX, United Kingdom 
http://www.QinetiQ.com/home/legal.html



[ns] energy model variables

2008-04-25 Thread anas abu_taleb

Hi all
   
  I am trying to access the value of the initial energy for the energy model 
after configuring the nodes. for example after 
   
  $ns_ node-config -adhocRouting $val(rp) \
  -llType $val(ll) \
  -macType $val(mac) \
  -ifqType $val(ifq) \
  -ifqLen $val(ifqlen) \
  -antType $val(ant) \
  -propType $val(prop) \
  -phyType $val(netif) \
  -topoInstance $topo \
  -agentTrace OFF \
  -routerTrace OFF \
  -macTrace ON \
  -movementTrace OFF \
-energyModel EnergyModel \
-initialEnergy 3 \
-rxPower 0.3 \
-txPower 0.3 \
-IDLE 0.3 \
  -channel $chan_1_ 
  #-errProc UniformErr
  #-IncomingErrProc UniformErrorProc
  #-IncomingErrProc $val(err)
   
  for {set i 2} {$i  $val(nn) } {incr i} {
set node_($i) [$ns_ node] 
 $node_($i) random-motion 0  ;# disable random motion
}
   
   
  I want to check the initial energy using an if statement 
   
  if {$initialEnergy  2} { DO WHATEVER} 
   
  I will be grateful for your help 
  Regards
  Anas

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.


[ns] Parse results

2008-04-25 Thread FERLIN,Simone

Hi,
Does anybody know any tool to parse ns2 file results?
I have been working with some perl-scripts and MatLab by now.

tks,
simone


[ns] run 802.11b in ns2

2008-04-25 Thread andrew.hy

 
Hi all,  
   if i want to run 802.11b(11Mb) in ns2, do i just need to make the following 
changes:
   Mac/802_11 set bandwidth_   11Mb
   Mac/802_11 set dataRate_11Mb
   Mac/802_11 set basicRate_   2Mb
   
   or do i also need to change the bandwidth of the physical layer
   Phy/WirelessPhy set bandwidth_ 11Mb
 
   should anything else be modified too?
 
 

[ns] IP-Layer chained puzzle ns2 module!

2008-04-25 Thread rezi jaupi


Dear all,
  
  please help me on how to find module for IP-Layer Chained Puzzles protocol 
simulation.
Please, do not ignore my email and answer me, really I could not continue
my work and I am stuck at this point .
  
  I am waiting your reply, please answer.
  
  regards,
  
Rezi

 
-- 
View this message in context: 
http://www.nabble.com/IP-Layer-chained-puzzle-ns2-module%21-tp16895868p16895868.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] Application Layer Payload Transfer

2008-04-25 Thread Hagen Paul Pfeifer

* Sidney Doria | 2008-04-23 13:05:59 [-0300]:

 We know that NS-2 Transport API to Application layer does not provide
 a payload transfer.

 In NS, Transport only tells to the application: hey, a packet with
 nbytes has arrived. But no data is transfered to the app.
 I'm using UDP and I need the payload to simulate well my application's
 behaviour.

 *** How did you, hard core people, circunvent this issue?

You must extend the frame structure and add an additonal field for payload.
Grep the source and you will find frame extensions where people add additional
QOS flags or piggybacking other information as well.

Not that big issue!

 And...
 Why NS2 does not provide this?!

Why should provide NS2 this? Nobody (except you) need this feature. In the
normal case the payload isn't interessing.

HGN



Re: [ns] Not receiving data packets at agent.

2008-04-25 Thread Francisco J. Ros

Hi Maddy,

On Wednesday 23 April 2008 03:55:47 Madhava N wrote:
 Hi all,
I have written a new MANET routing protocol by reading the document of
 Franscisco and Pedro. I am facing a problem that data packets are not at
 all received by the routing Agent.

The routing protocol does not receive the packet when the attached node is its 
destination. Quickdirty workaround: put the node in promiscuous mode in 
order to process every packet which arrives at the interface (see Tap).

 That is at recv() function it is only receiving the HELLO (defined by me)
 packets. But the recv function is same as OLSR or AODV or DSDV which
 receives data packets as well.

 Also, I noted that if-queue parameter which i have used is never set. What
 could be the problem that I am unable to get the data packets at all.

Because you are not invoking if-queue from TCL. See add-target in 
tcl/lib/ns-mobilenode.tcl.

Regards,
fran

 Any help is greatly appreciated.

 Regards,
 Maddy
 .




[ns] Ask Google is not a polished answer, isn't it?

2008-04-25 Thread Sidney Doria

Herr Hagen Pfeifer,

 NS2 is not easy to novice. It's normal that novice people be confusing
 with some questions and concepts, even network concepts. After months
 same people that have asked a foo question are now secure, with strong
 skills and helping another novices with their new foo questions.

 I was a novice in past, with foo questions and now a I'm a non-novice
 with less foo questions. My first multicast routing protocol for
 MANETs is done! Great! Thanks to people that have patience to respond
 my foo questions with courtesy.

 Don't do that with NS2 people. NS2 is hard enough.

 PS.: I'm not talking about your answers to me. I don't care.

 --


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)



-- 
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] DSDV packets

2008-04-25 Thread Helber Wagner

  Hi, All.

  Does anybody know how to distinguish a DATA packet from a CONTROL packet in 
DSDV routing protocol for MANETs?

  For example, I know that in AODV implementation all packets with 'ptype_' 
equal to PT_AODV are CONTROL packets.

  Thanks in advance,
 
---
Helber Wagner da Silva
Master Science Student
Department of Teleinformatics Engineering
Federal University of Ceará - Brazil
URL: www.great.ufc.br/~helberhws





  Abra sua conta no Yahoo! Mail, o único sem limite de espaço para 
armazenamento! 





  Abra sua conta no Yahoo! Mail, o único sem limite de espaço para 
armazenamento!
http://br.mail.yahoo.com/

[ns] Question about sending data on AOMDV routing base Scenario

2008-04-25 Thread pejman

Dear,
while i am trying to send data from a source to destination in AOMDV based link 
disjoint paths, at sender i have large amount of data rate but at reciever 
absolutly there is no recieved data(video frames). the scenario is something 
like this:

*   * *
sender * * reciever
** *
   
  here stars are nodes.
Any idea will be appreciated.
Best.


   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.


Re: [ns] Ask Google is not a polished answer, isn't it?

2008-04-25 Thread Hagen Paul Pfeifer

* Sidney Doria | 2008-04-25 15:31:39 [-0300]:


Herr Hagen Pfeifer,

;)

 NS2 is not easy to novice. It's normal that novice people be confusing
 with some questions and concepts, even network concepts. After months
 same people that have asked a foo question are now secure, with strong
 skills and helping another novices with their new foo questions.

This is what I do, didn't I?

 I was a novice in past, with foo questions and now a I'm a non-novice
 with less foo questions. My first multicast routing protocol for
 MANETs is done! Great! Thanks to people that have patience to respond
 my foo questions with courtesy.

Fine!

 Don't do that with NS2 people. NS2 is hard enough.

? I help you, I gave some advices, some pointers and mentioned that all this
is already published in the internet!

Did you remember the conversation: http://tinyurl.com/4ktvxs

HGN



[ns] New PUMA version

2008-04-25 Thread Sidney Doria

Hi NS-all,

I've just uploaded a new version of Puma to sourceforge at
sourceforge.net/projects/puma-adhoc. Now puma.zip has a .tcl and
scenario files.

Puma is a multicast routing protocol more efficient than MAODV and
ODMRP. Puma was designed by Ravindra Vaishampayan and implemented by
me on NS-2.

Enjoy.

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