[ns] UDP congestion control

2015-06-07 Thread Zakaria Derder
Hello, I have a wired sensor network topology in NS2 and i'm using UDP protocol. Is there anyway to detect congestion on the network links so i can slow the rate of UDP packets sent? I'm thinking measuring the number of packets in a link queue or maybe measure incoming traffic rate with the

[ns] Link Failiure in NS2

2015-06-06 Thread Zakaria Derder
Hello, Is it possible to change link failure default color in NAM? When a link goes down, it is colored red in NAM. Is there anyway to change that, please? Thanks in advance.

[ns] DV routing in NS2

2015-05-31 Thread Zakaria Derder
Hello, I'm working on a wired network simulation and i'm wondering is it possible to activate DV routing ($ns rtproto DV) when a link congestion or packet loss occurs at a certain node, so it can redirect the traffic ? I know $ns rtproto DV works when a link goes down, it redirects the

[ns] Call C++ function from TCL

2015-05-29 Thread Zakaria Derder
Hi, i think the title says it all. I just want to know how can i call a c++ method in my TCL script? Thanks.

[ns] You guys are my last chance

2015-05-29 Thread Zakaria Derder
Hello, how in a simple way can i detect congestion in a wired sensor network, please? My idea is to measure queue lengh in packets or maybe measure incoming thourghput with the available bandwith on the link? But i don't know how to do that in TCL script. Can anybody assist me? thanks.

[ns] Struggling with something seeming really simple

2015-05-26 Thread Zakaria Derder
Hi, I want to to do a condition in my TCL script to check if the incoming traffic rate is higher than the link bandwidth in order to detect a possible congestion. I don't know how to that condition line. Can anybody help? OR alternatively: making a condition in TCL script in witch i have to

[ns] How to check Link Bandwith

2015-05-25 Thread Zakaria Derder
Hi,I want to to do a condition in my TCL script to check if the incoming traffic rate is higher than the link bandwidth in order to detect a possible congestion. I don't know how to that condition line. Can anybody help?

[ns] Congestion notification and avoidance in AntNet

2015-05-23 Thread Zakaria Derder
Hi, I have AntNet routing protocol implemented in a 15-node wired topology. My aim to do a congestion notification and avoidance so i created a scenario where 2 source nodes start sending data towards the node sink in a way that it creates congestion in one of the intermediary node. What i

[ns] AntNet in Wireless environnement

2015-05-16 Thread Zakaria Derder
Hello, has anyone worked or tried AntNet algorithm in Wireless environnement, please? I need help

[ns] AntNet protocol in wireless environnement

2015-05-16 Thread Zakaria Derder
Hello friends, has anyone worked or tried AntNet algorithm in Wireless environnement, please? I need help. I want to implement a simple neighbor discovery function via Hello messages in a AntNet, in order to adapt it to wireless environnement. Can anybody tell me the different steps in order

[ns] Need orientation (NS2)

2015-05-08 Thread Zakaria Derder
Hello guys,I just need some advice and orientation, i have a project which consists to adapt a wired sensor network protocol to a wireless sensor networks. The communication in these two types of sensor networks is obviously different, so what kind of changes should i do in the code in order

[ns] Desperate for help.. (NS-2.34)

2015-04-26 Thread Zakaria Derder
Hello,I'm having trouble with a tcl script for AntNet in WSNs. i tried a simple topology of 3 nodes. It seems like it's working (in NAM) but the file containing the routing table (rtable.txt) is generated empty. i don't know if there's something wrong with my TCL script or my C++ code for