Re: [ns] how to use awk to analyze packet collision probability? (lingqiw)

2010-06-08 Thread ashish tiwari
Hi lingqiw, as I am understanding you want to know percentage of data packet loss right, if this is the case, then you can use simple AWK code e.g BEGIN { sendLine=0; recvLine=0; -- --- } { # CALCULATE PACKET DELIVERY FRACTION if (( $1 == "s") &

Re: [ns] how to use awk to analyze packet collision probability? (lingqiw)

2010-06-08 Thread ashish tiwari
Hi lingqiw as I am understanding you want to know percentage of data packet loss right, if this is case then you can use simple AWK code e.g BEGIN { sendLine=0; recvLine=0; -- --- } { # CALCULATE PACKET DELIVERY FRACTION if (( $1 == "s") && ( $3

[ns] How to divide Traffic of Packets in Two routes???

2010-04-19 Thread ashish tiwari
Hello all, I added a new protocol in NS-2, there I want to "divide traffic of packets via node". How to do it ? "Condition is like this I am checking buffer status of every node in primary path,If a buffer status of node will be more than a threshold it will declared congested, and

[ns] error: NS : code omitted because of length

2010-02-23 Thread ashish tiwari
hello all I am adding a new protocol in NS2 and I have added some line in ns-agent.tcl "Agent/EHWMP instproc init args { $self next $args } Agent/EHWMP set sport_ 0 Agent/EHWMP set dport_ 0" Now when I am typing ns it is giving following error.Could anyone help me for this. , ash..

[ns] error: overloaded function with no contextual type information

2010-01-28 Thread ashish tiwari
When I am doing make getting error could anyone help to resolve it. hwmp/hwmp.cc:90: error: overloaded function with no contextual type information the of code it where error coming is : int HWMP::command(int argc, const char*const* argv) { if(argc == 2) { Tcl& tcl = Tcl::instan

[ns] how to check buffer status of a node in a routing protocol

2009-12-28 Thread ashish tiwari
I want to check a buffer status of a node in wireless mesh routing protocol, where a node periodically checks the occupancy of its link-layer buffer. The status is determined based on the ratio between the the number of packets currently buffered to the buffer size. I am new in NS2 so could anyone

[ns] error: overloaded function with no contextual type information in NS2.33

2009-12-16 Thread ashish tiwari
Hi all           I am attaching  HWMP routing protocol of Wireless Mesh Network code in NS2.33 but when I reinstall or make it then it is giving error hwmp/hwmp.cc: In member function ‘virtual int HWMP::command(int, const char* const*)’: hwmp/hwmp.cc:88: error: overloaded function with no contextu