[ns] default values of mac 802_11 thresholds

2011-11-26 Thread neeraj gupta

Hi

Can anybody tell me what are the default vales of various threshold like 
RTSthresh, CS thresh etc in ns-2? Also what is size of hello packets in AODV?

Kindly correct me if i dont put the value of RxThresh and CSThresh then default 
range for transmission is 250m and Carrier sense range is 550m.

Neeraj Gupta


[ns] maintaining the throughput between two nodes

2011-11-26 Thread neeraj gupta

Hi

I have simulated a scenarion where in the data rate is 2Mbps. Ihave udp packet 
as 1024 bytes and 2048 bytes respectively for two scenarios and have kept the 
cbr packet as 1024 bytes. On running the script for two scenarion and analyzing 
the trace file i found that packet length denoted by Il in both cases ia around 
1024 bytes. Is it beacues of cbr packet size.

Also if i want to keep the throughput between two nodes as 500Kbps, 1000Kbps, 
1500Kbps and finally as 2000Kbps what parameters should i look for?



Neeraj Gupta


[ns] cbr flow synchronization

2011-03-18 Thread neeraj gupta


Hi



I have not been able to understand what does we mean by synchronization of cbr 
flow and why does it happen. Any Comments.



Neeraj Gupta


[ns] find the idle time of node

2011-02-21 Thread neeraj gupta

Hi

In mac802.11 one of the state the system can enter is idle state. We have a 
three variable  rx_state_ , tx_state and nav_. Can anybody tell how can we 
calculate the the idle time before the station enters either in transmit or 
receive mode.


Neeraj

Neeraj Gupta


[ns] Invitation to connect on LinkedIn

2011-01-04 Thread Neeraj Gupta via LinkedIn

LinkedIn
Neeraj Gupta requested to add you as a connection on LinkedIn:
--

Rishabh,

I'd like to add you to my professional network on LinkedIn.

- Neeraj

Accept invitation from Neeraj Gupta
http://www.linkedin.com/e/f23qyv-gijvkt0d-6v/IW16bPFCH5wtdN8G-0zo8Mbjh9G/blk/I1029353235_3/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYPnPkPczcRcPAOc359bS9quzkJlCdfbPgOdPsOd38Vc38LrCBxbOYWrSlI/EML_comm_afe/

View invitation from Neeraj Gupta
http://www.linkedin.com/e/f23qyv-gijvkt0d-6v/IW16bPFCH5wtdN8G-0zo8Mbjh9G/blk/I1029353235_3/3dvdjcOcPkPej8MckALqnpPbOYWrSlI/svi/
 
--

DID YOU KNOW LinkedIn can help you find the right service providers using 
recommendations from your trusted network? Using LinkedIn Services, you can 
take the risky guesswork out of selecting service providers by reading the 
recommendations of credible, trustworthy members of your network. 
http://www.linkedin.com/e/f23qyv-gijvkt0d-6v/svp/inv-25/

 
-- 
(c) 2010, LinkedIn Corporation


[ns] plotting xgraph with various shapes

2010-12-15 Thread neeraj gupta

Hi

I am using ns-allin-one 2.30 i need to plot the multiple graph (using 
xgraph)with different shapes. kindly help

 Neeraj


[ns] tx range and adding neighbors

2010-04-29 Thread neeraj gupta


Hi all

can anyone provide me the input for adding the neighbors falling in 
transmission range of the node. i have been searching for long but no relipes.

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] how to trace user defined variable

2010-03-14 Thread neeraj gupta


Hi all

i have defined one function calculate_availabe_bandwidth in mac802_11.cc file 
the resultant is stored in vaiable (abe). This function is not called anywhere 
in mac802_11.cc. I want to call the function after every 5 seconds and trace 
the value of abe. can you tell how can i perform the said operation. i tried to 
bind both the function and variable but i am in fix how to call the function so 
that i can trace the value of abe.




Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] finding the value of the backoff

2010-03-13 Thread neeraj gupta


Hi all

I need to find the backoff value of the node in order to calculate the 
available bandwidth. The question at any instant how can i get the value of the 
backoff timer



Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] export the values

