[ns] Handover Simulation NS-2

2011-10-16 Thread Syed Faraz Hasan
Hi Guys, I am playing with handover simulation in NS-2 and having some difficulty in interpreting the results. Two 802.11 APs are placed at a certain distance such that their footprints are not overlapping. A mobile node is made to move from the footprint of one AP to the next (passing through

[ns] Handover simulation NS-2

2011-10-14 Thread Syed Faraz Hasan
Hi Guys, I am playing with handover simulation in NS-2 and having some difficulty in interpreting the results. Two 802.11 APs are placed at a certain distance such that their footprints are not overlapping. A mobile node is made to move from the footprint of one AP to the next (passing through

[ns] mac-802_11.cc -> op

2010-06-04 Thread Syed Faraz Hasan
Hi NS Users, I am trying to follow the mac-802_11.cc file in the NS2. I notice "->" operators used on several ocassions. Can somebody tell me what -> means in C++ (or in the file). For instance, ap_list->ap_id=num; what does this mean? There are more examples like: temp->next->ap_power= powe

[ns] Changing the sources file

2010-05-17 Thread Syed Faraz Hasan
Hi NS2 Users, I am trying to make some changes in the NS2 source files, attempting to modify the scan procedure in the 802.11 network simulations. I added an extra "printf" command in the mac/mac-802_11.cc and saved the changes. When I am running the tcl code for 802.11 infrastructure networks

[ns] ARP in 802.11 - NS-2.33

2010-05-13 Thread Syed Faraz Hasan
Hi NS users, I am playing with the 802.11 extensions in the NS-2.33. Following is a piece of the trace I got after running a code in which, the mobile node connects with an AP and attempts to send information. I think in the normal implementation of 802.11, ARP comes after authentication and a

[ns] Infra.tcl - Active/Passive scanning

2010-05-10 Thread Syed Faraz Hasan
Hi NS-2 users, I am looking at the handovers in the 802.11 networks. I understand that an = infra.tcl file is out which incorporates the handing over mechanisms. Can = somebody please share the code with me. I have ns-2.33 installed at OpenSUSE. Please write back soon. Thank you very much

[ns] SCTP Code

2009-05-07 Thread Syed Faraz Hasan
Hello Everyone! I am starting to explore using SCTP in NS-2, I have gone through the NS manual. If some one can provide me with a starting code of SCTP, I would be very grateful. It will help me start grasping early. Thanks and Regards, Faraz

[ns] Bandwidth Setting for 802.11

2009-04-23 Thread Syed Faraz Hasan
Hi Everyone! I want to know how can I set the bandwidth in a 802.11 simulation. While reading in FAQs I found that BW is decided according to the basic and data rates. I am trying to simulate 802.11p, 27Mbps and 10MHz. I can set the data rate easily but how can I ensure a 10MHz bandwidth? Is t

[ns] 802.11p WAVE Code/Patch?

2009-04-23 Thread Syed Faraz Hasan
Hi everybody! Can some one please provide me with the code of 802.11p WAVE. I think it is available in 80211p_Performance.tcl but I don't know where to get it from. Does there exist a separate patch for 802.11p? Your response shall be highly appreciated. Regards, Faraz

[ns] validation problem

2009-03-26 Thread Syed Faraz Hasan
Hi everyone! I installed NS-2.30, entered all paths according to syntax posted (thankful= ly) by you. When I am running ./validate after that, it says ./validate line 94: date: command not found ./validate line 95: sleep: command not found ./validate line 92: date: command not found validate ov

[ns] NS-2.30 installation-How to add library paths?

2009-03-25 Thread Syed Faraz Hasan
Hi everyone! I installed NS-2.30, I received followin messages after ./install 1) You must put /home/faraz/Desktop/ns-allinone-2.30/otcl-1.12, /home/faraz/Desktop/ns-allinone-2.30/lib, into your LD_LIBRARY_PATH environment variable If u r using csh, setenv LD_LIBRARY_PATH if u r using

[ns] UMTS Code EURANE Code - Class Simulator Error

2009-03-24 Thread Syed Faraz Hasan
Hi Everyone! With Pats help I managed patching EURANE in NS-2.30 (OS: Linux). I am now trying to run test_tcp.tcl available on EURANE website. It is not executing correctly. I tried running each command of the program one by one to see wheres the error. Everything is OK till I reach... set rn

[ns] UMTS on NS-2

2009-03-23 Thread Syed Faraz Hasan
Hello! Reference to my previous email about UMTS implementation on NS-2. Can some one tell me if I need a separate patch for UMTS while working on NS-2.33? If so, where can I download it from? I have seen http://eurane.ti-wmc.nl/eurane/, patch available there is in diff.gz format. I am a newbi

[ns] UMTS on NS-2

2009-03-23 Thread Syed Faraz Hasan
Hi everyone! I wanted to ask if NS-2.33 already has UMTS module built in or do I need to download its patch from some where? Also, can some one please guide me to a quick start tutorial on simulating UMTS on NS-2. A code on UMTS will GREATLY help. Your early response shall be highly appreciat

[ns] Walls and structure in ns-2

2009-03-10 Thread Syed Faraz Hasan
Hi everyone! I am trying to add walls, roofs and structures in my simulation. I want to simulate two rooms, each equipped with two separate antennas and separate mobile devices. I wish to see the impact of one antenna in one room on another on another room. Motivation is to simulate femtocell

[ns] Multiple interfaces for a mobile node

2009-03-03 Thread Syed Faraz Hasan
Hi Everyone! Can some one please direct me to something explaining the use of multiple interface cards for a single mobile node in a wireless environment. I want to simulate a mobile node installed with two interface cards; both communicating to separate nodes. Please write back soon. Faraz

[ns] Graph plotting problem with tracegraph n NS visual trace analyzer?

2009-02-20 Thread Syed Faraz Hasan
Hi everyone! I am using tracegraph and NS2 Visual Trace Analyzer to plot results of NS-2.33 simulations. When I simulated wired-wireless scenarios last time, both softwares failed to plot its graph. I wrote to NS2 Visual Trace Analyzer's developer and he said his program is not compatible with

[ns] Mobile IPv6

2009-02-19 Thread Syed Faraz Hasan
Hi everyone! I am looking to implement MIPv6 in NS-2. I have seen a few posts and they say I need to install MobiWan (which works only with NS-2.1b6). Can I not use Mobiwan (or anything else in NS-2) for implementing MIPv6? Your help will be, as always, highly appreciated Faraz

[ns] Wired-Wireless Trace... message at MAC layer?

2009-02-19 Thread Syed Faraz Hasan
Hi everyone! I simulated a wired-wireless scenario in NS-2. There is one wired node, connected to base station node. BS is further connected to wireless node. Wireless node is sending TCP traffic to wired node via BS. I get the trace file without error but I could not understand a few messages

[ns] IP layer information NS-2

2009-02-17 Thread Syed Faraz Hasan
Hi everyone! How do I access IP layer in NS-2. In wireless simulations, I use MAC to declare AP and Transport Layer by defining TCP traffic across the network. Where and how do I specify IP Layer? I mean, is NS-2 using IP layer when I send packets from one node to another? Which version of IP

[ns] Proxy Registration ReQuest PRRQ in NS-2

2009-02-13 Thread Syed Faraz Hasan
Hi everybody, I noticed Proxy Registration RQ and ResPonse whenever a mobile node connects to an AP. If it is made to connect to another AP during the same simulation, not only does it reauthenticates, reassociates, PRRP and PRRQ messages are also exchanged again. Mobility architectures place

[ns] Throughput calculations inside code

2009-02-11 Thread Syed Faraz Hasan
Hi everybody, How can I calculate the resulting throughput from a simulation using TCL code. Can someone help me by providing the required piece of code for this. I am currently using tracegraph for which every calculation requires a trace file to be fed into it. To statistically verify result

[ns] How to calculate average throughput

2009-02-11 Thread Syed Faraz Hasan
Hi everybody, I have simulated a wireless link in which a mobile node passes by an access point while transmitting TCP data to it. How can I calculate average throughput for entire data transfer. I am using tracegraph and NS visual trace analyzer; both display resulting graphs for throughput.

[ns] OFDM in NS-2.33?

2009-02-10 Thread Syed Faraz Hasan
Hi everyone! Can some one help me on using OFDM in my simulation of 802.11a. I found the code for FHSS and DSSS but these are spread spectrum techniques. Is it possible to include OFDM in my simulation? Please guide me to some source on the net or please find some time to write back. Faraz

[ns] Compiling threshold.cc for receiver threshold values?

2009-02-06 Thread Syed Faraz Hasan
Hello, I want to set different values to receiver power in the tcl code. The ns documentation says threshold.cc is availabe and it is to be run to get an executable file. That file could be used to computer receiver power for different scenarios. How can I compile this file? Is it compiled in

[ns] plotting graph in tracegraph

2009-02-06 Thread Syed Faraz Hasan
Hello, I am using ns2 for simulations and want to use tracegraph for plotting. I have downloaded it and it is also running OK. However, I don't know how to display graphs using it. Here is what I doing... I open tracegraph using trgraph.exe (I m using windows xp). A dialog box opens. I go to

[ns] Xgraph Bandwidth? + ns 2 trace analyzer 0.3 installation ?

2009-02-04 Thread Syed Faraz Hasan
Hi Everyone! I wrote the code to see the graph of BW occupied by one of the nodes in the trace. Can I display the graphs of other parameters as well. For example if I wish to display the graph of beacon interval vs speed of mobile, what changes do I need to make. Can someone please guide me to

[ns] Defining transmission range of node?

2009-02-04 Thread Syed Faraz Hasan
Hi Everybody! Could any one tell me how to define the transmission range of an access point (AP) in ns-2.33. I want to restrict its signal from reaching the mobile nodes outside its coverage area. Please help me on this. Faraz

[ns] CBR maxpkts and interval

2009-01-30 Thread Syed Faraz Hasan
Hi, How can I set a limit of maximum no of packets to be sent from a node in CBR traffic. It is $cbr set maxpkts_ 20 (I think) but it is not working. Even after setting a fixed no of packets for transmission, I see more packets flowing from source to destination. Can some one help me please?

[ns] Sending data to a specific port of a node in ns2

2009-01-30 Thread Syed Faraz Hasan
Hi everyone! How can I send data to a specific port on a node in ns-2.33? I recently declare nodes and send data among them, is there any way to send data to a certain port of a node? Please reply back soon. Faraz

[ns] Tracing problems...

2009-01-20 Thread Syed Faraz Hasan
Hi everybody, I am tracing the infrarstructure mode wireless networks in which, a mobile is passing by an AP sending TCP data to it. I have placed the MAC Tracing ON. Consequently, I get a trace file, it is very difficult to read and understand directly. How do I know what messages are sent

[ns] Tracing problems...

2009-01-20 Thread Syed Faraz Hasan
Hi everybody, I am tracing the infrarstructure mode wireless networks in which, a mobile is passing by an AP sending TCP data to it. I have placed the MAC Tracing ON. Consequently, I get a trace file, it is very difficult to read and understand directly. How do I know what messages are sent be

[ns] Xgraph Bad x-value error message

2009-01-16 Thread Syed Faraz Hasan
Hi everybody, I am trying to use xgraph. It is installed in my machine and running. I modified my code according to available tutorials (as far as I could) to see xgraph results. When the code is run, xgraph starts but displays no results. An error message is "Bad x-value 'r' on line 6153 of f

[ns] LAN Nodes not being placed in order

2009-01-15 Thread Syed Faraz Hasan
Hi. I am running the following code bu every time I run, nodes appear in different positions and overall visualization is very bad. How can I fix the positions of which node to appear where (while it is still part of LAN!). Also, I send data between two nodes, which goes to the main bus and is

[ns] LAN Nodes placement

2009-01-15 Thread Syed Faraz Hasan
Hi Everybody, I am running the following code bu every time I run, nodes appear in different positions and overall visualization is very bad. How can I fix the positions of which node to appear where (while it is still part of LAN!). Also, I send data between two nodes, which goes to the main

[ns] Hand over problems...

2009-01-12 Thread Syed Faraz Hasan
Hello everybody, I am trying to simulate a hand over. Following script shows two nodes (acting as AP) and a node moving within their vicinity. After a certain amount of simulation time, node 0 gets out of range of node 1 (AP) and stops sending packets. This is the point it needs to get associa

[ns] NAM does not run wireless simulation over ns 2

2009-01-08 Thread Syed Faraz Hasan
Hello ALL, I am trying to visualize the entire simulation using NAM. I open the .nam file in the finish procedure. I have associated CBR source with one of the nodes to make it send packets to another node. NAM executes properly at the beginning (but does not show nodes at all), as soon as the

Re: [ns] How to set up mobile nodes?

2009-01-08 Thread Syed Faraz Hasan
ndom-motion 0 ;# disable random motion } $ns_ at 0.1 "finish" puts "Starting..." $ns_ run Regards, Faraz From: Mubashir Rehmani [mshrehm...@gmail.com] Sent: Thursday, January 08, 2009 2:49 AM To: Syed Faraz Hasan Subject: Re

[ns] How to set up mobile nodes?

2009-01-08 Thread Syed Faraz Hasan
Hi all, I get an error which I have enclosed when I try setting up nodes in wireless scenarios. I have tried a lot of different things as suggested by other tutorials but get the same error everytime. When I delete the lines defining the nodes from the code, there are no error messages. Code t

[ns] LAN Layout help

2009-01-07 Thread Syed Faraz Hasan
Hi Everybody, I enclose the NAM layout of a code given as under. I am trying to simulate a LAN with CSMA/MAC/CD. The resulting diagram of the LAN is not very clear. Is there any way to shape it up properly like a LAN. I know only the orient command use with setting duplex links but here the li

[ns] Looking for LAN example in NS2

2009-01-06 Thread Syed Faraz Hasan
Hello everyone, I am looking for a simple LAN example in NS 2. I am following the isi tutorial but it seems to have given only the lan command structure. I am looking for a proper syntax to work out at LANs in NS2 environment. Can some one help please? Regards, Faraz

[ns] Routing Protocols for Infrastructure mode

2008-12-19 Thread Syed Faraz Hasan
Hi everyone, I am interested in implementing infrastructure mode on a wireless network. I am using http://www.isi.edu/nsnam/ns/doc/node173.html tutorial. It talks only about the adhoc protocols, can't I configure a mobile node with infrastructure routing protocols. I am not clear about the dif

[ns] NS2 computer to computer?

2008-12-11 Thread Syed Faraz Hasan
Hi all, Knowing that ns 2 is a simulation software, it is not too wise to ask this question! But here we go... Can I use ns 2 on one computer, set up a node, attach with it agents and applications, transmit data and receive the same on another ns 2 node running on another computer? That is to

[ns] Trace file and nam file?

2008-12-09 Thread Syed Faraz Hasan
Hi all, I run several sample programs and all ran quite well. I was reading in a tutorial that the ns execution will create a .tr file. I am not finding that, all I have is a .nam file. I believe .tr shall be used for trace analysis. Where do I get it from? Also, .nam file also gives some of t

[ns] Using NAM with NS2? "couldnt execute nam"?

2008-12-08 Thread Syed Faraz Hasan
Hi all, I have used two sample programs for executing the traces on NAM using the ns2.33. All goes well until... exec nam out.nam & command is executed, from the following FINISH function. proc finish {} { global ns nam_file $ns flush-trace close $nam_file exec

[ns] Where can I find OTcl tutorials?

2008-12-03 Thread Syed Faraz Hasan
Hello! Can anyone guide me to a good tutorial of OTcl please. I can play around a little with Tcl but in order to use NS2, I am trying to find some good tutorial on OTcl. Hope to hear back soon. Best Regards, Faraz