[ns] RE : Packet Drop due to Collision

2007-04-16 Thread siad lamri
dear there; first you should enable MAC trace and then from trace file you can mesure the number of packet dropped because of collision by testing the fifth column of each row of this file. when a collision is made the fifth column is set to "COL". So you should calculate the nu

[ns] RE : How to change the packet sent at a node, add new fields to it

2007-04-15 Thread siad lamri
Hi Hiba, The file : ll.cc contains the implementation of the LL layer. To apply your changes, you modify the code of the following function : sendto(Packet* p, Handler* h = 0); Best regards. hiba alame <[EMAIL PROTECTED]> a écrit : Hi, I want to add an additional field to the packet se

[ns] RE : MAC RETRANSMISSIONS 802.11

2007-02-16 Thread siad lamri
Hi; u must introduce some changes on c++ implementation of mac802_11.cc. You can add a couter at retransmitDATA function and print it in your owen file. regards. antonis antoniou <[EMAIL PROTECTED]> a écrit : Hi ALL, how can i measure retransmissions in mac 802.11 from trac

[ns] RE : Calculate Collisions in Wireless ad hoc networks

2007-02-01 Thread siad lamri
hi Muhammad; it's very simple, you just count the number of COL in trace file . you must test on other field of trace file : $1 == "D" && $5== "MAC" && $6 == "COL" Muhammad Azam Akram <[EMAIL PROTECTED]> a écrit : Hi I am working on wireless ad hoc networks. I have five different flows, and

[ns] [urgent][help] How to add a value at the end of each row of the wireless trace file.

2007-02-01 Thread siad lamri
dear all; In my simulations, i want to make some modifications in ns code (C++ or Tcl) in order to add an other entry to my trace file. i explain more, i'm simulation an Ad Hoc network (802.11) using ns. in order to study the contention window (CW_) of backoff procedure i need to trace this va

[ns] RE : HELP: cannot run .tcl files

2007-01-28 Thread siad lamri
Hi there; to run a tcl script using ns you must be in the home directory where ns has been installed and then run your tcl script using : ns example.tcl regards. Manoj Mistry <[EMAIL PROTECTED]> a écrit : Hi I am a novice user of ns2 and have just installed ns-2.27 again, just one problem

[ns] Collision rate for braodcast packets

2006-12-02 Thread siad lamri
Hi NS users; i'm using ns2 to simulate an ad hoc network with OLSR as routing protocol and cbr to generate traffic. the purpose is to compute the rate of packet dropped. so for unicast packets there is no problem, it's simple : rate = total dropped / total sent. the problem is for braodcast

[ns] how to know the number of node at the neighbor of a node

2006-11-14 Thread siad lamri
hi ns users; i'm using ns2 version 2.29 to simulate a multihope Ad hoc network (802.11). In my simulation i need to know, for a given node, the number of nodes in his neighbor. So i don't know if it is implemened in ns2; and if it exists what is the command and the syntax to do this.

[ns] how to set CTS, RTS, ACK ... packet size

2006-07-08 Thread siad lamri
dear ns users; In order to simulate an Ad Hoc Network an study some parameters I need to modify some default values like : CTS packet size, RTS packet size, ACK packet size, MAC Header size, SIFS, DIFS, slot time. This is to simulate an Ad Hoc network. can anyone tell me how to do it ? PS: i'

[ns] problem in setdest.cc when using ./setdest command

2006-06-11 Thread siad lamri
Hi all, i'm working under ns-2.29 to simulate an ad hoc network of more than 50 nodes, using the OLSR routing protocol. so i've soem problems : 1. first OLSR isn't contained on the 2.29 version of ns, so i'm asking if someone know a link to downlaod it. 2. the second problem is how to compu