Dear All,
If a stronger frame (P1) arrive during the reception of a weaker frame
(P2) by a certain threshold (dB), a MAC (802.11) in NS2 will decide it
as a collision.
However in hardware implementation for e.g in Prism chipset, P1 can
still be captured if it arrives within P2's preamble time (
our way
up the code to know what caused the abnormality and rectify the problem.
Its very rare another person could able to help you to solve Segmentation
Fault without looking at all the codes.
Good Luck.
rgds
Saravanan Kandasamy
On Fri, Jul 6, 2012 at 9:58 AM, Rahul Sharma wrote:
>
> Hi
Hi,
There are several writeup which would be of help to you.
Refer:
[1] http://erl1.wordpress.com/2011/05/12/installing-ns-2-34-on-ubuntu-11-04/
[2]
http://www.pradeepkumar.org/2011/07/installing-network-simulator-2-ns2-34-in-ubuntu-11-04.html
Good Luck.
rgds
Saravanan K
On Sat, Jul 14, 2012
Dear Wben,
I presume you like to know the relationship between distance vs RXthresh ?
It might not be that straight forward as it depends on which multipath
propagation you like to use.
Assume this topology
-Two nodes (T and R), node T would be transmitting to node R placed x
meter away.
You
Dear Hongsheng Lu,
Scheduler::instance().clock() has 9 decimal point accuracy, most of
the time it will be different.
Even you are calling it in the same file and in the same function, you
might end up completely different timings. You can either use a
debugger or simply printf statements to und
Dear Lopes,
Its not a problem if a receiving node receives only one packet, as
collision would not be induced. If another packet arrives during the
receiving of the first packet, this where a collision would be
induced. If you can decide what you like to do with the later packet,
then its possibl
our way up the code to know what caused the abnormality
and rectify the problem.
Its very rare another person could able to help you to solve
Segmentation Fault without looking at all the codes.
Good Luck.
rgds
Saravanan Kandasamy
On Wed, Aug 8, 2012 at 5:08 AM, sunil kumar wrote:
>
>
Ajmal,
NS2 does not know map, it only moves a node from point A to point B in
straight line in a given velocity.
Assume Node 0 is positioned at (100,100), if it is moving in one direction
is,
$ns_ at 0.0 "$node_(0) setdest 150.0 150.0 1.0"
to move in the opposite direction is,
$ns_ at 0.0 "$nod
I guess you are trying to run your simulation using NAM. Allow your
simulation to complete fully before using the time slide bar. Dont stop the
simulation midway using NAM then try to forward it to another time. It
breaks at some machine. One way to validate if there is anything wrong with
your sc
Hi,
NS2 as you already know has two part, the TCL part for the front end
and C++ part for the back end.
To Debug C++ you can you test based debugging tool such as GDB or GUI
based debugging tool such as Eclipse or DDD.
I assume you are looking for a TCL Debugger. There are several you may
try T
Dear Gregory Butron,
1. To answer your question directly, yes, it is possible. But that approach
does not make sense, as you would compromise the integrity of a simulator.
For e.g when a frame is currently being received by a receiver node and
another new frame arrives overlapping in time, only t
Dear Dejene,
Perhaps you got the notion of debugging wrongly.
Eclipse does not find one the erroneous part, it simply assist to
pause the simulation midway at your predefined location and walk with
you the simulation in a controlled way till an anomaly occurs.
Try doing some tutorial first to g
Hi,
I am not so clear on your description.
1. Where do you want to retrieve the Pr value, in mac/wireless-phy.cc or
else where?
2. If within mac/wireless-phy.cc, you may use Pr or p->txinfo_.getTxPr()
depending the function where you are invoking the value.
rgds
Saravanan K
On Sat, Nov 3, 20
Dear Behnaz,
Looks like you don't quite understand how MAC 802.11 works.
"Phy/WirelessPhy set bandwidth_ 2e6" will only be used if you have not
set basicRate_ or dataRate_ in your MAC setup.
Even so the transmission time does not do "packet size/channel
bandwidth", suggest you to study how
Mac8
Dear Vimala,
You not supposed to find ACK packet send functions in AODV as it is a MAC
layer packet.
You should study the interrelation of AODV and MAC layers to understand
further on this. How after a node after recvReply in AODV triggers sendACK
in mac-802_11 for instance.
Good Luck.
rgds
Sa
Dear Falahati,
Doing a flow chart for 802.11 MAC for NS2 is very good. It is not a
easy task though as if you go deeper you will see 3 different flows
you must understand.
1. The event flow - How one event calls another
2. The state flow - For instance, how MAC states e.g tx_state or
rx_state ch
Yes, it is correct for the specific case you are handling. When I
switched to the picture got the impression its for the generic case.
My bad -- SK
On Fri, Dec 7, 2012 at 12:34 PM, M Falahati wrote:
> Dear Kandasamy,
>
> Thank you very much for your guidance.
>
> I agree with you that flowchart
Dear Gopi.
The compiler error did told you what to do.
You need to run "configure". Any changes in Makefile would require
fresh configure.
rgds
Saravanan K
On Sun, Feb 3, 2013 at 6:40 AM, Gopi wrote:
>
> Dear ns-users,
>i am getting the following error while re-compiling, after
>
Magdy,
I have not worked adding a new field in packet header in IP layer.
Nevertheless, just throwing some thoughts,
1. Have you included int tag_; in your Agent.h?
2. In MAC layer we have to mention the size of new field, one of the
purpose is, it could be factored in for the transmission time
Gopi,
Have you tried to google? Much information is there, just need to
spend some time doing research.
1. For single hop network you dont need routing. You may use dumbagent.
2. There are some implementation for static routing in the web, some
uses DSR as base and some created their own way fo
Dear Shiny,
This is a more of a programming question rather than NS2. Perhaps you
can check with other programming related forums.
In the programming point of view for sure it can be done but you have
to check if it is logically sound from simulator or real life
implementation point of view. Ass
Dear Rafeal,
I am not sure where you like to do this binding. When you declare your
variable "number_" in file.h ensure you choose a data structure that
accepts a float, e.g
double number_;
rgds
Saravanan K
On Mon, Jan 28, 2013 at 7:07 PM, Rafael P B Mota
wrote:
>
> How can I bind a float mem
Rafael,
You would need to spend more time with NS2 manual.
1. How can I change the transmission power to allow 2 nodes
communicate themselves at a max distance of 5m ?
It depends on the propagation model you are using. Since its just 5 m,
you may check Friis as Two Way Ground behaves as Friis as
Saleem,
Why not create a test scenario in NS2 and find out the answer. You may
induce packet loss systematically and observe your preferred
parameter.
rgds
Saravanan K
On Wed, Jan 30, 2013 at 11:03 AM, saleem khan wrote:
>
> Hi All,
> is there any effect of packet loss on End2End Delay in OLSR
Why you want to do that? Aint the objective of a network is to provide
as much throughput as you can? You said nothing about your setup,
protocols you are using etc. Dont have the liberty to assume
ourselves. A typical reason on getting lack of support -- SK
On Mon, Feb 4, 2013 at 10:54 PM, Sai B
rther questions.
>
>
>
>
> On Mon, Feb 4, 2013 at 4:19 PM, Saravanan Kandasamy
> wrote:
>>
>> Why you want to do that? Aint the objective of a network is to provide
>> as much throughput as you can? You said nothing about your setup,
>> protocols you are u
Dear Amar,
I think you have confused with between mac::recv() and aodv::recv()
1. mac::recv() able to listen every packet in a channel as long as it
is above CSThresh and decode a packet if it is above RXThresh.
2.This is not the same for aodv::recv(), you would need to understand, how
a)AODV p
Hi,
Two ways to do it,
a) By implementing "node-down" command as what test-suite-wpan.tcl had
done.Look for it in the example folder. It basically free a packet
going out of a node and marks the header of a packet as error for
incoming packets.
b) Try to do what a switched off node should behav
Amar,
Correction on Line #6,
6. In case you like to know if a destination node received a packet,
you can do so by comparing a packet's destination ip address with
the node_id of a node receiving the packet ***at MAC layer***
rgds
Saravanan K
On Thu, Feb 7, 2013 at 2:19 PM, Sara
Amar,
Your explanation is not clear and not sure if you are messing up with the
codes without knowing what you like to achieve.
1. Create a minimalistic scenario.
2. Enable Hello Packets.
[Do not touch aodv.cc, it is controlled by a flag in aodv.h, comment out
"#define AODV_LINK_LAYER_DETECTION
Hi,
After "make", do "sudo make install"
rgds
SK
On Wed, Feb 13, 2013 at 3:45 PM, Dalia El3wely wrote:
>
>
>
>
> after making changes in ns2 c++ files , i tried to rebuild ns2 by using "
> make" command, i didn't get any errors, but when i tried to simulate a
> simple scenario i found that my
Suggest you to read ns manual and look at the sample simulation codes given
example folder - SK
On 9 Mar 2013, at 11:32, Khadijeh Arabi wrote:
>
> Hi
> In which files and directory can change the Phy/Wireless Transmission Power
> w.r.t Trans Range?We most add related codes in main tcl code or
Mate,
These values are defined and not calculated. The received power from a
packet is what determines if the packet is received or just sensed. This is
basic, you would need to
a)read the manual
b)read the codes in NS2
c)read the appropriate standards
d) or simply spend some time on the internet
Dear Wben Jab (If thats your name),
Looking at your operating frequency your cross over distance is around 86m.
Thus when you experiment communication above this distance, the TwoRay
propagation takes place anything below though you are using TwoRay only
FreeSpace takes into effect.
>From the bo
Hi,
It can be used to invoke codes from TCL.
e.g:
$ns_ at 10.00 "stop"
"stop" will be defined at command (e.g app.cc)
Good Luck.
rgds
Saravanan K
On Wed, Apr 10, 2013 at 6:09 AM, shiny wrote:
>
> hi all,
> anybody can explain about command() function,how it works and what's the
> purpose o
Anas,
You are facing a memory leak. The effect of memory leak aggravated when you
run longer simulation time, simulating larger number of nodes or both.
Valgrind is good for memory leak detection. It able to show the functions
and exact lines of codes that potentially causing some of the memory
Dear Gomathi,
Your question is not clear. What neighbor you are looking for? If you
are looking for routing neighbours you can only do in routing layer.
If you are looking for Radio Range or Carrier Sense neightbour you can
do either using
a) routing.cc - this approach has been recently elaborate
Pedro,
The tracefile will be useful for you.
Good Luck.
rgds
Saravanan K
On Fri, May 24, 2013 at 6:15 AM, pedro chaparro wrote:
>
> Hi All, there is some way to measure the number of collisions in a wireless
> 802.11 scenario?
>
> --
> Pedro Alonso Chaparro Valero R&D Engineer
> Ciudad Politec
Hi,
Tried to read on "queue monitor" in NS2 manual or internet. Some of
the below can be solved by using it.
Good Luck
rgds
Saravanan Kandasamy
On Sun, May 19, 2013 at 8:18 PM, Sai Bhyravajosyula wrote:
>
> Hello All
>
> I have a question regarding queue delay.
>
>
Hi,
I am new to NS2.
Have anyone successfully installed TENS1.2 on NS2.33 running on Ubuntu 8.10 ?
Need some pointers.
I could be reached at svanan77[at]gmail[dot]com
rgds
Saravanan K
40 matches
Mail list logo