2009-12-25 Thread neeraj gupta

Hi all

I am trying to simulate a scenario where by i have already known the one hop 
neighbor of the node. Noe i finding it difficult to get the values of nav in 
the node.cc (source node) corresponding to neighbor list. Also i need to make 
sure that packet source node has send has been acknowledged or nor . Kindly 
help i am stuck kindly help.


Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] record the nav

2009-09-02 Thread neeraj gupta


hi all

how is it possible for an neighboring node of a source to know that the rts/cts 
and data/ack packet sent by source is successful. also where can i record the 
nav along with the sucees or failure of transmiited packet. 

basically i need to record the above facts to calculate the available 
bandwidth. if the session is success then recoed the nav or otherwise change 
the nav value by tdata+difs time.

kindly help as it is urgent for my thesis work.

thanxs

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] read the lo g file in mac802_11

2009-08-31 Thread neeraj gupta

hi all

in mac802_11 layer we maintain the mac_log where are this log file and how can 
i access these files.


Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] how to add neighbors

2009-08-20 Thread neeraj gupta

Hi all

 i am simulating in which i want to add neighbors for a particular mobile node. 
since i am not using the energy model the function of adaptive fidelity in mac 
802_11.cc will not work. how can i use the add neighbor function defined in 
node.cc here.

also kind let me know how can i include th energy model in the script. i gone 
through ns-2 documentation. but i not sure which energy model i need to include 
since it's default value is none.

kind treat this mail as urgent as my future work depends on the above problem.

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] mobile nodes

2009-08-15 Thread neeraj gupta


hi all

 i just made certain changes in mac802_11.cc file to find out the neighbors of 
nodes. right now whenever i run the script it is showing me all the current 
nodes and their neighboring nodes a simulation time passes on. i like to find 
it out for particular node how can i do it.

also b default the netif_ - nodes()- energymodel() is returning 0. and the 
netif_-node()- adaptivefidelity() is giving segemntation fault. what can be 
possible reasons.

i need your help ugently.


Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] qos in manets using bandwidth as parameter

2009-07-08 Thread neeraj gupta


 hi all

  i am doing research work in qos in manets using bandwidth as parameter. do i 
have have to work in link layer or network layer. does i need to be protocol 
specific. actually i have gone through certain papers ut i totla confussed 
kindly help me.

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] explanation of the line

2009-06-08 Thread neeraj gupta


hi all

 any anybody explain what the following is doing
   
  netif_-node()-energy_model()-add_neighbor(src);

 the above line is in 802_11.cc file. where it is storing the neighbors.where 
is energy_model() function in the ns-2.30

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] neighbor list

2009-05-29 Thread neeraj gupta


 Hi all

   i have written a small function to find out all the neighbors of a node. The 
problem where should i place this function and from where this function is to 
be called. Initially i placed in mac802_11.cc and called it from recvCTS 
function but on running the script the i got segmentation fault. the function 
is compiled successfully.



Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] using the variables

2009-05-20 Thread neeraj gupta


 hi 

  there is a variable nsaddr_t index in the aodv.h i suppose this soters the 
index of the node during its creation time. how can i use the variable in 
mac802_11.cc

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] index of the node

2009-05-14 Thread neeraj gupta

t is continuation to mu earler mail regarding the finding out the list 
of neighbors in wireless scenario. there is afunction in the god.h 
ISneighbor(int i, int j) to find out the same. My probl;em is how can we find 
the index number (i) of the current node in question in c++ code.what file i 
need to include in order to find the same

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] error in the code

2009-05-02 Thread neeraj gupta


 hi all

  i have modified the aodv.cc to print the routing table. during make
i recevied the following errors

aodv/aodv.cc:445: error: stray ‘\302’ in program
aodv/aodv.cc:445: error: stray ‘\240’ in program
aodv/aodv.cc:446: error: stray ‘\302’ in program
aodv/aodv.cc:446: error: stray ‘\240’ in program
make: *** [aodv/aodv.o] Error 1

can you tell me what does the above error statement means





Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] error in the code

2009-04-28 Thread neeraj gupta


