[ns] Does anyone has tcl scripts to test IEEE 802.11 protocol with multihop topology?

2006-03-15 Thread chen guoming
Dear friends: I want some tcl scripts to test IEEE 802.11 protocol with multihop topology. Please help me. Best regards! your sincere David

[ns] what's the problem of my MAC protocol?

2006-03-23 Thread chen guoming
Dear friends: I wrote a mac protocol named TMAC, I don't have TMAC source code, so I just modified the SMAC source code and only add TA to apaptively adjust the active time. I modified the SMAC test tcl script MyTest.tcl to run TMAC and it works fine. I can see the total energy consumption is

[ns] SMAC doesn't support AODV?

2006-03-25 Thread chen guoming
Dear All: I write a tcl script to test the SMAC protocol and I set the routing protocol to be AODV. However, the packets can't be relayed in multihop topology. When I changed the routing protocol to DSR, it works fine. What's the problem? Please help me.Any suggestions will be affected!

[ns] IEEE 805.15.4 doesn't support DSR?

2006-03-25 Thread chen guoming
Dear All: I write a tcl script to test the IEEE802.15.4 protocol and I set the routing protocol to be DSR. However,I got the error information: [wpan/p802_15_4phy.cc::PD_DATA_request][100.105397](node 5) Invalid PSDU/MPDU length: type = DSR, src = 5, dst = -1, uid = 3, mac_uid = 1, size = 159

[ns] How to define different transmit range?

2006-03-25 Thread chen guoming
Dear All: I want to define different node with different transmit ranges, how to do it? Phy/WirelessPhy set CSThresh_ 1.559e-11 Phy/WirelessPhy set RXThresh_ 3.652e-10 ;# 250m the two lines above define the transmit range to 250m. However, all the node will have the same transmit range

[ns] huge delay between the application layer and the MAC layer!

2006-04-09 Thread chen guoming
Dear friends: I modified test-suite-smac-multihop.tcl to test the performance of SMAC with a linear topology, like this: 0123456-7--89 where node 0 is the source and node 9 is the sink. node 0 sent cbr message(packetsize==100b) to node 9. When the cbr

[ns] Is there an appropriate routing protocol in NS2.29 to cooperate with SMAC?

2006-04-13 Thread chen guoming
Dear friend: I want to ask whether there is an appropriate routing protocol in NS2.29to cooperate with SMAC. I tried to test the end-to-end delay of SMAC with test-suite-smac-multihop.tcl,but when I set CBR packet size 100bit and interval 1sec, I got 400 sec end-to-end delay. The

[ns] what's the relationship of Pt_ and -txPower ?

2006-04-27 Thread chen guoming
Dear friends: We know that we can set different Pt_ and RXThresh_ to get different transmit range. We also use energy model to calculate the energy used on transimitting by setting -txPower. Then what's the relationship of Pt_ and -txPower? Should Pt_ be greater than -txPower? During my

[ns] question about energy model of 802.15.4

2006-06-24 Thread chen guoming
Dear All: recently I am doing simulations to compare SMAC and 802.15.4. I found that a problem about the 802.15.4 implemented in NS2. In the file p802_15_4mac.cc, there are some instruction about the sleep mode: //-- Notes for power-saving: // It turns out to

[ns] Does anyone have DSMAC source code?

2006-07-19 Thread chen guoming
Dear all: recently I have read a paper Medium Access Control With A Dynamic Duty Cycle For Sensor Networks,the DSMAC proposed in this paper is a modified version of SMAC.I want to acquire for the source code of DSMAC.Please help me, thank you! Best regards! David

[ns] there is a bug in wireless-phy.cc ----attention when computing energy consumption

2006-10-25 Thread chen guoming
Dear All: Recently I am doing simulations with ns2.30. I found a bug in wireless-phy.cc, the bug is in the two functions below: void WirelessPhy::node_wakeup() { if (status_== IDLE) return; if (em() == NULL) return; if ( NOW update_energy_time_