[ns] How to determine txpower from Pt_

2009-01-20 Thread manish chaturvedi
Hi, I am trying to incorporate energy model in my NS2.33 simulation. I have some confusion between Pt_(used to set transmission range), and txpower(energy model parameter specifying enegy consumption in transmission). I need to know what is the relation between these values, and how can I calcul

[ns] How to generate energy traces periodically

2009-01-22 Thread manish chaturvedi
Hi, I am using energy model in my NS simulation. When energy trace is ON, every time the node energy changes, the trace is generated. This makes trace file size larger. Is there any way to generate trace of energy status of all nodes at some fixed time or periodically? Please inform or point me

[ns] How to count number of received packets at agent level.

2009-01-23 Thread manish chaturvedi
Dear all, I am using CBR agent for generating traffic for my wireless simulation. I have used cbrgen.tcl file, which comes with NS to generate connection profile. It attaches CBR source with Agent/NULL as destination. I need to count ratio of number of packets transmitted by the CBr source to numb

[ns] Routing traces contains seq num=0

2009-01-26 Thread manish chaturvedi
Hi, I am simulating 50 nodes wireless communication using DSR. When a route request is sent, the destination generates route reply with the same sequence number as that of route request and sends it to originator. But the thing is in some f the route replies, I am getting sequence number 0. Any bo

[ns] ARP packet header fields

2009-02-02 Thread manish chaturvedi
Dear All, I am not able to understand fields of ARP header structure defined in arp.h . I am not able to workout, which fields represent, src IP addr, dest IP addr, src MAC addr, and dest MAC addr. I could not find documantation explaining these fields. struct hdr_arp { u_int16_tarp_hrd;

[ns] DSR agent traces

2009-02-07 Thread manish chaturvedi
Dear all, In my ns-2 simulation, I am trying to compute control packets overhead for a given topology of 50 nodes. I was Thinking that DSR agent communicates three types of packets, namely route requests(traced with -Pq 1), route reply (traced with -Pp 1) and route error(traced with -Pw 1). But t

[ns] what are these traces?

2009-02-23 Thread manish chaturvedi
Hi all, Can any body tell me what are these trace about? I have implemented chain topology 1-2-3-4-5-6-7 using ns-2.33. I am using DSR as my routing protocol. Initially path is established from 1 to 7 as mentioned above. In my simulation scenario, node 4 is malicious and does not forward data