hi all

 i am using the aodv protocol in my scenario. i made certain updation to print 
the routing table as foolows

Add following code to aodv.h after void rt_down(aodv_rt_entry *rt); 
void rt_print(nsaddr_t node_id); 
Add following code to aodv.cc after  void  AODV:: rt_down (aodv_rt_entry *rt)  
{  ... } 
void AODV::rt_print(nsaddr_t node_id) {
FILE *out_file;
char nowfile[50] = rtable.txt;
out_file = fopen(nowfile, a);
aodv_rt_entry *rt;

fprintf(out_file, =);

for (rt=rtable.head(); rt; rt = rt-rt_lin.le_next) {
  fprintf(out_file, NODE: %i\t %.4lf\t%i\t%i\t%i\t%i\t%.4lf\t%d\n, 
  node_id, CURRENT_TIME, rt-rt_dst, rt-rt_nexthop, rt-rt_hops,
  rt-rt_seqno, rt-rt_expire, rt-rt_flags);
}

fclose(out_file);
} 
The function (rt_print) can be used anywhere in AODV. For example, I am using 
the function when original source node receives route reply message (RREP). 
void AODV:: recvReply(Packet *p) {
 ... 
 if (ih-daddr() == index) { 
   rt_print(index) ; 
   ... 
} 

after ame i got following error rt-rt_lin.le_next not a valid field. can 
anybody help me to solve the problem. i am using the ns-2.30

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] address to mobile nodes

2009-04-18 Thread neeraj gupta


Hello all
  how can i assign the address like 90.X.X.X  to the mobile nodes. 


Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] certain questions

2009-03-27 Thread neeraj gupta

  
i am just trying to simulate your paper Available Bandwidth in IEEE802.11b 
Network Based on Non-Intrusive Measurements there are certain question i need 
to ask.
1.It is written To the nodes which have send the several packets during a 
single period, the NAV fields is the sum of the the NAV values to all 
successful packets sent by this node the question is whether the current node 
in question is transmitting the packets to the one particular node or it is 
sending the packets of itself to destination and other packets (as router) to 
all other nodes also?
2.the duration field in question is of the RTS packet or of the data packet
3. the flag value who's value can be true or false, why we have taken
the value of NAV as Tdata if the transmission is unsuccessful.
4. how have you find the neighboring nodes in ns-2 and what routing protocol 
are you taking to find whether the transmission is successful or not.
It will niece of you if you can kindly sent me the code or explanation to above 
question at the earliest. Since i am taking your paper as a base for my 
research and need to sent in the progress report to mu guide.

Neeraj Gupta
India

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] where to create routing buffer

2009-03-12 Thread neeraj gupta

  
hi all
 
   i just went through the one of papers for calculating the available 
bandwidth . the question i encountered in the paper is where is routing buffer 
located for maintaining the table. is it in the node.cc ot it is the routing 
protocol we are using in the simulation e.g. AODV . Also how can i calculate 
the neighbors of the node and know which of them is transmitting or not.



Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] carrier sense

2009-02-27 Thread neeraj gupta


hi all

 it's true the node uses the carrier sense before sending the data. as per my 
understanding the NAV for the nodes in the carrier sense rage is updated. Nodes 
uses this nav to determine the time after which the it is permited to send the 
data. my promblem is to use the entries in nav for my work.how can i access the 
nav table.

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] IPaddress in node

2009-02-13 Thread neeraj gupta


Hello 

I am simulating adhoc wireless scenario i just want to know how can we give the 
IP addresses to the nodes and then during the simulation if one node is 
transmitting the how can other nodes can store in the IP address and nav value 
in its internal table.

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] accessing vaiable of c++

2009-01-19 Thread neeraj gupta


hi all

   how can i access the variable in c++ in tcl script. Also if change the code 
in c++ to print the value of variable where that value will be printed.


Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] access NAv

2009-01-12 Thread neeraj gupta

  
hi all

  how can i access the NAV of the nodes in 802.11 and the calculate the idle 
time (or busy time).

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] ip layer and NAV

