[ns] question about function Node::get_node_by_address()

2006-02-16 Thread kaibai
Dear all, In the function "Node::get_node_by_address()" defined in node.h, the input should be ip address or mac address? If it is ip address, how can I get the ip address of the node in the mac layer? Thank you very much! Kai Bai

[ns] BER calculation in wireless channel and how to get node id in mac layer?

2006-02-16 Thread kaibai
Dear all, I am simulating sensor networks using ns-2.29. The modulation and propagation model in ns-2 are quite simple (~ns2.29/mobile/modulation.cc, tworayground). Can anyone tell me how to calculate the BER/PER of packets according to SNR and even implement multipath fading channel model in

[ns] how to calculate the PER (packet error rate) of a packet?

2006-02-20 Thread kaibai
Dear all, I am new in ns-2, I try to simulate a wireless ad-hoc scenario using ns-2. I notice that in the phy. model of ns-2, as long as the received power is greater then some threshold, it is assumed the packet is received successfully. I wonder if there are more realistic models for it, e.g

Re: [ns] Accessing Antenna Properties in Routing Layer

2006-02-21 Thread kaibai
Yes. If the packet the routing layer is processing now is denoted as p, p->txinfo_.getAntenna() will return your antenna properties. Kai Bai -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bow-Nan Cheng Sent: Tuesday, February 21, 2006 9:33 AM To: ns-use

[ns] [trace2stats] throughput/delay/jitter statistics from ns-2

2006-02-21 Thread kaibai
Dear all, I found the trace2stats software from ns2 user's mail list. But the link to download it in the original message is not accessible anymore. Does anyone know the new link to download it? Or is there any other software available to calculate network statistics (like throughput and good

[ns] using MAC/Simple in wireless ad-hoc simulation

2006-02-22 Thread kaibai
Dear all, In ns-2.29, there is a MAC protocol called MAC/Simple. My Question is if we can use this protocol in wireless ad-hoc simulation. I tried it in an ad-hoc scenario with 50 nodes, CBR traffic, combined with different routing protocol (DSDV, AODV, DSR). The trace file showed no data pack

[ns] MAC/Simple has bug?!

2006-02-23 Thread kaibai
Dear all, Does anyone have successful experience in using MAC/Simple for wireless ad hoc simulation? I wrote the following script to run simulation. When I set the MAC type as MAC/802_11, the simulation ran just fine. But when I set the MAC type as MAC/Simple, segmentation fault was reported.

Re: [ns] CBR over TCP ?

2006-02-27 Thread kaibai
I got similar question as Alaeddine. For example, if I want to compare the performance of TCP and UDP under some scenarios, which kind of application should I attach? Regards, Kai -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sasan Sent: Monday, Febru

Re: [ns] CBR over TCP ?

2006-02-28 Thread kaibai
Sounds good. Thank you! Regards, Kai _ From: alaeddine abdallah [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 7:00 AM To: Mohammad Zubair Ahmad; kaibai; Sasan Cc: ns users Subject: Re: [ns] CBR over TCP ? Thank you all for your remarks, I said in the first

[ns] how long to build up the routing table for DSDV/AODV when using shadowing propagation model?

2006-03-01 Thread kaibai
Dear all, I am simulating an ad-hoc wireless network scenario. I put 50 mobilenodes in a 400*420 area, including one cbr source node in the bottom and one destination node in the top. I use Shadowing as propagation model and set simulation time to 1000. I set the RXThresh_ to a 80m transmiss

[ns] how to set up the route statically or manually in wireless ad-hoc networks?

2006-03-08 Thread kaibai
Dear all, I am simulating a stationary wireless sensor network scenario. I found out if I use Shadowing propagation model, the ad-hoc routing overhead is quite huge. In my scenario there is one sink node (destination) at one side of the network and a group of cbr/udp source node at the other s

[ns] Can we use Static or Manual routing protocol in wireless network simmulation?

2006-03-08 Thread kaibai
Dear all, I am simulating a stationary wireless sensor network scenario. I found out if I use Shadowing propagation model, the ad-hoc routing overhead is quite huge. I wonder if we can use Static or Manual method to set up route for mobilenode. I tried: "$ns rtproto Static". But tcl errors are

[ns] how to use static/manual routing in wireless networks?

2006-05-25 Thread kaibai
Dear all, I am doing simulation study for wireless sensor networks. I wonder if I can fix the routing table in wireless simulation since I want to get rid of the effects by the dynamic routing protocol (like DSDV, DSR, AODV). I tried $ns rtproto Manual like what is told in Chapter 27 of ns man