[ns] carrier sensing in mac 802.3

2011-07-09 Thread fariba alamifar
Hi Friends, I have some questions regarding to mac 802.3 implementation of NS2. Any help is greatly appreciated. 1- I am wondering if mac 802.3 implementation of NS-2 is based on collision detection or collision avoidance. 2- How carrier sensing is done in mac 802.3 implementation of NS2? 3- I

[ns] Accessing Node ID in mac.cpp file, Setting MAC address of a node in TCL

2011-08-01 Thread fariba alamifar
Hi, I am in urgent need to find a solution for my questions. If anyone helps, I will appreciate it so much. I need to access node id in mac802_3.cpp file. I could access the mac address (index) of the node which is under the process of mac functions but I need to know the node id of the node

[ns] Location of Packet in the network

2011-08-05 Thread fariba alamifar
Hi, I implemented a hierarchical Ethernet LAN. I am sending packets from a node attached to LAN1 to a node attached toLAN3. Each link has its own characteristics. In Mac802.3 file, in sendUp function, I need to know which link is the last link that my packet was transmitted on? Actually, I nee

[ns] Reducing NS2 Running Time

2011-08-18 Thread fariba alamifar
Hi there, Is there anybody who can help me or have any suggestions regarding to reduce simulation running time? I have a large network topology consisting of 7000 nodes. These nodes are from different classes and they generate different kinds of traffic during simulation time. The percentage o