2008-09-24 Thread neeraj gupta

  
where can i modify the code of ip layer to claculate the bandwidth and acess 
the NAV.

Neeraj

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] how to access NAV of nodes

2008-08-05 Thread neeraj gupta

  
hi all

how can we access the NAv of the nodes in the end-to-end path. Also can we 
access the Duration/ID  field in MAC frame header. any help will be of great use

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] only cbrgen.tcl

2008-06-09 Thread neeraj gupta

  
hi all

  i appreciate your help for the setdest. my next problem is if if only give 
the cbrgen.tcl generated file and not the file generated by setdest. the 
simulation is running . what it is giving to me and what are the coordinates of 
the nodes. and suppose i want to generate the scenario file by setdest with 
speed as zero or i mean iw ant tio generate the static topology of 50 nodes 
will it work or should i go my different method.


Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] setdest not working

2008-06-08 Thread neeraj gupta

  
hi all

i am trying to genetrate the senario file using setdest but it is giving the 
error that asset(speed !=0) not meet. can you tell me the problem

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] parameters in 802.11b

2008-05-25 Thread neeraj gupta

  
hi all

how can i get different values like sifs, cwnd and others in ns-2 through otcl 
code . what are the available tools for inding available bandiwth in ns-2 foe 
wireless scenario.

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] packet dispersion method

2008-05-25 Thread neeraj gupta

  
hello

i came along a method which talks about the packet dispersion method whic is 
basically double packet probe method for measuring the bandwidth or available 
capacity of network. my problem is there any code available which i can include 
in ns-2 for experimentation method.
another thing how many methods are available for estimating the available 
method.

Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] available bandwidth

2008-05-04 Thread neeraj gupta

  
hi all

is there any relationship between the throughput and bandwidth. also when we 
are communication using ad hoc network are we using analog or digital 
techniques. in most of the research paper are we using the DSSS or some other 
techniques. what are the available methods for claculating the available 
bandwidth. do any body have the code for detemining the available bandwidth.

any help will be appreciated

Neeraj


[ns] calculate the threshold values.

2008-03-30 Thread neeraj gupta

  
hi all

after going through the ns-1 documentation it is very clear that we can 
calculate the RXThresh_ value. but how can be can calculate the CShresh_ and 
CPThresh_ values.also the threshold model have certain default values this 
means the values of all three threshold will change.how can we calculate the 
same.

Neeraj


[ns] code for bandwidth estimation

2008-02-21 Thread neeraj gupta

  

hi all

 i am woking on the qos in ad hoc wireless sytem. my problem is if i want to 
know thw avvailable bandwidth in the system the where should i code ie in link 
layer or in the mac layer. can anyone send me the code for estimating the 
bandwidth in ad hoc wireless sytem.





Neeraj Gupta
Assistant Professor
HOD, CSE  IT Department
Hindu College of Engineering
Sonepat


[ns] estination of bandwidth

2008-02-17 Thread neeraj gupta

  
hi all

 i doing a project on QoS in ad hoc networks. as my first target is to estimate 
the bandwidth in the network and required by tha application. can any one tell 
me is there any function or the way to estimate tha bandwith in the network. 
how can i run it in ns-2.30

its urgent as i need to submit the progress report.

thanks

Neeraj Gupta


[ns] bandwidth estimation

2008-02-13 Thread neeraj gupta

  
hi all

  how do we calculate the bandwidth requirement of the application . also where 
in mac layer is bandwidth calculated , self and one hop neighbors.
how can we manipulate the algorithm in ns .

Neeraj

Neeraj


[ns] communication range

2008-01-17 Thread neeraj gupta

  

hi all

  i read it ns_mannual that threshold.cc can be used to calculate the receving 
threshold in the network interface. my question is how to compile the program 
using gcc or make.

neeraj


[ns] make failed

2007-12-18 Thread neeraj gupta

  
hi all

 i using ns-allinone-2.30. i trying to run a example from the tutorial NS by 
Examples where variables in c++ are binded to otcl. i written the code . the 
tutorial ask to add the object file (ex-linkage.o in my case) at the end of the 
object file list inMake file located in ns-2.30 directory. i add it under 
OBJ_CC . 

 am i adding the object at he right place?? if , yes then i tried make clean 
