changing the contention window

97 views
Skip to first unread message

Doaa Terri

unread,
Jul 13, 2015, 5:48:55 AM7/13/15
to ns-3-...@googlegroups.com
Hi all;

I had a problem in modifying the contention window value for a specific node. 


However I implemented it in my code but it did not work. I mean by it is not working is that the throughput of the selfish node (node with modified CW) should be higher than before But it is not changing!!

Can some one give me hints on how to solve this issue, or let me know if I miss a step. 

PS: attached is my code

Thanks in advance  

code2.txt

Doaa Terri

unread,
Jul 14, 2015, 1:11:29 AM7/14/15
to ns-3-...@googlegroups.com
any one can help please? i am still did not get it!

--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/_LdPjAOnSWk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Doaa Terri

unread,
Jul 15, 2015, 3:04:23 AM7/15/15
to ns-3-...@googlegroups.com
Hi all, I think I know why I am facing this problem, The value of the contention is not changing even when I change it by accessing the the cw attribute using config : 

 Config::Set("/NodeList/0/DeviceList/0/$ns3::WifiNetDevice/Mac/$ns3::RegularWifiMac/DcaTxop/CwMin", UintegerValue(2)); 

I have tried to use config store to check this attribute and found this: 

value /$ns3::NodeListPriv/NodeList/0/$ns3::Node/DeviceList/0/$ns3::WifiNetDevice/Mac/$ns3::AdhocWifiMac/DcaTxop/$ns3::DcaTxop/MinCw "31"

why the value is not changing ?
any idea please? 
Reply all
Reply to author
Forward
0 new messages