ns2

No drop packets using the error models for wirelesss scenario ?

I am trying to use the error model in ns2 with wireless links, I am using ns2.33. I tried the uniform error model and the markov chain model. No errors from ns but when I am trying to find the dropped packets due to corruption I can not find any of them using either the uniform or markov models. So please help me if I made any error in ...

How can I monitor a flow over wireless connection ?

I am trying to monitor a tcp flow using flow monitor. attach-fmon wants link object which is not available in wireless connections, how can I solve this problem ? are there any other solutions ? My code is here http://pastebin.com/f59241692 I got this error message eid@eid-laptop:~/code/ns2/noisy$ ns mixed.tcl num_nodes is set 3 INITI...

how to solve the problem " error: invalid use of ‘this’ at top level"?

I'm try to add multi-interface in ns2 following the paper Adding Multiple Interface Support in NS-2. When changing the file channel.cc, I add code below: nextX_[this−>index()] prevX_[this−>index()] After making this change, I get the following error: In file included from mac/channel.cc:67: mac/wireless-phyExt.h: At global scope:...

NS-2 filtering tracefile by node location

Is there an existing tool to filter an NS2 tracefile according to nodes' locations? I.e. only show events for nodes between x1,y1 and x2,y2. ...

How to Set the MTU(Maximum Transmission unit) in NS2?

I am using NS2 simulator for doing some network simulation and having some problem while setting the MTU value ie maximum transmission unit. I want know what is the default value of MTU in NS2 and how can i change this value according to my need? I want to set different MTU value to observe the behaviour of TCP in different conditions. ...

Packets drop in NS2

hey i did a program regarding node creation and packet transmissionin ns2. I want to drop packets if energy is drained so please help me to find the solution for this and explain how can i drop packets........ ...

Unable to change the value of the variable

I'm using a discrete event simulator called ns-2 that was built using Tcl and C++. I was trying to write some code in TCL: set ns [new Simulator] set state 0 $ns at 0.0 "puts \"At 0.0 value of state is: $state\"" $ns at 1.0 "changeVal" $ns at 2.0 "puts \"At 2.0 values of state is: $state\"" proc changeVal {} { global state gl...

NS2, Otcl: using a variable of an owned instance within a class

Hello all, I'm using NS2 to create some new classes in C++ and then link them to otcl. The linkage and everything works, but when I try to use the otcl variables in an object, I'm having a trouble. For example, suppose I have a class "Node" with the variable X. In the code I want to set this value and later on use it in some if-stateme...

Adding link errors to a flow in NS2

I have built a simulation with five UDP flows, and i would like to make one flow suffer from link errors with a probability of 0.1 during the simulation. ...

NS2: How to measure queueing delay

I need a tcl or awk script that can be used queueing delay in my simulation. ...

bluetooth simulator for ns2

what is the best ns2 bluetooth extension to research scatternet formation? is it blueware or blueHoc or UCBT? ...

how to embeded the c++ coding with tcl script:NS2

how to embeded the c++ coding with tcl script:NS2 ...

problem with codes in NS2

Hi guys Does anyone know any code in ns2 which can give us residual energy of a node and also something for measuring the signal strength when we recieve a message. I'm very confused just let me know as soon as posible. Thanks in your advance. ...

Web server - ns2 middleware (in Python)

Hi Developers, I want to integrate ns2 with a web server to show some kind of simulation results. Could anyone plz suggest if there's any middleware for this purpose? Google failed to return me any suitable result for this :( Also, if I plan to develop a middleware from scratch for the same purpose, is there any guideline to follow? In...

ns-2.33 with Directional Antenna add-on simulation error

Hey, I installed ns-2.33, and then added the patches for Directional Antennas. And I downloaded a sample from: http://www.cse.iitk.ac.in/users/braman/tens/. When I run it the following error is given: invalid command name "Channel/Channel_802_11" while executing "Channel/Channel_802_11 create _o11 " invoked from within "catch "$...

Best software product to simulate connectivity issues for mobile testing

I need a product to simulate network latency for testing mobile applications (in particular iphone and android). I plan to set up a wifi router connected to a linux box, and write a number of scripts to approximate different types of connectivity issues. So far, I've taken a cursory look at Netem and ns-2 (or its offspring ns-3). Nete...

Error in code when trying to simulate a hybrid wireless network using more than one base station. Can't i use more than a single base station?

I tried to run a simulation for wired-cum-wireless scenario. It is good when i use a single base station. But, when i use more than one, following error is displayed. --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o92: no target for slot 0 _o92 type: Classifier/Port content dump: classifier _o92 0 offset...