command (even if you tired running make command) i getting the following error

Makefile:311: *** commands commence before first target. stop.

the i tried ./configure path but in this case the object.o is  wiped out of the 
Makefile.

iam using Fedora 7 as OS.

kindly help

Neeraj


[ns] make failed

2007-12-15 Thread neeraj gupta

  
hi all this in response to my earlier mail when i tried to use the make command 
after adding ex-linkage.o file in Makefile under ns-2.30 directory i recieve 
the following error

make:311: *** commands commence before first target. stop.

any help is appreciated

neeraj



[ns] binding the variable in ns2

2007-12-14 Thread neeraj gupta

  
hi all

i am a nascent user of ns2. itried one example from tutorial NS by example 
the code is written below
// Jae Chung 7-13-99
// Example of a aimple and dull Agent that
// illustrates the use of OTcl linkages
//code is ex-linkage.cc

#include stdio.h
#include string.h
#include agent.h


class MyAgent : public Agent {
public:
MyAgent();
protected:
int command(int argc, const char*const* argv);
private:
intmy_var1;
double my_var2;
void   MyPrivFunc(void);
};


static class MyAgentClass : public TclClass {
public:
MyAgentClass() : TclClass(Agent/MyAgentOtcl) {}
TclObject* create(int, const char*const*) {
return(new MyAgent());
}
} class_my_agent;


MyAgent::MyAgent() : Agent(PT_UDP) {
   bind(my_var1_otcl, my_var1);
   bind(my_var2_otcl, my_var2);
}


int MyAgent::command(int argc, const char*const* argv) {
  if(argc == 2) {
   if(strcmp(argv[1], call-my-priv-func) == 0) {
  MyPrivFunc();
  return(TCL_OK);
   }
  }
  return(Agent::command(argc, argv));
}


void MyAgent::MyPrivFunc(void) {
  Tcl tcl = Tcl::instance();
  tcl.eval(puts \Message From MyPrivFunc\);
  tcl.evalf(puts \ my_var1 = %d\, my_var1);
  tcl.evalf(puts \ my_var2 = %f\, my_var2);
}

the tutorial says to put the ex-linkage.o in the make file and then run the 
make command. on the first hand the make command is running.
then i do the following steps
./configure, make clean, make

after that i run the tcl script which is given below
# Jae Chung  7-13-99

# Create MyAgent (This will give two warning messages that 
# no default vaules exist for my_var1_otcl and my_var2_otcl)
set myagent [new Agent/MyAgentOtcl]

# Set configurable parameters of MyAgent
$myagent set my_var1_otcl 2
$myagent set my_var2_otcl 3.14

# Give a command to MyAgent
$myagent call-my-priv-func

but the i receive the  following error
invalid command name Agent/MyAgentOtcl
while executing
Agent/MyAgentOtcl create _o3 
invoked from within
catch $className create $o $args msg
invoked from within
if [catch $className create $o $args msg] {
if [string match __FAILED_SHADOW_OBJECT_ $msg] {
delete $o
return 
}
global errorInfo
error class $...
(procedure new line 3)
invoked from within
new Agent/MyAgentOtcl
invoked from within
set myagent [new Agent/MyAgentOtcl]
(file ex-linkage.tcl line 5)
also on opening the make file i find that ex-linkage.o is missing from the 
makefile. 
since i have a project i my hand kindly help me

thanx in advance

Neeraj
Hindu college of engineering, sonepat

Neeraj


[ns] help configure

2007-12-06 Thread neeraj gupta

  
hi all
 i was installing tk8.4.14.i had already installed tcl8.4.14.
while installing i used the following commands

./configure  --disable-load --with-tcl=../../tcl8.4.14/unix

  make

 while i run the make at the end i recevie following error:


{standard input}: Assembler messages:
{standard input}:426: Warning: size of width is already 8; not changing to 4
make: *** [tk3d.o] Error 1

kindly tell me the mistake i am commiting

thanks in advance



Neeraj